Skip to main content
Glama

Find Patient by Identifier

find_patient
Read-onlyIdempotent

Look up patient FHIR IDs, gender, birth date, and active status by MRN, member ID, or system|value; pass the returned ID to other tools. Read-only; only granted patients are returned.

Instructions

Find patients by identifier (MRN, member id or another system|value) and return their FHIR ids, gender, birth date and active status. Use it when you know an identifier but not the FHIR id, then pass the id to the other tools. Only patients the caller is granted for find_patient are returned; others are silently left out, so an empty list does not mean no such patient exists. Read only. Every call writes one audit record; the identifier and patient ids are not logged. A caller without a find_patient grant gets "Patient access not authorized" before any FHIR request. More than 200 matches 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": {
      "identifier": "<identifier>"
    },
    "name": "find_patient"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYesPatient identifier to look up, as system|value (for example urn:oid:1.2.36.146.595.217.0.1|12345) or a bare value. Only patients in your grant are returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and open-world, yet the description adds substantial context beyond them: results are silently filtered to the caller's find_patient grant, so an empty list is not proof of absence; each call writes an audit record with identifier and patient ids excluded; and it quotes the exact authorization, >200-match, and generic failure messages. The only modest gap is that pagination/partial-result behavior for large-but-under-200 result sets isn't described. No contradiction with the readOnlyHint/idempotentHint annotations.

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?

It is front-loaded with the purpose and return fields before the caveats, and every sentence carries operational information rather than filler. The quoted error strings are individually useful but make the paragraph dense; the behavioral details could be tightened slightly without losing content.

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 one fully documented parameter, no output schema, and annotations covering the safety profile, the remaining burden is explaining result shape, access filtering, and failure modes, all of which are addressed. An agent can decide to call it, interpret an empty list correctly, and handle the specific error messages without further information.

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

Parameters4/5

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

Schema coverage is 100% and the schema already supplies the pattern, length bounds, and a system|value example, so the baseline is 3. The description still adds meaning by naming the concrete identifier domains callers typically hold (MRN, member id, or another system|value) and by reinforcing that the lookup is grant-scoped, which affects how an agent should interpret a miss.

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?

The description names a specific verb and resource (find patients by identifier), enumerates accepted identifier kinds (MRN, member id or another system|value), and lists the returned fields (FHIR ids, gender, birth date, active status). It also distinguishes itself from the id-based lookup path ('when you know an identifier but not the FHIR id, then pass the id to the other tools'), so an agent can separate it from get_patient without opening either schema.

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?

It states the positive trigger ('use it when you know an identifier but not the FHIR id') and the downstream action (pass the returned id to the other tools), which implicitly rules out cases where the FHIR id is already known. This is explicit routing guidance rather than an implied capability statement.

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