{
  "x402Version": 2,
  "id": 39019,
  "slug": "39019",
  "resource": "https://api.magentlab.com/api/calc/mtoq_4",
  "description": "Lipton 2015 mTOQ-4 from four caller-assigned frequency items: pain-free within 2 hours, one dose keeps headache away ≥24 hours, comfortable enough to plan daily activities, in control enough to return to normal function. Each never=0, rarely=0, less_than_half=1, half_or_greater=2. Sum 0-8. Bands very_poor 0, poor 1-5, moderate 6-7, maximum 8. magent does not interview the patient. Not a diagnosis, not an abortive-drug order, not the 19-item or 6-item mTOQ.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "able_to_plan": "never",
                "in_control": "never",
                "pain_free_2h": "never",
                "sustained_24h": "never"
              },
              {
                "able_to_plan": "never",
                "in_control": "never",
                "pain_free_2h": "never",
                "sustained_24h": "never"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Lipton RB, Fanning KM, Serrano D, Reed ML, Cady R, Buse DC",
                  "doi": "10.1212/WNL.0000000000001256",
                  "id": "lipton-2015",
                  "pmid": "25616416",
                  "source": "Neurology. 2015;84(7):688-695",
                  "title": "Ineffective acute treatment of episodic migraine is associated with new-onset chronic migraine"
                },
                "components": [
                  {
                    "factor": "pain_free_2h",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  },
                  {
                    "factor": "sustained_24h",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  },
                  {
                    "factor": "able_to_plan",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  },
                  {
                    "factor": "in_control",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mtoq_4",
                "formula_expression": "mTOQ-4 = pain_free_2h + sustained_24h + able_to_plan + in_control; each never=0, rarely=0, less_than_half=1, half_or_greater=2; max 8; very_poor=0, poor=1-5, moderate=6-7, maximum=8",
                "max_score": 8,
                "score": 0,
                "treatment_efficacy": "very_poor"
              },
              {
                "citation": {
                  "authors": "Lipton RB, Fanning KM, Serrano D, Reed ML, Cady R, Buse DC",
                  "doi": "10.1212/WNL.0000000000001256",
                  "id": "lipton-2015",
                  "pmid": "25616416",
                  "source": "Neurology. 2015;84(7):688-695",
                  "title": "Ineffective acute treatment of episodic migraine is associated with new-onset chronic migraine"
                },
                "components": [
                  {
                    "factor": "pain_free_2h",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  },
                  {
                    "factor": "sustained_24h",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  },
                  {
                    "factor": "able_to_plan",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  },
                  {
                    "factor": "in_control",
                    "points": 0,
                    "present": true,
                    "value": "never"
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mtoq_4",
                "formula_expression": "mTOQ-4 = pain_free_2h + sustained_24h + able_to_plan + in_control; each never=0, rarely=0, less_than_half=1, half_or_greater=2; max 8; very_poor=0, poor=1-5, moderate=6-7, maximum=8",
                "max_score": 8,
                "score": 0,
                "treatment_efficacy": "very_poor"
              }
            ],
            "path": "/api/calc/mtoq_4"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "able_to_plan": {
                          "description": "Caller-assigned Lipton 2015 mTOQ-4 item 3. Are you comfortable enough with your migraine medication to be able to plan your daily activities? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                          "enum": [
                            "never",
                            "rarely",
                            "less_than_half",
                            "half_or_greater"
                          ],
                          "type": "string"
                        },
                        "in_control": {
                          "description": "Caller-assigned Lipton 2015 mTOQ-4 item 4. After taking your migraine medication, do you feel in control of your migraines enough so that you feel you can return to normal function? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                          "enum": [
                            "never",
                            "rarely",
                            "less_than_half",
                            "half_or_greater"
                          ],
                          "type": "string"
                        },
                        "pain_free_2h": {
                          "description": "Caller-assigned Lipton 2015 mTOQ-4 item 1. After taking your migraine medication, are you pain-free within 2 hours for most attacks? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                          "enum": [
                            "never",
                            "rarely",
                            "less_than_half",
                            "half_or_greater"
                          ],
                          "type": "string"
                        },
                        "sustained_24h": {
                          "description": "Caller-assigned Lipton 2015 mTOQ-4 item 2. Does one dose of your migraine medication usually relieve your headache and keep it away for at least 24 hours? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                          "enum": [
                            "never",
                            "rarely",
                            "less_than_half",
                            "half_or_greater"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "pain_free_2h",
                        "sustained_24h",
                        "able_to_plan",
                        "in_control"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "mtoq-4",
    "migraine",
    "neurology",
    "treatment-efficacy",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T09:26:30.379Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T09:26:30.255Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "able_to_plan": "never",
                  "in_control": "never",
                  "pain_free_2h": "never",
                  "sustained_24h": "never"
                },
                {
                  "able_to_plan": "never",
                  "in_control": "never",
                  "pain_free_2h": "never",
                  "sustained_24h": "never"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Lipton RB, Fanning KM, Serrano D, Reed ML, Cady R, Buse DC",
                    "doi": "10.1212/WNL.0000000000001256",
                    "id": "lipton-2015",
                    "pmid": "25616416",
                    "source": "Neurology. 2015;84(7):688-695",
                    "title": "Ineffective acute treatment of episodic migraine is associated with new-onset chronic migraine"
                  },
                  "components": [
                    {
                      "factor": "pain_free_2h",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    },
                    {
                      "factor": "sustained_24h",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    },
                    {
                      "factor": "able_to_plan",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    },
                    {
                      "factor": "in_control",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mtoq_4",
                  "formula_expression": "mTOQ-4 = pain_free_2h + sustained_24h + able_to_plan + in_control; each never=0, rarely=0, less_than_half=1, half_or_greater=2; max 8; very_poor=0, poor=1-5, moderate=6-7, maximum=8",
                  "max_score": 8,
                  "score": 0,
                  "treatment_efficacy": "very_poor"
                },
                {
                  "citation": {
                    "authors": "Lipton RB, Fanning KM, Serrano D, Reed ML, Cady R, Buse DC",
                    "doi": "10.1212/WNL.0000000000001256",
                    "id": "lipton-2015",
                    "pmid": "25616416",
                    "source": "Neurology. 2015;84(7):688-695",
                    "title": "Ineffective acute treatment of episodic migraine is associated with new-onset chronic migraine"
                  },
                  "components": [
                    {
                      "factor": "pain_free_2h",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    },
                    {
                      "factor": "sustained_24h",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    },
                    {
                      "factor": "able_to_plan",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    },
                    {
                      "factor": "in_control",
                      "points": 0,
                      "present": true,
                      "value": "never"
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mtoq_4",
                  "formula_expression": "mTOQ-4 = pain_free_2h + sustained_24h + able_to_plan + in_control; each never=0, rarely=0, less_than_half=1, half_or_greater=2; max 8; very_poor=0, poor=1-5, moderate=6-7, maximum=8",
                  "max_score": 8,
                  "score": 0,
                  "treatment_efficacy": "very_poor"
                }
              ],
              "path": "/api/calc/mtoq_4"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "able_to_plan": {
                            "description": "Caller-assigned Lipton 2015 mTOQ-4 item 3. Are you comfortable enough with your migraine medication to be able to plan your daily activities? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                            "enum": [
                              "never",
                              "rarely",
                              "less_than_half",
                              "half_or_greater"
                            ],
                            "type": "string"
                          },
                          "in_control": {
                            "description": "Caller-assigned Lipton 2015 mTOQ-4 item 4. After taking your migraine medication, do you feel in control of your migraines enough so that you feel you can return to normal function? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                            "enum": [
                              "never",
                              "rarely",
                              "less_than_half",
                              "half_or_greater"
                            ],
                            "type": "string"
                          },
                          "pain_free_2h": {
                            "description": "Caller-assigned Lipton 2015 mTOQ-4 item 1. After taking your migraine medication, are you pain-free within 2 hours for most attacks? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                            "enum": [
                              "never",
                              "rarely",
                              "less_than_half",
                              "half_or_greater"
                            ],
                            "type": "string"
                          },
                          "sustained_24h": {
                            "description": "Caller-assigned Lipton 2015 mTOQ-4 item 2. Does one dose of your migraine medication usually relieve your headache and keep it away for at least 24 hours? never=0, rarely=0, less_than_half=1, half_or_greater=2. magent does not interview the patient.",
                            "enum": [
                              "never",
                              "rarely",
                              "less_than_half",
                              "half_or_greater"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "pain_free_2h",
                          "sustained_24h",
                          "able_to_plan",
                          "in_control"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}