Skip to main content
Glama
OMOPHub MCP Server

OMOPHub MCP Server

Official
by OMOPHub

Find similar concepts

find_similar_concepts
Read-only

Find similar medical concepts from an OMOP concept ID, name, or natural-language query using semantic, lexical, or hybrid matching to explore related codes and build concept sets.

Instructions

Find medical concepts similar to a reference concept, name, or natural language query. Supports three algorithms: 'semantic' (neural embeddings — best for meaning, and the default), 'lexical' (text matching — best for typos), 'hybrid' (combined). Provide exactly ONE of: concept_id, concept_name, or query. Use this to explore related concepts, find alternative codes, or build phenotype concept sets. Tip: For drug vocabularies like RxNorm, use drug class names ('ACE inhibitors', 'beta blockers', 'antihypertensives') rather than symptom descriptions ('medications for high blood pressure') — the embedding model aligns better with clinical terminology than lay language.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage of results (1-based, default 1)
queryNoFind concepts matching this natural language description
algorithmNoSimilarity algorithm: 'semantic' (meaning), 'lexical' (text), 'hybrid' (both). Default 'semantic', matching the API.semantic
page_sizeNoNumber of results (1-1000, default 20)
concept_idNoFind concepts similar to this OMOP concept ID
domain_idsNoComma-separated domain IDs to filter results. Examples: 'Condition', 'Drug'.
concept_nameNoFind concepts similar to this concept name
vocabulary_idsNoComma-separated vocabulary IDs to filter results. Examples: 'SNOMED', 'ICD10CM'.
concept_class_idsNoComma-separated concept class IDs to filter results. Examples: 'Clinical Finding', 'Ingredient'.
include_explanationsNoInclude a short explanation of why each concept matched. Default false.
similarity_thresholdNoMinimum similarity score (0.0-1.0). Default 0.7.

Output Schema

NameRequiredDescriptionDefault
similar_conceptsYes

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": {
      +    "similar_concepts": {
      +      "items": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "similar_concepts"
      +  ],
      +  "type": "object"
      +}
  2. Changed5 schema fields changedv1.6.3
    • changedInput schema / properties / algorithm / default
      Previous value: -"hybrid"New value: +"semantic"
    • changedInput schema / properties / algorithm / description
      Previous value: -"Similarity algorithm: 'semantic' (meaning), 'lexical' (text), 'hybrid' (both). Default 'hybrid'."New value: +"Similarity algorithm: 'semantic' (meaning), 'lexical' (text), 'hybrid' (both). Default 'semantic', matching the API."
    • addedInput schema / properties / concept_class_ids
      Added value: +{
      +  "description": "Comma-separated concept class IDs to filter results. Examples: 'Clinical Finding', 'Ingredient'.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / include_explanations
      Added value: +{
      +  "default": false,
      +  "description": "Include a short explanation of why each concept matched. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "Page of results (1-based, default 1)",
      +  "minimum": 1,
      +  "type": "number"
      +}
  3. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / page_size / description
      Previous value: -"Number of results (1-100, default 20)"New value: +"Number of results (1-1000, default 20)"
    • changedInput schema / properties / page_size / maximum
      Previous value: -100New value: +1000
  4. First observedv1.5.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/no-destructive/closed-world, and the description adds real behavior beyond that: what each algorithm optimizes for, that 'semantic' is the default, the mutually-exclusive input rule, and a non-obvious quality tip about preferring clinical drug-class phrasing over lay language for embeddings. It does not discuss result ordering or how similarity_threshold interacts with the chosen algorithm, 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?

Front-loaded with purpose and algorithm choice, then constraints, then the tip — a sensible order. The closing RxNorm tip is long and slightly over-explained, but it carries actionable, non-obvious information rather than filler.

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 an 11-parameter tool with an output schema and annotations, the description covers the high-risk ambiguity (which input to supply, which algorithm) and leaves pagination/threshold details to the schema. Minor gaps remain around how filters and similarity_threshold combine, but nothing essential to calling it correctly is missing.

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?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: the exactly-one-of constraint across the three reference inputs (the schema encodes no oneOf) and the practical characterization of the algorithm choices ('best for meaning', 'best for typos'), plus vocabulary-level advice for the query parameter.

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 opens with a specific verb+resource ('Find medical concepts similar to...') and enumerates the three accepted reference inputs (concept_id, concept_name, query). It also names the three algorithms with their semantics, so an agent can distinguish this similarity-search tool from plain concept lookup or hierarchy tools without opening the schema.

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?

It gives concrete use cases ('explore related concepts, find alternative codes, or build phenotype concept sets') and a hard constraint ('Provide exactly ONE of: concept_id, concept_name, or query'), plus guidance on selecting an algorithm. It stops short of naming a sibling (e.g., search_concepts or semantic_search) and saying when NOT to use this tool.

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