Skip to main content
Glama

Fda Device Event Counts

fda_device_event_counts
Read-onlyIdempotent

Aggregate MAUDE reports for a device query by event type, manufacturer, product code, or receive date. Counts reflect reporting and database artifacts, not event rates or causal risk, and must not be compared without exposure denominators.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 10,
      "count_field": "device.generic_name.exact"
    },
    "name": "fda_device_event_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoBuckets (1-100, default 20).
queryNoOptional raw openFDA MAUDE filter, e.g. 'date_received:[20250101+TO+20261231]'. Omit to rank across all reports.
count_fieldYesWhat to rank by. For "which DEVICES had the most reports" use device.generic_name.exact (device type) or device.brand_name.exact (specific product).

Output Schema

NameRequiredDescriptionDefault
totalYes
sourceYes
bucketsYes
returnedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / count_field / enum
      Previous value: -[
      -  "device.generic_name.exact",
      -  "device.brand_name.exact",
      -  "device.openfda.device_name.exact",
      -  "device.manufacturer_d_name.exact",
      -  "event_type.exact",
      -  "manufacturer_name.exact",
      -  "device.device_report_product_code.exact",
      -  "date_received"
      -]New value: +[
      +  "device.generic_name.exact",
      +  "device.brand_name.exact",
      +  "device.openfda.device_name.exact",
      +  "device.manufacturer_d_name.exact",
      +  "event_type.exact",
      +  "device.device_report_product_code.exact",
      +  "date_received"
      +]
  2. Changed5 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "count_field": "event_type.exact",
      -    "limit": 10,
      -    "query": "device.device_report_product_code:MDS"
      -  }
      -]New value: +[
      +  {
      +    "count_field": "device.generic_name.exact",
      +    "limit": 10
      +  },
      +  {
      +    "count_field": "device.brand_name.exact",
      +    "limit": 10
      +  },
      +  {
      +    "count_field": "event_type.exact",
      +    "limit": 10,
      +    "query": "device.device_report_product_code:MDS"
      +  }
      +]
    • addedInput schema / properties / count_field / description
      Added value: +"What to rank by. For \"which DEVICES had the most reports\" use device.generic_name.exact (device type) or device.brand_name.exact (specific product)."
    • changedInput schema / properties / count_field / enum
      Previous value: -[
      -  "event_type.exact",
      -  "manufacturer_name.exact",
      -  "device.device_report_product_code.exact",
      -  "date_received"
      -]New value: +[
      +  "device.generic_name.exact",
      +  "device.brand_name.exact",
      +  "device.openfda.device_name.exact",
      +  "device.manufacturer_d_name.exact",
      +  "event_type.exact",
      +  "manufacturer_name.exact",
      +  "device.device_report_product_code.exact",
      +  "date_received"
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Required raw openFDA MAUDE filter."New value: +"Optional raw openFDA MAUDE filter, e.g. 'date_received:[20250101+TO+20261231]'. Omit to rank across all reports."
    • changedInput schema / required
      Previous value: -[
      -  "query",
      -  "count_field"
      -]New value: +[
      +  "count_field"
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the description's value-add is the interpretive caveat: counts reflect reporting and database artifacts, not event rates or causal risk, and require exposure denominators for comparison. That is substantive domain context beyond the annotations, though it says nothing about data freshness, rate limits, or how bucket counts are truncated.

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?

Two sentences, no waste: the aggregating action and rank dimensions come first, followed by the single most important caveat. Nothing redundant with the schema or annotations is restated.

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, return-value explanation is unnecessary, and the schema fully documents all three parameters. The remaining gap is sibling differentiation — an agent reading only this description cannot tell why it should prefer counts here over the adverse-events listing tool.

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 the enum's own descriptions already explain which field to rank by, including the device-type vs specific-product distinction, so the baseline is 3. The description adds no syntax or format guidance for query or limit beyond the schema, and its dimension list is narrower than the actual enum.

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?

States a concrete verb and resource — aggregating MAUDE reports into counts — plus the dimensions used for ranking. The enumeration ('event type, manufacturer, product code, or receive date') is a partial subset of the enum in the schema (generic_name and brand_name are omitted), so it is clear but not fully precise; it also does not name a sibling like fda_device_adverse_events to contrast against.

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 aggregate framing ('Aggregate ... counts') and the note about denominators hints at when the output is interpretable, but there is no explicit statement of when to choose this over fda_device_adverse_events or fda_device_product_code_profile. The agent must infer the routing decision.

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.