Skip to main content
Glama

Openfda Get Drug Label

openfda_get_drug_label
Read-only

Look up FDA drug labeling (package inserts / SPL documents). Check indications, warnings, dosage, contraindications, active ingredients, or any structured label section. A label runs to tens of thousands of tokens, so a page that exceeds the inline budget returns the list of available sections instead; re-call with sections to pull the ones you need.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "search": "<search>"
    },
    "name": "openfda_get_drug_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNoRecords to skip, at most 25000; to read past that, follow next_cursor from skip 0.
sortNoA field path with :asc or :desc (any letter case; :ascending and :descending also work), several comma-separated, e.g. effective_time:desc. A search without sort returns openFDA's index order, not relevance.
limitNoLabels per page. A sections selection costs its size summed across every label on the page, so lower this before widening one. Default 5; a larger value returns at most 1000 and says so.
cursorNonext_cursor from the previous page, with no skip and the same search, sort, and endpoint as that call; other inputs may change.
searchYesLabel query, e.g. openfda.brand_name:"aspirin", openfda.generic_name:"metformin", openfda.manufacturer_name:"pfizer". set_id with an SPL UUID from earlier results fetches that product's label, in its current revision only (openFDA serves no earlier ones). A brand search also matches repackagers' copies: to keep the original packager's label, add AND openfda.is_original_packager:true (several or none can remain), or take identity.spl_set_id from openfda_drug_profile. A "+" between clauses reads as a space; inside a quoted phrase it is a literal plus.
sectionsNoLabel sections to return, e.g. ["boxed_warning","indications_and_usage"], named by an oversized page's outline or by openfda_describe_fields. Omitted or [], the whole label comes back, or its outline when the page exceeds the inline size budget; a selection comes back whole even over that budget. Metadata (openfda, set_id, id, effective_time, version) always comes back and counts toward the size.

Output Schema

NameRequiredDescriptionDefault
capNoThe limit applied to this page.
kindNoWhether this response carries label records ("full") or only the section outline of a page too large to inline ("outline").
metaNoResponse metadata
errorNoPresent when the call failed. Absent on success.
shownNoNumber of labels returned in this response.
noticeNoGuidance for this page: empty result, paging on and the original packager's label, the sized re-call for an outline, section names no record carried, a selection over the inline budget, limit clamp, end of a cursor walk. Absent when nothing needs saying.
outlineNoWhen kind is "outline": the sections on the page and their serialized size summed across it, largest first; pass names back in sections.
resultsNoLabel records when kind is "full": an openfda block (brand_name, generic_name, manufacturer_name, route) plus the SPL sections each label has, such as indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; with sections, only those plus metadata. _table sections carry raw SPL table markup as openFDA returns it; the text output renders them as Markdown tables.
truncatedNoTrue when more labels matched than this page returned — page with next_cursor or skip for the rest.
next_cursorNoPass as cursor for the next page; present on a page read at skip 0 or by cursor when more records follow.
page_labelsNoThe label records this page holds, in page order. Present when kind is "outline", which otherwise names no record.
totalResultsNoTotal matching label records in the dataset
effectiveQueryNoSearch filter applied to the drug label query, as submitted to openFDA

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "next_cursor from the previous page, with no skip and the same search, sort, and endpoint as that call; other inputs may change.",
      +  "pattern": "^[A-Za-z0-9_-]+$",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Labels per page. Labels are large, and the cost of a sections selection is the section summed across every record on the page — so it scales with this limit. Lower it before widening a selection. Default 5; a larger value returns at most 1000 and says so."New value: +"Labels per page. A sections selection costs its size summed across every label on the page, so lower this before widening one. Default 5; a larger value returns at most 1000 and says so."
    • changedInput schema / properties / search / description
      Previous value: -"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". To fetch one product's label, pass set_id with the SPL UUID returned in earlier results; it returns the label's current revision only, since openFDA does not serve earlier ones. Separate clauses with spaces. A \"+\" written in the URL style of openFDA's examples also reads as a space where it separates: beside AND, OR, NOT, or TO, after a closing quote, paren, or bracket, or between a term and the next \"field:\" prefix (a:\"x\"+AND+b:\"y\", [20200101+TO+20201231], c:x+d:y). In a query that marks a clause required with a leading +field:, only the AND/OR/NOT/TO positions read that way. Any other \"+\" is sent as written, and inside a quoted phrase \"+\" is a literal plus sign. Double quotes, parentheses, and range brackets must balance, and the query must not end on a backslash — each is rejected before the request."New value: +"Label query, e.g. openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". set_id with an SPL UUID from earlier results fetches that product's label, in its current revision only (openFDA serves no earlier ones). A brand search also matches repackagers' copies: to keep the original packager's label, add AND openfda.is_original_packager:true (several or none can remain), or take identity.spl_set_id from openfda_drug_profile. A \"+\" between clauses reads as a space; inside a quoted phrase it is a literal plus."
    • changedInput schema / properties / sections / description
      Previous value: -"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget; an empty list is treated as omitted. A selection is returned whole even when it exceeds that budget, with its serialized size reported on the notice; the outline names a section measured to fit at the requested limit. Sections ending in _table hold SPL table markup: raw in structured results, rendered as Markdown tables in the text output. Metadata (openfda, set_id, id, effective_time, version) is returned either way and counts toward the size."New value: +"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"], named by an oversized page's outline or by openfda_describe_fields. Omitted or [], the whole label comes back, or its outline when the page exceeds the inline size budget; a selection comes back whole even over that budget. Metadata (openfda, set_id, id, effective_time, version) always comes back and counts toward the size."
    • changedInput schema / properties / skip / description
      Previous value: -"Number of records to skip for pagination (default 0). openFDA caps pagination at 25000 records; a higher value returns a pagination_limit_reached error."New value: +"Records to skip, at most 25000; to read past that, follow next_cursor from skip 0."
    • changedInput schema / properties / sort / description
      Previous value: -"Sort expression — a field path optionally suffixed with :asc or :desc (any letter case; :ascending and :descending are also accepted, and every direction is sent as asc or desc); comma-separate for multi-field sort. Example: effective_time:desc. Field paths take only letters, digits, underscores, and dots; any other character or direction is rejected before the request. A well-formed but non-sortable field still causes a query error — use a documented field name."New value: +"A field path with :asc or :desc (any letter case; :ascending and :descending also work), several comma-separated, e.g. effective_time:desc. A search without sort returns openFDA's index order, not relevance."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `rate_limited`: The openFDA daily or per-minute request limit is exceeded. `upstream_error`: The openFDA API returned a 5xx server error. `malformed_search`: The search query leaves a double quote, parenthesis, or range bracket unclosed, or ends on a backslash. `query_error`: The search query was rejected by openFDA (malformed field name, invalid syntax). `pagination_limit_reached`: skip exceeds the 25000 record pagination ceiling. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `rate_limited`: The openFDA daily or per-minute request limit is exceeded. `upstream_error`: The openFDA API returned a 5xx server error. `malformed_search`: search leaves a double quote, parenthesis, or range bracket unclosed, ends on a backslash, or holds a character openFDA refuses. `query_error`: The search query was rejected by openFDA (malformed field name, invalid syntax). `pagination_limit_reached`: skip exceeds the 25000 record pagination ceiling. `invalid_cursor`: cursor does not decode, belongs to another endpoint, search, or sort, or comes with skip above 0, stage, or canvas_id. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "rate_limited",
      -  "upstream_error",
      -  "malformed_search",
      -  "query_error",
      -  "pagination_limit_reached"
      -]New value: +[
      +  "rate_limited",
      +  "upstream_error",
      +  "malformed_search",
      +  "query_error",
      +  "pagination_limit_reached",
      +  "invalid_cursor"
      +]
    • changedOutput schema / properties / meta / description
      Previous value: -"Pagination and freshness metadata."New value: +"Response metadata"
    • changedOutput schema / properties / meta / properties / lastUpdated / description
      Previous value: -"Date the dataset was last updated."New value: +"Dataset last updated date"
    • changedOutput schema / properties / meta / properties / limit / description
      Previous value: -"Page size applied to this request: the requested limit, the endpoint default when limit was omitted, or the endpoint cap when limit exceeded it (the notice then says so). A window running past the end of the matched set returns fewer records than this, so read the length of results for the actual count."New value: +"Page size applied: limit, the endpoint default, or the cap when limit exceeded it. The last page of a match holds fewer records."
    • changedOutput schema / properties / meta / properties / skip / description
      Previous value: -"Number of results skipped."New value: +"Pagination offset"
    • changedOutput schema / properties / meta / properties / total / description
      Previous value: -"Total matching results in the dataset."New value: +"Total matching records"
    • changedOutput schema / properties / meta / properties / totalUnverified / description
      Previous value: -"Present (true) only on an empty page at skip > 0 whose total could not be confirmed: openFDA answers a page past the end and a search that matched nothing alike, and the follow-up request for the total failed. total then reads 0 without ruling out records at a lower skip — re-call with skip=0 to tell."New value: +"True on an empty page at skip > 0 whose total could not be confirmed: total 0 then does not rule out records — re-call with skip=0."
    • addedOutput schema / properties / next_cursor
      Added value: +{
      +  "description": "Pass as cursor for the next page; present on a page read at skip 0 or by cursor when more records follow.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance for this page: how to broaden filters or correct field names when results are empty or paging overshot, the sized re-call example when a page overflowed to its section outline, section names no record carried, the serialized size when a sections selection exceeds the inline budget, and the requested value, the cap applied, and the next skip when limit exceeded the 1000-record cap. Absent when nothing needs saying."New value: +"Guidance for this page: empty result, paging on and the original packager's label, the sized re-call for an outline, section names no record carried, a selection over the inline budget, limit clamp, end of a cursor walk. Absent when nothing needs saying."
    • changedOutput schema / properties / outline / description
      Previous value: -"Section names available across the matched page and their serialized size, largest first. Present when kind is \"outline\" — pass names back in sections to retrieve them."New value: +"When kind is \"outline\": the sections on the page and their serialized size summed across it, largest first; pass names back in sections."
    • addedOutput schema / properties / page_labels
      Added value: +{
      +  "description": "The label records this page holds, in page order. Present when kind is \"outline\", which otherwise names no record.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One label record on the page.",
      +    "properties": {
      +      "brand_name": {
      +        "description": "First openfda.brand_name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "bytes": {
      +        "description": "This label's serialized UTF-8 size; one over 24000 bytes returns an outline even when re-called alone.",
      +        "type": "number"
      +      },
      +      "effective_time": {
      +        "description": "Label effective date (YYYYMMDD).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "generic_name": {
      +        "description": "First openfda.generic_name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "is_original_packager": {
      +        "description": "True when openFDA flags the label as the original packager's, false for a label with an openfda block but no flag (a repackager's or relabeler's), null when the openfda block is empty — which nulls the three names too.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "manufacturer_name": {
      +        "description": "First openfda.manufacturer_name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "set_id": {
      +        "description": "SPL set ID, the key to re-call this label alone.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "set_id",
      +      "effective_time",
      +      "brand_name",
      +      "generic_name",
      +      "manufacturer_name",
      +      "is_original_packager",
      +      "bytes"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / results / description
      Previous value: -"Drug label records, present when kind is \"full\". Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label. Sections ending in _table carry raw SPL table markup (tags and character entities) exactly as openFDA returns it. Narrowed to the requested sections plus metadata when sections was supplied."New value: +"Label records when kind is \"full\": an openfda block (brand_name, generic_name, manufacturer_name, route) plus the SPL sections each label has, such as indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; with sections, only those plus metadata. _table sections carry raw SPL table markup as openFDA returns it; the text output renders them as Markdown tables."
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when more labels matched than this page returned — page with skip for the rest."New value: +"True when more labels matched than this page returned — page with next_cursor or skip for the rest."
  2. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return (1-1000). Default 5. Labels are large, and the cost of a sections selection is the section summed across every record on the page — so it scales with this limit. Lower it before widening a selection."New value: +"Labels per page. Labels are large, and the cost of a sections selection is the section summed across every record on the page — so it scales with this limit. Lower it before widening a selection. Default 5; a larger value returns at most 1000 and says so."
    • removedInput schema / properties / limit / maximum
      Removed value: -1000
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / properties / meta / properties / limit / description
      Previous value: -"Maximum results returned per request."New value: +"Page size applied to this request: the requested limit, the endpoint default when limit was omitted, or the endpoint cap when limit exceeded it (the notice then says so). A window running past the end of the matched set returns fewer records than this, so read the length of results for the actual count."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance for this page: how to broaden filters or correct field names when results are empty or paging overshot, the sized re-call example when a page overflowed to its section outline, section names no record carried, and the serialized size when a sections selection exceeds the inline budget. Absent when nothing needs saying."New value: +"Guidance for this page: how to broaden filters or correct field names when results are empty or paging overshot, the sized re-call example when a page overflowed to its section outline, section names no record carried, the serialized size when a sections selection exceeds the inline budget, and the requested value, the cap applied, and the next skip when limit exceeded the 1000-record cap. Absent when nothing needs saying."
  3. Changed1 schema field changed
    • changedInput schema / properties / search / description
      Previous value: -"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". For a specific revision, pass set_id with the SPL UUID returned in earlier results. Double quotes, parentheses, and range brackets must balance, and the query must not end on a backslash — each is rejected before the request."New value: +"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". To fetch one product's label, pass set_id with the SPL UUID returned in earlier results; it returns the label's current revision only, since openFDA does not serve earlier ones. Separate clauses with spaces. A \"+\" written in the URL style of openFDA's examples also reads as a space where it separates: beside AND, OR, NOT, or TO, after a closing quote, paren, or bracket, or between a term and the next \"field:\" prefix (a:\"x\"+AND+b:\"y\", [20200101+TO+20201231], c:x+d:y). In a query that marks a clause required with a leading +field:, only the AND/OR/NOT/TO positions read that way. Any other \"+\" is sent as written, and inside a quoted phrase \"+\" is a literal plus sign. Double quotes, parentheses, and range brackets must balance, and the query must not end on a backslash — each is rejected before the request."
  4. Changed2 schema fields changed
    • changedInput schema / properties / sort / description
      Previous value: -"Sort expression — a field path optionally suffixed with :asc or :desc; comma-separate for multi-field sort. Example: effective_time:desc. Field paths take only letters, digits, underscores, and dots; anything else is rejected before the request. A well-formed but non-sortable field still causes a query error — use a documented field name."New value: +"Sort expression — a field path optionally suffixed with :asc or :desc (any letter case; :ascending and :descending are also accepted, and every direction is sent as asc or desc); comma-separate for multi-field sort. Example: effective_time:desc. Field paths take only letters, digits, underscores, and dots; any other character or direction is rejected before the request. A well-formed but non-sortable field still causes a query error — use a documented field name."
    • changedInput schema / properties / sort / pattern
      Previous value: -"^ *[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)*(?::[^,:]*)?(?: *, *[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)*(?::[^,:]*)?)* *$"New value: +"^\\s*(?=\\S)(?![,:.])(?!.*,(?: *[,:.]|\\s*$))(?!.*[^\\s,] +[^\\s,])(?!.*\\.(?:[.:,\\s]|$))(?!.*:(?!(?:[Aa][Ss][Cc](?:[Ee][Nn][Dd][Ii][Nn][Gg])?|[Dd][Ee][Ss][Cc](?:[Ee][Nn][Dd][Ii][Nn][Gg])?)(?: *,|\\s*$)))[A-Za-z0-9_.:, ]*[A-Za-z0-9_]\\s*$"
  5. Changed2 schema fields changed
    • changedInput schema / properties / sections / description
      Previous value: -"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget. A selection is returned whole even when it exceeds that budget, with its serialized size reported on the notice; the outline names a section measured to fit at the requested limit. Metadata (openfda, set_id, id, effective_time, version) is returned either way and counts toward the size."New value: +"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget; an empty list is treated as omitted. A selection is returned whole even when it exceeds that budget, with its serialized size reported on the notice; the outline names a section measured to fit at the requested limit. Sections ending in _table hold SPL table markup: raw in structured results, rendered as Markdown tables in the text output. Metadata (openfda, set_id, id, effective_time, version) is returned either way and counts toward the size."
    • changedOutput schema / properties / results / description
      Previous value: -"Drug label records, present when kind is \"full\". Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label. Narrowed to the requested sections plus metadata when sections was supplied."New value: +"Drug label records, present when kind is \"full\". Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label. Sections ending in _table carry raw SPL table markup (tags and character entities) exactly as openFDA returns it. Narrowed to the requested sections plus metadata when sections was supplied."
  6. Changed1 schema field changed
    • addedOutput schema / properties / meta / properties / totalUnverified
      Added value: +{
      +  "description": "Present (true) only on an empty page at skip > 0 whose total could not be confirmed: openFDA answers a page past the end and a search that matched nothing alike, and the follow-up request for the total failed. total then reads 0 without ruling out records at a lower skip — re-call with skip=0 to tell.",
      +  "type": "boolean"
      +}
  7. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "meta",
      +      "kind",
      +      "totalResults",
      +      "effectiveQuery"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `rate_limited`: The openFDA daily or per-minute request limit is exceeded. `upstream_error`: The openFDA API returned a 5xx server error. `malformed_search`: The search query leaves a double quote, parenthesis, or range bracket unclosed, or ends on a backslash. `query_error`: The search query was rejected by openFDA (malformed field name, invalid syntax). `pagination_limit_reached`: skip exceeds the 25000 record pagination ceiling. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "rate_limited",
      +            "upstream_error",
      +            "malformed_search",
      +            "query_error",
      +            "pagination_limit_reached"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "meta",
      -  "kind",
      -  "totalResults",
      -  "effectiveQuery"
      -]
  8. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return (1-1000). Default 5. Labels are large."New value: +"Maximum number of results to return (1-1000). Default 5. Labels are large, and the cost of a sections selection is the section summed across every record on the page — so it scales with this limit. Lower it before widening a selection."
    • changedInput schema / properties / sections / description
      Previous value: -"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget. Metadata (openfda, set_id, id, effective_time, version) is returned either way."New value: +"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget. A selection is returned whole even when it exceeds that budget, with its serialized size reported on the notice; the outline names a section measured to fit at the requested limit. Metadata (openfda, set_id, id, effective_time, version) is returned either way and counts toward the size."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when results are empty or paging overshot — how to broaden filters or correct field names. Absent when results are returned."New value: +"Guidance for this page: how to broaden filters or correct field names when results are empty or paging overshot, the sized re-call example when a page overflowed to its section outline, section names no record carried, and the serialized size when a sections selection exceeds the inline budget. Absent when nothing needs saying."
  9. Changed3 schema fields changed
    • changedInput schema / properties / search / description
      Previous value: -"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". For a specific revision, pass set_id with the SPL UUID returned in earlier results."New value: +"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". For a specific revision, pass set_id with the SPL UUID returned in earlier results. Double quotes, parentheses, and range brackets must balance, and the query must not end on a backslash — each is rejected before the request."
    • changedInput schema / properties / sort / description
      Previous value: -"Sort expression (field:asc or field:desc). Example: effective_time:desc. Invalid or non-sortable fields cause a query error — use a documented field name."New value: +"Sort expression — a field path optionally suffixed with :asc or :desc; comma-separate for multi-field sort. Example: effective_time:desc. Field paths take only letters, digits, underscores, and dots; anything else is rejected before the request. A well-formed but non-sortable field still causes a query error — use a documented field name."
    • changedInput schema / properties / sort / pattern
      Previous value: -"\\S"New value: +"^ *[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)*(?::[^,:]*)?(?: *, *[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)*(?::[^,:]*)?)* *$"
  10. Changed7 schema fields changed
    • addedInput schema / properties / sections
      Added value: +{
      +  "description": "Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget. Metadata (openfda, set_id, id, effective_time, version) is returned either way.",
      +  "items": {
      +    "description": "A top-level label section name.",
      +    "minLength": 1,
      +    "pattern": "\\S",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / skip / description
      Previous value: -"Number of results to skip for pagination (0-25000). Default 0."New value: +"Number of records to skip for pagination (default 0). openFDA caps pagination at 25000 records; a higher value returns a pagination_limit_reached error."
    • removedInput schema / properties / skip / maximum
      Removed value: -25000
    • addedOutput schema / properties / kind
      Added value: +{
      +  "description": "Whether this response carries label records (\"full\") or only the section outline of a page too large to inline (\"outline\").",
      +  "enum": [
      +    "full",
      +    "outline"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / outline
      Added value: +{
      +  "description": "Section names available across the matched page and their serialized size, largest first. Present when kind is \"outline\" — pass names back in sections to retrieve them.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One retrievable label section and its serialized size.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized byte size of the section",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "name": {
      +        "description": "Section identifier — pass in `sections` to retrieve it",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "bytes"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / results / description
      Previous value: -"Drug label records. Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label."New value: +"Drug label records, present when kind is \"full\". Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label. Narrowed to the requested sections plus metadata when sections was supplied."
    • changedOutput schema / required
      Previous value: -[
      -  "meta",
      -  "results",
      -  "totalResults",
      -  "effectiveQuery"
      -]New value: +[
      +  "meta",
      +  "kind",
      +  "totalResults",
      +  "effectiveQuery"
      +]
  11. Changed4 schema fields changed
    • addedInput schema / properties / search / minLength
      Added value: +1
    • addedInput schema / properties / search / pattern
      Added value: +"\\S"
    • addedInput schema / properties / sort / minLength
      Added value: +1
    • addedInput schema / properties / sort / pattern
      Added value: +"\\S"
  12. Changed3 schema fields changed
    • addedOutput schema / properties / cap
      Added value: +{
      +  "description": "The limit applied to this page.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / shown
      Added value: +{
      +  "description": "Number of labels returned in this response.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when more labels matched than this page returned — page with skip for the rest.",
      +  "type": "boolean"
      +}
  13. Changed5 schema fields changed
    • addedOutput schema / properties / effectiveQuery
      Added value: +{
      +  "description": "Search filter applied to the drug label query, as submitted to openFDA",
      +  "type": "string"
      +}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Human-readable note when the result set is empty.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Guidance when results are empty or paging overshot — how to broaden filters or correct field names. Absent when results are returned.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / totalResults
      Added value: +{
      +  "description": "Total matching label records in the dataset",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "meta",
      -  "results"
      -]New value: +[
      +  "meta",
      +  "results",
      +  "totalResults",
      +  "effectiveQuery"
      +]
  14. Changed3 schema fields changed
    • changedInput schema / properties / search / description
      Previous value: -"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\", set_id:\"uuid\"."New value: +"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". For a specific revision, pass set_id with the SPL UUID returned in earlier results."
    • changedInput schema / properties / sort / description
      Previous value: -"Sort expression (field:asc or field:desc). Example: effective_time:desc. Unrecognized fields are silently ignored by the API — results return in default order."New value: +"Sort expression (field:asc or field:desc). Example: effective_time:desc. Invalid or non-sortable fields cause a query error — use a documented field name."
    • changedOutput schema / properties / results / description
      Previous value: -"Array of drug label records."New value: +"Drug label records. Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label."
  15. First observed

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=true, so the description carries the rest and does so well: it discloses that labels run to tens of thousands of tokens, that an over-budget page degrades to a section outline rather than failing, and that a sections selection is returned whole. That degradation-and-retry behavior is exactly the kind of trait an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each earning its place: identity of the resource, what can be read from it, then the token-budget fallback. The most consequential detail (the outline fallback) is stated before any padding could bury it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and readOnlyHint covering the safety profile, the remaining burden is pagination and payload size, which the description handles explicitly. The one gap is routing guidance relative to openfda_drug_profile, which an agent must infer from the schema text.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all six parameters are already documented in detail, including sort syntax, cursor rules, and the size cost of a sections selection. The description reinforces only the sections/outline interaction, which the schema's own sections description largely covers, so this is the baseline rather than added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('Look up FDA drug labeling (package inserts / SPL documents)') and enumerates the content types an agent can retrieve (indications, warnings, dosage, contraindications, active ingredients). It does not distinguish itself from the closest sibling, openfda_drug_profile, which is only referenced inside the schema's search parameter description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the listed label sections, and the description gives strong in-tool workflow guidance (oversized page returns an outline, re-call with sections). However, it never states when to prefer this tool over openfda_drug_profile or openfda_describe_fields, leaving sibling selection to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.