Skip to main content
Glama
FHIR MCP Server

FHIR MCP Server

by wso2

get_capabilities

Retrieves metadata for a specified FHIR resource type, including supported search parameters and custom operations, so you can validate allowed actions before search, read, create, update, or delete.

Instructions

Retrieves metadata about a specified FHIR resource type, including its supported search parameters and custom operations. This tool MUST always be invoked before performing any resource operation (such as search, read, create, update, or delete) to discover the valid searchParams and operations permitted for that resource type. Do not use this tool to fetch actual resources.

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": {
      "type": "<type>"
    },
    "name": "get_capabilities"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesThe FHIR resource type name. Must exactly match one of the core or profile-defined resource types as per the FHIR specification.

Output Schema

NameRequiredDescriptionDefault
resultYesA dictionary containing: 'type': The requested resource type (if supported by the system) or empty. 'searchParam': A mapping of FHIR search parameter names to their descriptions. Each key is a parameter name (e.g., family, _id, _lastUpdated), and each value is a string describing the parameter's meaning and usage constraints. 'operation': A mapping of custom FHIR operation names to their descriptions. Each key is an operation name (e.g., $validate), and each value is a string explaining the operation's purpose and usage. 'interaction': A list of supported interactions for the resource type (e.g., read, search-type, create). 'searchInclude': A list of supported _include parameters for the resource type, indicating which related resources can be included. 'searchRevInclude': A list of supported _revinclude parameters for the resource type, indicating which reverse-included resources can be included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "description": "A dictionary containing: 'type': The requested resource type (if supported by the system) or empty. 'searchParam': A mapping of FHIR search parameter names to their descriptions. Each key is a parameter name (e.g., family, _id, _lastUpdated), and each value is a string describing the parameter's meaning and usage constraints. 'operation': A mapping of custom FHIR operation names to their descriptions. Each key is an operation name (e.g., $validate), and each value is a string explaining the operation's purpose and usage. 'interaction': A list of supported interactions for the resource type (e.g., read, search-type, create). 'searchInclude': A list of supported _include parameters for the resource type, indicating which related resources can be included. 'searchRevInclude': A list of supported _revinclude parameters for the resource type, indicating which reverse-included resources can be included.",
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "get_capabilitiesOutput",
      +  "type": "object"
      +}
  2. First observedv0.9.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden; it discloses the read-only metadata nature, the mandatory pre-step semantics, and that the output is not actual resources. It stops short of saying whether capabilities are cached or how expensive repeated calls are, which matters for a tool it mandates before every operation, so it is strong but not complete.

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?

Three sentences, front-loaded with the purpose, then the mandatory usage rule, then the exclusion. No sentence repeats structured data or wanders into implementation detail; each one governs how an agent should act.

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 one-parameter discovery tool with an output schema (so return values need no explanation) and no annotations, the description covers purpose, precondition, and exclusion adequately. The only real omission is behavioral context around repeat calls or caching, which is a minor gap rather than a blocker.

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 coverage is 100% and the single 'type' parameter is already documented in the schema with examples and an exact-match requirement. The description adds context about what the resulting searchParams and operations mean for that type, but nothing about the parameter's syntax or values beyond what the schema states, so the baseline of 3 is appropriate.

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 opens with a specific verb and resource: retrieves metadata about a specified FHIR resource type, including supported search parameters and custom operations. It also distinguishes its output from sibling tools (search, read, create, update, delete) by stating 'Do not use this tool to fetch actual resources,' so an agent can tell whether it needs metadata or data.

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 gives an explicit precondition ('MUST always be invoked before performing any resource operation (such as search, read, create, update, or delete)') and an explicit exclusion ('Do not use this tool to fetch actual resources'). The alternatives are named directly and the condition that selects them is unambiguous.

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

Deploy Server

Other Tools