Skip to main content
Glama
openfda-nsde-drug-packages-mcp

openfda-nsde-drug-packages-mcp

Get FDA NSDE drug package statistics

get_nsde_stats
Read-onlyIdempotent

Aggregate FDA NSDE drug package counts by product type, marketing category, dosage form, proprietary name, or billing unit, with optional query filters and bucket limits.

Instructions

Aggregate FDA NSDE drug package counts grouped by product type, marketing category, dosage form, proprietary name, or billing unit.

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": "get_nsde_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax aggregation buckets to return (default 10).
queryNoOptional proprietary name or dosage form filter.
group_byNoAggregation dimension (default "marketing_category").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so safety behavior is covered. The description adds that results are grouped counts rather than records, but says nothing about how buckets are ordered, ties, or what an empty result means. Useful but modest added context.

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?

A single front-loaded sentence covering verb, resource, and dimension list with no filler. It could be marginally tighter, but every clause carries meaning.

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

Completeness3/5

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

For a read-only aggregation with no output schema, the description conveys the shape of the return (counts per group) but not bucket ordering, whether counts are of packages vs products, or multi-bucket behavior. Adequate but leaves real questions unanswered for a tool whose output format must be inferred.

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 description coverage is 100% and all three parameters are self-documented, including the group_by enum, the default of 10 buckets, the cap of 25, and the query filter's scope. The description restates the group_by choices but adds no format or filtering semantics beyond the schema, so baseline 3 applies.

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 gives a specific verb and resource: it 'aggregates' FDA NSDE 'drug package counts', and it enumerates the grouping dimensions, which lets an agent distinguish it from the sibling retrieval/search tools like search_nsde_packages or get_nsde_by_package_ndc. It stops short of naming those siblings explicitly, so the contrast is inferable rather than stated.

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?

The word 'aggregate' implies this is the counting/summarization tool rather than a lookup tool, which is useful implicit routing. However, there is no explicit statement of when to choose this over the sibling searches, and no mention of prerequisites or exclusions.

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