Skip to main content
Glama

get_allergies

Read-onlyIdempotent

Retrieve recorded allergies and intolerances for a specific patient to inform safe prescribing and clinical decisions.

Instructions

Recorded allergies and intolerances for one patient.

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": {
      "patient_id": "<patient_id>"
    },
    "name": "get_allergies"
  }
}

Input Schema

NameRequiredDescriptionDefault
patient_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered elsewhere. The description adds almost nothing behavioral: the word 'recorded' hints at recorded-vs-active status but is never clarified, and there is no mention of empty results, coded values, or whether historical/inactive allergies are included.

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?

One short, front-loaded sentence with zero padding. The only weakness is that it is a sentence fragment with no verb, which slightly reduces actionability without adding any waste.

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 single-parameter read with full safety annotations and no output schema, this is close to adequate. The remaining gaps are the patient_id format contract and what an empty or inactive-allergy result means, both of which an agent would need to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single parameter, so the description carries the burden, yet it only implies there is exactly one patient. It never states what form patient_id takes (internal chart id vs MRN vs FHIR reference) or whether it must be previously resolved via search_patients.

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 names the resource precisely ('allergies and intolerances') and scopes it to a single patient, which distinguishes it from siblings like get_conditions and get_medications. It omits an explicit retrieval verb, but the noun phrase plus the name leaves no real ambiguity about what is returned.

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 only: fetch this when you need a specific patient's allergy/intolerance list. There is no statement about when to prefer it over get_patient (which may bundle this data) or search_patients, and no prerequisites such as needing a resolved patient_id.

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