Skip to main content
Glama
drvvek
by drvvek

faers_raw_search

Read-onlyIdempotent

Run arbitrary Lucene queries against the FAERS drug adverse event endpoint, with automatic validation of quotes, parentheses, and syntax before execution.

Instructions

Escape hatch: run an arbitrary Lucene query against the FAERS endpoint.

The query is checked for balanced quotes and parentheses and for the "+AND+" mistake before being sent; the same compact projection and ceilings apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fullNoReturn complete records rather than compact cards.
skipNoPagination offset (openFDA ceiling 25000).
sortNoe.g. 'receivedate:desc'.
countNoField to aggregate by. When set, results are {term, count} rows instead of records.
limitNoRecords or count rows to return.
searchYesRaw Lucene query, e.g. 'patient.patientsex:2 AND serious:1'. Join clauses with spaces (" AND ", " OR "), never "+AND+".
drug_nameNoOptional substance to annotate on each returned card as suspect_verified (true when carried in a suspect role on that record). Annotates only; does not filter. Use faers_search_cases with role_basis='suspect_verified' to filter.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the bar is lower, and the description still adds real behavior: pre-flight validation of balanced quotes/parentheses, detection of the '+AND+' mistake, and that the same compact projection and ceilings apply as elsewhere. The projection/ceiling reference is left vague, but the validation disclosure is genuine added value.

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?

Two sentences with no filler, and the identity of the tool ('escape hatch') is front-loaded. The trailing clause about projection and ceilings is slightly compressed to the point of ambiguity, which keeps it out of 5 territory.

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?

An output schema exists, so return values need not be described, and the description covers the non-obvious input-validation behavior. For a seven-parameter openWorld tool it is nearly complete; the omitted piece is explicit routing guidance against the many structured siblings.

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 coverage is 100%, so the schema already documents all seven parameters, including the annotate-only semantics of drug_name. The description adds no syntax or format detail beyond what the schema provides, so the 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?

States a specific verb (run) and resource (arbitrary Lucene query against the FAERS endpoint), and the 'escape hatch' framing immediately distinguishes it from the structured siblings like faers_search_cases. It stops short of naming which siblings it supersedes in which situation, but the core purpose 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?

'Escape hatch' implies the usage condition — reach for this when the curated tools cannot express what you need — but the description never states that explicitly or names an alternative. The guidance is implied rather than stated; a reader must infer when this beats faers_search_cases.

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