Skip to main content
Glama

Get FDA UNII dataset statistics

get_unii_stats
Read-onlyIdempotent

Aggregate FDA UNII dataset counts by substance name or UNII code, with an optional ingredient keyword filter, to summarize ingredient records for regulatory and labeling analysis.

Instructions

Aggregate FDA UNII dataset counts grouped by substance name or UNII code with optional ingredient filter.

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_unii_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax aggregation buckets to return (default 10).
queryNoOptional ingredient keyword filter.
group_byNoAggregation dimension (default "substance_name").

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds the useful behavioral fact that results are bucket counts grouped along a dimension, but says nothing about the 25-bucket cap, default of 10, or ordering of buckets.

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 that names the operation, the resource, the grouping options and the filter with no filler. It is dense and slightly compressed, but every clause earns its place.

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 simple three-parameter read-only aggregation this covers the essentials. Because there is no output schema, the description should ideally say what a result bucket looks like (name plus count) and how limit truncation affects output, which it omits.

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%, so all three parameters, their defaults and the group_by enum are already documented in the schema. The description mirrors that (group by substance name/UNII, optional ingredient filter) without adding syntax, matching rules, or default behavior beyond what structured fields provide.

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 ('Aggregate ... counts') and resource ('FDA UNII dataset') plus the grouping dimensions, which clearly sets it apart from the lookup/search siblings that return records rather than aggregates. It stops short of naming any sibling, but the aggregation framing is unambiguous.

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 only implied: the word 'Aggregate' signals statistics rather than record retrieval, and the 'optional ingredient filter' hints at narrowing scope. There is no explicit statement of when to prefer this over search_unii_records or the lookup tools, and no exclusions or prerequisites.

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