Skip to main content
Glama

Search HPO Terms

search_terms
Read-onlyIdempotent

Search Human Phenotype Ontology terms by name, synonym, definition, HP ID, or external cross-reference to retrieve relevance-ranked HPO matches with pagination and optional obsolete-term inclusion.

Instructions

Full-text search over HPO phenotype term names, synonyms, and definitions (FTS, relevance-ranked); returns {hpo_id, name, score} -- compact adds a short definition_snippet; standard/full add the complete definition -- plus a pagination block {total, returned, limit, offset, truncated, next_offset}. When truncated, next_commands carries a forward-page step (offset advanced) and a widen step. Obsolete terms are excluded unless include_obsolete=true. Signature: search_terms(query, limit=, offset=, include_obsolete=, response_mode=).

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_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax hits (default 25).
queryYesA phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:263681008, ...).
offsetNoRows to skip for forward paging (default 0).
response_modeNoVerbosity: minimal|compact|standard|full (default compact).compact
include_obsoleteNoInclude obsolete terms (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "_meta": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "allowed_values": {
      -      "type": "array"
      -    },
      -    "candidates": {
      -      "type": "array"
      -    },
      -    "error_code": {
      -      "type": "string"
      -    },
      -    "field": {
      -      "type": "string"
      -    },
      -    "hint": {
      -      "type": "string"
      -    },
      -    "hpo_version": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "include_obsolete": {
      -      "type": "boolean"
      -    },
      -    "limit": {
      -      "type": "integer"
      -    },
      -    "message": {
      -      "type": "string"
      -    },
      -    "next_offset": {
      -      "type": "integer"
      -    },
      -    "offset": {
      -      "type": "integer"
      -    },
      -    "query": {
      -      "type": "string"
      -    },
      -    "recovery_action": {
      -      "type": "string"
      -    },
      -    "results": {
      -      "items": {
      -        "additionalProperties": true,
      -        "properties": {
      -          "definition": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "kind": {
      -                    "const": "untrusted_text"
      -                  },
      -                  "provenance": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "record_id": {
      -                        "type": "string"
      -                      },
      -                      "retrieved_at": {
      -                        "type": "string"
      -                      },
      -                      "source": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "raw_sha256": {
      -                    "type": "string"
      -                  },
      -                  "text": {
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "definition_snippet": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "untrusted_text"
      -              },
      -              "provenance": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "record_id": {
      -                    "type": "string"
      -                  },
      -                  "retrieved_at": {
      -                    "type": "string"
      -                  },
      -                  "source": {
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "raw_sha256": {
      -                "type": "string"
      -              },
      -              "text": {
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "hpo_id": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "score": {
      -            "type": "number"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "retryable": {
      -      "type": "boolean"
      -    },
      -    "returned": {
      -      "type": "integer"
      -    },
      -    "success": {
      -      "type": "boolean"
      -    },
      -    "total": {
      -      "type": "integer"
      -    },
      -    "truncated": {
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed5 schema fields changedv0.3.0
    • addedOutput schema / properties / results / items / properties / definition / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "untrusted_text"
      +      },
      +      "provenance": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "record_id": {
      +            "type": "string"
      +          },
      +          "retrieved_at": {
      +            "type": "string"
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "raw_sha256": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / results / items / properties / definition / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / results / items / properties / definition_snippet / additionalProperties
      Added value: +false
    • addedOutput schema / properties / results / items / properties / definition_snippet / properties
      Added value: +{
      +  "kind": {
      +    "const": "untrusted_text"
      +  },
      +  "provenance": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "record_id": {
      +        "type": "string"
      +      },
      +      "retrieved_at": {
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "raw_sha256": {
      +    "type": "string"
      +  },
      +  "text": {
      +    "type": "string"
      +  }
      +}
    • changedOutput schema / properties / results / items / properties / definition_snippet / type
      Previous value: -"string"New value: +"object"
  3. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / query / description
      Previous value: -"A phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:193046000, ...)."New value: +"A phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:263681008, ...)."
  4. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world hints, yet the description adds real behavior: relevance ranking, default exclusion of obsolete terms, truncation signaling, and a next_commands field that offers both a forward-page and a widen step. That is substantive context beyond the structured hints, though it does not discuss query syntax or matching fallbacks.

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 the search surface and return shape, then truncation behavior, then the obsolete caveat — a logical order with little wasted text. The trailing Signature line and the pagination-block field enumeration are somewhat redundant with the schema, but the density is acceptable for a tool with five call-relevant behaviors.

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?

There is no output schema, so the description must carry return-value information — and it does, naming {hpo_id, name, score}, the response_mode-dependent definition fields, and the full pagination block including truncated and next_offset. An agent can construct a correct call and interpret the response without opening any other source.

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 all five parameters are already documented, which sets the baseline at 3. The description does add meaning beyond the schema for response_mode (compact appends a definition_snippet, standard/full append the full definition) and restates the include_obsolete default, but limit and offset semantics are left entirely to the schema.

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: full-text search over HPO phenotype term names, synonyms, and definitions, relevance-ranked. This clearly separates it from exact-lookup siblings like get_term or resolve_term, though no sibling is named explicitly to force the distinction.

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?

Useful context is present — obsolete terms are excluded unless include_obsolete=true, and the tool is framed as full-text search rather than ID lookup — but there is no explicit statement of when to prefer it over resolve_term or resolve_terms_batch. Guidance is implied rather than stated.

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