Skip to main content
Glama
OMOPHub MCP Server

OMOPHub MCP Server

Official
by OMOPHub

Search terminology by name

search_concepts
Read-only

Search medical vocabularies like SNOMED, ICD-10, and RxNorm by term or synonym, and get a verified concept ID and vocabulary release when a single match is found.

Instructions

Search a vocabulary by term or synonym. When the user asks to look up the matching concept or report its vocabulary release, set verify_match to true. A unique match then gets a second API read by its numeric ID. Multiple matches are returned for selection.

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": {
      "query": "<query>"
    },
    "name": "search_concepts"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based, default 1)
queryYesThe medical term or concept name to search for
page_sizeNoNumber of results to return (1-200, default 10)
domain_idsNoComma-separated domain IDs to filter by. Examples: 'Condition', 'Drug', 'Measurement', 'Procedure'. Leave empty for all domains.
verify_matchNoSet true for a verified concept ID, vocabulary code and release. Uses one extra API read only for a unique match.
vocabulary_idsNoUse only the requested vocabulary IDs. For a SNOMED search use 'SNOMED'. Separate multiple requested IDs with a comma. Omit to search all vocabularies.
standard_conceptNoFilter by standard concept status: 'S' for Standard, 'C' for Classification. Omit to search all.

Output Schema

NameRequiredDescriptionDefault
pageYes
totalYes
resultsYes
verified_conceptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv1.7.0
    • addedInput schema / properties / page / anyOf
      Added value: +[
      +  {
      +    "minimum": 1,
      +    "type": "number"
      +  },
      +  {
      +    "pattern": "^[0-9]{1,16}$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / page / default
      Removed value: -1
    • removedInput schema / properties / page / minimum
      Removed value: -1
    • removedInput schema / properties / page / type
      Removed value: -"number"
    • addedInput schema / properties / page_size / anyOf
      Added value: +[
      +  {
      +    "maximum": 200,
      +    "minimum": 1,
      +    "type": "number"
      +  },
      +  {
      +    "pattern": "^[0-9]{1,16}$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / page_size / default
      Removed value: -10
    • removedInput schema / properties / page_size / maximum
      Removed value: -200
    • removedInput schema / properties / page_size / minimum
      Removed value: -1
    • removedInput schema / properties / page_size / type
      Removed value: -"number"
    • addedInput schema / properties / verify_match
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "enum": [
      +        "true",
      +        "false"
      +      ],
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Set true for a verified concept ID, vocabulary code and release. Uses one extra API read only for a unique match."
      +}
    • changedInput schema / properties / vocabulary_ids / description
      Previous value: -"Comma-separated vocabulary IDs to filter by. Examples: 'SNOMED', 'ICD10CM', 'RxNorm', 'LOINC'. Leave empty to search all vocabularies."New value: +"Use only the requested vocabulary IDs. For a SNOMED search use 'SNOMED'. Separate multiple requested IDs with a comma. Omit to search all vocabularies."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "page": {
      +      "type": "number"
      +    },
      +    "results": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "concept_id": {
      +            "type": "number"
      +          },
      +          "concept_name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "concept_id",
      +          "concept_name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "type": "number"
      +    },
      +    "verified_concept": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "concept_code": {
      +          "type": "string"
      +        },
      +        "concept_id": {
      +          "type": "number"
      +        },
      +        "concept_name": {
      +          "type": "string"
      +        },
      +        "vocab_release": {
      +          "type": "string"
      +        },
      +        "vocabulary_id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "concept_id",
      +        "concept_name",
      +        "vocabulary_id",
      +        "concept_code"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "results",
      +    "page",
      +    "total"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / page_size / description
      Previous value: -"Number of results to return (1-50, default 10)"New value: +"Number of results to return (1-200, default 10)"
    • changedInput schema / properties / page_size / maximum
      Previous value: -50New value: +200
  3. First observedv1.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish this as a safe, non-destructive read, so the bar is lower. The description adds genuine behavioral context beyond them: verify_match costs a second API read and only fires on a unique match, and multiple matches come back for the caller to select from.

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 short sentences, front-loaded with the core action and then the verify_match behavior and the result branching. Little waste, though the verify_match sentence overlaps with schema text and could have spent that space distinguishing the tool from siblings instead.

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?

An output schema exists, so return values need no explanation, and the definition covers the non-obvious branch (unique match triggers an extra read; multiple matches require selection). What remains thin is routing guidance relative to the other search and lookup tools.

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%, so pagination, domain, vocabulary, and standard-concept parameters are already fully documented. The description's only parameter insight concerns verify_match, and its wording ('verified concept ID, vocabulary code and release', 'one extra API read only for a unique match') largely restates the schema's own description, so baseline 3 applies.

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 concrete verb and resource plus the search key: 'Search a vocabulary by term or synonym.' This is a clear concept-name lookup, but it does not explicitly distinguish itself from sibling alternatives such as semantic_search, find_similar_concepts, or get_concept_by_code, leaving the agent to infer the boundary.

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?

The description gives one concrete usage cue: 'When the user asks to look up the matching concept or report its vocabulary release, set verify_match to true.' That is useful conditional guidance, but it addresses only a parameter decision, not when to choose this tool over the nearby search/lookup siblings.

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