Skip to main content
Glama
OMOPHub MCP Server

OMOPHub MCP Server

Official
by OMOPHub

Resolve a FHIR coding

fhir_resolve
Read-only

Resolve FHIR system/code pairs or display text via semantic fallback to OMOP standard concepts and CDM target tables for clinical data mapping.

Instructions

Resolve one FHIR Coding with separate system and code fields to its OMOP standard concept and CDM target table. Supports text-only input via semantic search fallback and optional Phoebe recommendations. Examples: system='http://snomed.info/sct' code='44054006' for Type 2 diabetes, or display='heart attack' for text-only resolution.

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": "fhir_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoLiteral Coding.code string, preserving leading zeros and punctuation. Put the system URI in the separate system field.
systemNoFHIR code system URI (e.g. http://snomed.info/sct, http://loinc.org)
displayNoDisplay text for semantic search fallback when code is unavailable
on_unmappedNoBehavior when nothing resolves: 'error' (default, 404) or 'sentinel' (return a concept_id 0 record)
resource_typeNoFHIR resource type (Condition, Observation, MedicationRequest, Procedure, etc.)
vocabulary_idNoDirect OMOP vocabulary_id (e.g. SNOMED, ICD10CM), bypasses URI resolution
include_qualityNoInclude mapping quality signal (high/medium/low/manual_review)
include_recommendationsNoInclude Phoebe-recommended related concepts

Output Schema

NameRequiredDescriptionDefault
dataNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv1.7.0
    • changedInput schema / properties / code / description
      Previous value: -"Code value from the FHIR Coding"New value: +"Literal Coding.code string, preserving leading zeros and punctuation. Put the system URI in the separate system field."
    • addedInput schema / properties / code / maxLength
      Added value: +500
    • addedInput schema / properties / display / maxLength
      Added value: +500
    • addedInput schema / properties / include_quality / anyOf
      Added value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "enum": [
      +          "true",
      +          "false"
      +        ],
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  {
      +    "const": "null",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / include_quality / default
      Removed value: -false
    • removedInput schema / properties / include_quality / type
      Removed value: -"boolean"
    • addedInput schema / properties / include_recommendations / anyOf
      Added value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "enum": [
      +          "true",
      +          "false"
      +        ],
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  {
      +    "const": "null",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / include_recommendations / default
      Removed value: -false
    • removedInput schema / properties / include_recommendations / type
      Removed value: -"boolean"
    • addedInput schema / properties / on_unmapped / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "error",
      +      "sentinel"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "const": "null",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / on_unmapped / enum
      Removed value: -[
      -  "error",
      -  "sentinel"
      -]
    • removedInput schema / properties / on_unmapped / type
      Removed value: -"string"
    • addedInput schema / properties / resource_type / maxLength
      Added value: +500
    • addedInput schema / properties / system / maxLength
      Added value: +500
    • addedInput schema / properties / vocabulary_id / maxLength
      Added value: +500
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "data": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly and non-destructive, so the safety profile is covered; the description still adds real behavior — a semantic-search fallback path when code is missing, optional mapping-quality signals and Phoebe recommendations, and a choice of error vs. concept_id 0 sentinel on unmapped results. It does not describe precedence between vocabulary_id and the system URI, or what happens if no input at all is supplied, which keeps it below a 5.

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?

Three tight sentences with the outcome statement front-loaded and examples last. The only waste is the 'separate system and code fields' phrasing, which duplicates the schema description of the code parameter.

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?

With an output schema present, return values need no prose, and the description covers the two real calling modes (coded and text-only) plus the unmapped-result policy. For an 8-parameter, all-optional tool with rich schema and annotations, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so the schema already documents every parameter, including the on_unmapped enum and the vocabulary_id bypass. The description adds only concrete example values (a SNOMED URI plus code, and a free-text display), which is marginally useful but largely restates the schema's field-separation rule.

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?

States a specific verb and resource ('Resolve one FHIR Coding ... to its OMOP standard concept and CDM target table') and implicitly scopes itself to a single Coding with separate system/code fields, which distinguishes it from the CodeableConcept sibling. The two worked examples make the input shape unambiguous.

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?

Gives useful in-tool context: text-only input is supported through a semantic-search fallback via display. However, it never states when to choose this tool over fhir_resolve_codeable_concept, search_concepts, get_concept_by_code, or semantic_search, so the agent must infer routing from names alone.

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