Skip to main content
Glama
OMOPHub MCP Server

OMOPHub MCP Server

Official
by OMOPHub

Explore a concept

explore_concept
Read-only

Retrieve a medical concept's details, ancestor/descendant hierarchy, and cross-vocabulary mappings in one call to understand its meaning and coding relationships.

Instructions

Get a comprehensive view of a medical concept in one call: detailed info, ancestors/descendants hierarchy, and cross-vocabulary mappings. Use this instead of calling get_concept + get_hierarchy + map_concept separately. Ideal for understanding what a concept is, where it sits in the classification tree, and how it maps to other coding systems.

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": {
      "concept_id": "<concept_id>"
    },
    "name": "explore_concept"
  }
}

Input Schema

NameRequiredDescriptionDefault
concept_idYesThe OMOP concept_id to explore
hierarchy_levelsNoHow many hierarchy levels to fetch (1-5, default 2)
include_mappingsNoInclude cross-vocabulary mappings. Default true.
include_hierarchyNoInclude ancestors and descendants. Default true.
mappings_page_sizeNoMaximum mappings to fetch (1-200, default 100). This is an overview tool — for a complete code list use map_concept and page through it.
target_vocabulariesNoComma-separated vocabulary IDs to filter mappings. Examples: 'ICD10CM', 'SNOMED'.

Output Schema

NameRequiredDescriptionDefault
conceptYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "concept": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "concept_id": {
      +          "type": "number"
      +        },
      +        "concept_name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "concept_id",
      +        "concept_name"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "concept"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / mappings_page_size
      Added value: +{
      +  "default": 100,
      +  "description": "Maximum mappings to fetch (1-200, default 100). This is an overview tool — for a complete code list use map_concept and page through it.",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "number"
      +}
  3. First observedv1.5.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile needs no restating. The description adds real value by disclosing that this is an aggregating, overview-level call bundling three retrieval behaviors into one request. It stops short of warning that mapping results are capped/truncated by default — that caveat lives only in the parameter text — so it is not a full behavioral picture.

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 sentences, front-loaded with the aggregation value proposition before the alternative-tool routing. Every clause earns its place: what you get, what it replaces, and when it is ideal.

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?

Output schema exists, annotations cover the safety profile, and all six parameters are documented in the schema, so the definition is nearly self-sufficient for a 6-parameter read tool. The one gap is that the overview-vs-complete-results tradeoff (capped mappings) is only implicit in the description, requiring the agent to read parameter text to discover truncation risk.

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%, including defaults, ranges and examples for hierarchy_levels, include_hierarchy, include_mappings, mappings_page_size and target_vocabularies, so the baseline is 3. The description only alludes to the existence of hierarchy and mapping components; it adds no semantics about depth, filtering, or paging beyond what the schema already supplies.

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 ("Get a comprehensive view of a medical concept") and enumerates the three payloads returned: detailed info, ancestors/descendants hierarchy, and cross-vocabulary mappings. It explicitly distinguishes itself from the siblings get_concept, get_hierarchy and map_concept, so an agent can route correctly without opening any schema.

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?

Gives an explicit substitution rule: use this instead of calling get_concept + get_hierarchy + map_concept separately, plus concrete use cases (understand what a concept is, its tree position, its cross-vocabulary mappings). The complementary when-not guidance (use map_concept and page for a complete code list) also appears in the mappings_page_size parameter.

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