Skip to main content
Glama

Get Care Team

get_care_team
Read-onlyIdempotent

Lists FHIR R4 CareTeam resources for one patient so you can identify which roles are involved in their care. Returns status, category, period, and coded participant roles only.

Instructions

List FHIR R4 CareTeam resources for one patient. Use it to see which roles are involved in care. Returns a JSON array with status, category, period and the coded role of each participant; member names and references are never returned. 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_care_team"
  }
}

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.8.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, but the description goes well beyond them: it discloses the returned fields, states that member names and references are deliberately withheld, describes audit logging with an HMAC-hashed patient id, explains the pre-flight authorization check, and quotes the exact error strings for the 200-result cap and access denial. That is unusually rich behavioral context, which is why it lands at the top of the scale rather than at the annotation-only baseline.

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?

Return shape and the key negative constraint come first, followed by safety, access and error behavior in a compact block. "Read only" duplicates the annotation and the error strings are quoted near-verbatim, but nearly every sentence carries actionable information.

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 parameter and no output schema, the description supplies the return fields, the withholding rule, the authorization precondition, the result cap and all failure modes. An agent has everything needed to call it and interpret failures correctly.

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 single parameter already explains the logical-id format and that it is not a name or MRN. The description adds only oblique parameter context (the id is checked against the caller grant and HMAC-hashed in the audit record), so the schema does the heavy lifting and the baseline 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?

The description opens with a specific verb and resource: "List FHIR R4 CareTeam resources for one patient," and adds intent ("see which roles are involved in care"). It is unambiguous versus resource-specific siblings like get_allergies or get_conditions, though it never names an alternative explicitly.

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

Usage Guidelines4/5

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

"Use it to see which roles are involved in care" gives a clear situational trigger for calling the tool. There are no exclusions or named alternatives, so an agent gets context but not disambiguation against overlapping tools such as get_patient_summary.

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