Skip to main content
Glama
FHIR MCP Server

FHIR MCP Server

by wso2

get_user

Retrieve the authenticated user's FHIR profile to access demographic and contact details. Use it when a workflow needs current-user identity information.

Instructions

Retrieves the authenticated user's FHIR profile. Use this tool when you need to access the current user's demographic and contact details.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_user"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYesA dictionary containing the authenticated user's demographic information such as 'id', 'name', and 'birthDate'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "additionalProperties": true,
      +          "type": "object"
      +        }
      +      ],
      +      "description": "A dictionary containing the authenticated user's demographic information such as 'id', 'name', and 'birthDate'.",
      +      "title": "Result"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "get_userOutput",
      +  "type": "object"
      +}
  2. First observedv0.9.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It does signal that this is a scoped, self-only read ('the authenticated user's'), which is useful beyond the empty schema. However it never mentions what happens when unauthenticated or whether the profile read requires specific scopes/permissions.

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?

Two short sentences with zero waste: purpose first, usage second. Every sentence earns its place and the key scoping word 'authenticated' is front-loaded.

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 zero-parameter read with an output schema covering return values, the description says enough to invoke it correctly. The only gap is failure behavior for an unauthenticated session, which is minor given the tool's simplicity.

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

Parameters4/5

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

The tool takes zero parameters, so there are no parameter semantics to explain and the baseline is 4. The description correctly implies no user identifier is accepted, reinforcing the self-only scope.

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?

States a specific verb and resource: retrieves the authenticated user's FHIR profile. That is far more precise than the name 'get_user' alone and clearly distinguishes it from get_capabilities or the generic read/search siblings. It stops short of explicitly naming a sibling it is not, so a 5 is not warranted.

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 second sentence gives a clear triggering condition: use when you need the current user's demographic and contact details. There are no exclusions or named alternatives, and it does not warn against using it to look up other users, which is the main confusion risk given the generic 'get_user' name.

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