Skip to main content
Glama
health-os

health-os

record_diagnosis

Add a diagnosis to the local health record with diagnosis date, clinical status, verification status, ICD-10 code, and severity; check existing diagnoses first to avoid duplicates.

Instructions

Add a diagnosis (stored immediately as approved, with manual provenance). diagnosis_name: as written by the doctor; diagnosed_at: YYYY-MM-DD; icd10_code: optional; diagnosed_at not in the future; clinical_status: active (default) / recurrence / relapse / inactive / remission / resolved; verification_status: confirmed (default) / provisional / suspected / differential / refuted — use suspected or provisional for anything not confirmed by a doctor; severity: optional. Check get_diagnoses first to avoid duplicates.

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": {
      "diagnosis_name": "<diagnosis_name>",
      "diagnosed_at": "<diagnosed_at>"
    },
    "name": "record_diagnosis"
  }
}

Input Schema

NameRequiredDescriptionDefault
severityNo
icd10_codeNo
diagnosed_atYes
diagnosis_nameYes
clinical_statusNoactive
verification_statusNoconfirmed

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

The annotations declare the write profile (readOnlyHint=false, destructiveHint=false, non-idempotent), and the description adds genuinely new behavior: the record is auto-approved and carries manual provenance. It also discloses a validation rule ('diagnosed_at not in the future'). It doesn't say what happens on a duplicate submission or whether a diagnosis can later be edited, which matters for a non-idempotent write.

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?

Purpose and the key behavioral fact are front-loaded, then parameters are listed in a compact semicolon-separated block. Nearly every clause carries information; the only mild friction is the long inline enumeration of status values, which reads as a run-on but is still scannable.

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?

An output schema exists, so return values need no explanation, and the description covers the essential unknowns: auto-approval, provenance, date validation, defaults, and dedup checking. The remaining gap is outcome behavior on duplicate or conflicting entries, which the 'check first' advice only partially covers.

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

Parameters5/5

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

Schema description coverage is 0% and no enums are declared, so the description has to carry the semantics — and it does: it glosses every one of the 6 parameters with format ('YYYY-MM-DD'), optionality (icd10_code, severity), defaults (active, confirmed), and the full allowed value sets for clinical_status and verification_status. That is well beyond what the bare schema provides.

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 first clause states a specific verb and resource ('Add a diagnosis'), and the parenthetical adds scope ('stored immediately as approved, with manual provenance'). It names get_diagnoses as the read-side counterpart, so an agent can distinguish it from the other record_* siblings by resource alone. Slightly short of a 5 because the differentiation is implied by the noun rather than spelled out.

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?

It gives a concrete pre-flight workflow ('Check get_diagnoses first to avoid duplicates') and targeted value-selection advice ('use suspected or provisional for anything not confirmed by a doctor'). What is missing is any exclusion — e.g., when to prefer a pending/staged flow (approve_staged_source or list_pending_reviews exist as siblings) over writing an auto-approved record.

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