Skip to main content
Glama

Pearls Search

Search Pearls shortage index

pearls_search
Read-only

Search the local Pearls-scale index of FDA openFDA drug-shortage presentations and events across versioned weekly snapshots (hybrid BM25 + TF-IDF). Returns ranked results with snippet, status, source, and snapshot date. Set as_of to search as of a past snapshot date. No match means not in this snapshot, never that a drug is available. Research context only, not medical advice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "pearls_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoOptional snapshot date ceiling (YYYY-MM-DD). Searches the latest snapshot on or before this date.
queryYesDrug name or search query, e.g. 'Midazolam Hydrochloride Injection' or 'Versed 5mg vial'.
num_resultsNoMaximum results to return (1-20).

Output Schema

NameRequiredDescriptionDefault
noteNo
as_ofNo
queryYes
resultsYes
disclaimerYes
request_idYes
snapshot_dateYes
expanded_termsNo
alias_expansionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false, so the safety profile is covered; the description goes further by disclosing the local index, the hybrid BM25 + TF-IDF ranking approach, snapshot-ceiling semantics for as_of, and the critical caveat that a miss means absence from that snapshot rather than drug availability. It omits ranking/pagination behavior, but that is minor given an output schema exists.

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?

Four tight sentences, front-loaded with the core capability and ending with the safety disclaimer. The return-field list (snippet, status, source, snapshot date) partially duplicates the output schema but is short enough to not feel wasteful.

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?

For a read-only search tool with a full-coverage schema and an output schema, the description covers mechanism, temporal scoping, negative-result interpretation, and disclaimers. Only query-matching behavior (exact vs. fuzzy term handling) is left unstated.

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 are already documented. The description's as_of sentence restates the schema's 'latest snapshot on or before this date' meaning without adding syntax, edge cases, or guidance beyond it, 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?

States a specific verb and resource: search a local index of FDA openFDA drug-shortage presentations and events across versioned weekly snapshots. The scope is unambiguous and clearly distinct from a stats-oriented sibling like pearls_snapshot_stats, though it never names alternatives explicitly.

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?

It gives interpretation rules ('set as_of to search a past snapshot', 'no match means not in this snapshot') and a scope restriction ('research context only, not medical advice'), but never states when to prefer this tool versus its sibling or what queries it handles poorly. Usage is implied rather than explicitly routed.

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.

Resources