Skip to main content
Glama

Get Patient Summary

get_patient_summary
Read-onlyIdempotent

Retrieve a patient’s demographics, active conditions, allergies, and active medications in one read-only call; use it first for a whole-patient overview before detailed history.

Instructions

One-call overview of a patient: demographics, active conditions, allergies and active medications. Use it first when asked about a patient as a whole; use the single-resource tools for detail or history. Needs its own policy grant. Any failed part fails the whole summary. Read only. Every call writes one audit record in which the patient id is HMAC-hashed; no PHI is logged. Access is checked first against the server patient policy: a patient outside the caller grant returns "Patient access not authorized" before any FHIR request. More than 200 results returns "Too many results (more than 200); narrow the request". Other failures return "FHIR request failed" with no server detail.

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_patient_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
patient_idYesFHIR logical id of the Patient, 1 to 64 letters, digits, dots or hyphens, for example a sandbox id returned by the FHIR server. Not a name, MRN or other identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description adds substantial behavioral context they cannot express: atomic failure semantics ("any failed part fails the whole summary"), an audit record with HMAC-hashed patient id and no PHI logging, access check ordering before any FHIR request, and the exact 200-result cap. The three distinct error strings let the agent recognize and react to each failure mode rather than guessing.

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?

Seven short sentences, each carrying distinct operational signal, with purpose and routing front-loaded ahead of prerequisites and failure modes. Nothing is repeated from the schema or annotations, and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must convey what is returned, and it enumerates the four data categories returned in one call. Combined with the access-check behavior, the result cap, and the error taxonomy, an agent has everything needed to call it and interpret failure.

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 schema itself already explains that patient_id is a FHIR logical id, not a name or MRN, with pattern and length constraints. The description adds no further parameter detail, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"One-call overview of a patient: demographics, active conditions, allergies and active medications" gives a specific verb, resource, and enumerated payload, so the agent knows exactly what comes back. It also draws the line against the single-resource siblings (get_allergies, get_conditions, etc.) in the next sentence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it first when asked about a patient as a whole; use the single-resource tools for detail or history" states both the when and the when-not with a named alternative class. It also flags the prerequisite that the tool "needs its own policy grant," which affects tool selection in a policy-gated environment.

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