Skip to main content
Glama
the-momentum

FHIR MCP Server

by the-momentum

request_observation_resource

Execute CRUD operations on FHIR Observation resources. Use with get_loinc_code to ensure correct LOINC codes when retrieving observations.

Instructions

Makes an HTTP request to the FHIR server. Use this tool to perform CRUD operations only on the FHIR Observation resource.

IMPORTANT: Before fetching observations that require LOINC codes:

  1. First use get_loinc_code() tool to find appropriate LOINC codes

  2. Then use this tool to fetch the observation with the LOINC code

Rules: - When creating or updating an observation, use only the data explicitly provided by the user. - Do not guess, auto-fill, or assume any missing data. - When deleting an observation, ask the user for confirmation with details of the observation and wait for the user's confirmation. - Provide links to the app (not api) observation resource in the final response.

Args: method: HTTP method (GET, POST, PUT, DELETE) path: Resource path (e.g., "/Observation?subject:Patient.name=Homer%20Simpson") body: Optional JSON data for POST/PUT requests)

Returns: JSON response from the FHIR server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full transparency burden. It discloses key behaviors: it performs CRUD, requires user-provided data without guessing, mandates confirmation before deletion, and returns JSON. It also notes the need to provide app links rather than API links. This goes beyond a simple 'makes HTTP request' statement and gives the agent actionable behavioral context, though it omits auth and error-handling details.

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?

The description is longer than typical but well-structured with clear sections for the workflow, rules, args, and returns. It front-loads the core purpose and uses bullets for rules. Every section serves a purpose; however, the volume of text could be trimmed slightly without losing essential information, so it's not a perfect 5.

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?

Given that this is a generic HTTP tool for a specific resource, the description is complete: it covers the operation, the resource scope, preconditions (LOINC workflow), safety rules, parameter semantics, and return format. The output schema exists, so return values need not be detailed further. Sibling differentiation is adequate through the resource-specific wording.

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?

The schema has 0% description coverage for the top-level 'request' parameter, but the description's Args section explains each inner field with practical details: method enumerates HTTP verbs, path includes a concrete example with URL encoding, and body is described as optional JSON. This significantly adds meaning beyond the schema's terse descriptions and helps the agent construct valid requests.

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 clearly states the tool makes HTTP requests to the FHIR server and explicitly scopes it to 'CRUD operations only on the FHIR Observation resource.' This distinguishes it from sibling tools that handle other FHIR resources and from request_generic_resource. The verb 'request' combined with the resource name is specific and unambiguous.

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?

The description provides clear usage guidance: use this tool only for Observation resource operations, and includes a specific workflow ('First use get_loinc_code() tool... Then use this tool') for LOINC-dependent observations. It also gives explicit rules for creation, update, delete (requiring confirmation), and response formatting. While it doesn't name alternative tools for other resources, the resource-specific scope effectively implies when to use this tool vs siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/the-momentum/fhir-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server