Skip to main content
Glama

ScorpTech x402 Tools

Openfda Drug

openfda_drug
Read-onlyIdempotent

FDA drug facts by brand/generic name or NDC from openFDA: label sections (boxed warning, indications, dosage, contraindications, warnings, adverse reactions, interactions, or any SPL field), FAERS adverse-event report totals with serious count and top reported reactions, and the latest enforcement recalls with class and reason. Not for clinical use; the response carries FDA's disclaimer. Returns JSON with: query, label, adverseEvents, recalls, disclaimer. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/openfda-drug

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "openfda_drug"
  }
}

Input Schema

NameRequiredDescriptionDefault
ndcNoAlternative: product NDC (0573-0164) or package NDC (0573-0164-30)
nameNoBrand or generic drug name (alias: drug)
limitNoTop adverse reactions to return, 1-25 (default 10)
includeNoComma list of label, events, recalls (default all)
maxCharsNoMax characters per label section, 100-10000 (default 1200)
sectionsNoComma list of openFDA label fields, or "all" (default: key safety sections)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive), the description discloses payment mechanics ($0.01 USDC per successful call via x402 on Base or Solana), the presence of an FDA disclaimer in the payload, and a full alternative HTTPS endpoint. Those are exactly the operational facts an agent cannot get 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.

Conciseness4/5

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

The core capability is front-loaded in one dense sentence, followed by the disclaimer, return keys, and pricing. Every clause carries information, though the sentence is long and the pricing/URL tail could be separated for easier scanning.

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 six optional parameters and no output schema, the description compensates by listing the top-level response keys (query, label, adverseEvents, recalls, disclaimer) and the caveat about clinical use. The only real gap is that it does not explain what happens when both `name` and `ndc` are omitted or supplied together.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning by enumerating which label sections exist (boxed warning, indications, dosage, contraindications, warnings, adverse reactions, interactions, any SPL field) and by explaining that adverse events include serious counts and top reactions. That clarifies what values `sections` and `include` actually select, beyond the schema's generic 'comma list' wording.

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

Purpose5/5

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

The description names the specific resource (openFDA drug data) and the three concrete result families it returns: label sections, FAERS adverse-event totals, and enforcement recalls. It also states the two lookup keys (brand/generic name or NDC), so an agent knows exactly what the tool does without opening the schema.

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 by the enumeration of data families and the 'Not for clinical use' caveat, and the name/NDC alternative is spelled out. However, it never states when to prefer this tool over other data sources or when a query should be skipped, so the guidance stays implicit.

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.

Resources