Get FDA GSRS substance statistics
get_substance_statsAggregate FDA GSRS substance counts by substance class, external code system, name type, or definition type to profile registry composition and identify distribution patterns.
Instructions
Aggregate FDA GSRS substance counts grouped by substance class, external code system, name type, or definition type.
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_substance_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max aggregation buckets to return (default 10). | |
| query | No | Optional substance name filter. | |
| group_by | No | Aggregation dimension (default "substance_class"). |