Skip to main content
Glama

get_conditions

Read-onlyIdempotent

Retrieves a patient's conditions (diagnoses), optionally filtered by clinical status or onset date, to support clinical record review.

Instructions

Conditions (diagnoses) for one patient, optionally by clinical status (active, resolved, ...) and onset on or after since (YYYY-MM-DD).

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

Input Schema

NameRequiredDescriptionDefault
sinceNo
patient_idYes
clinical_statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is known. The description adds the filtering behavior (onset on or after `since`, clinical status filter) beyond that, but says nothing about result ordering, limits, or what an empty result looks like.

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?

A single front-loaded sentence with the resource and scope first and the optional filters after. Every clause carries information; nothing is redundant or padded.

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 simple three-parameter read tool with no output schema, the description touches all three parameters and states the tool's scope. It is nearly complete, missing only return-shape hints and whether the status filter accepts one or many values.

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?

With 0% schema description coverage the description must carry the burden, and it does add value: `since` is documented as a YYYY-MM-DD onset threshold and clinical_status is illustrated with 'active, resolved, ...'. It still omits acceptable value sets, whether multiple statuses can be supplied, and the meaning of the empty-string defaults.

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?

Names the resource precisely ('Conditions (diagnoses)') and its scope ('for one patient'), which distinguishes it cleanly from siblings like get_medications and get_allergies that share the same shape but a different resource. The retrieval verb is only implied by the bare noun phrase, so it falls short of an explicit verb+resource statement.

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?

The phrase 'for one patient' implicitly conveys that a patient identifier is required and that optional narrowing is available, but there is no explicit when-to-use/when-not guidance and no mention of alternative tools for other condition queries. Routing is inferable from the resource name rather than stated.

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