Skip to main content
Glama

Search Mammalian Phenotype Terms

search_phenotype_terms
Read-onlyIdempotent

Search Mammalian Phenotype (MP) terms by free text to resolve phenotype descriptions to MP IDs for marker and term lookup.

Instructions

Free-text search over Mammalian Phenotype (MP) term names and definitions (FTS, relevance-ranked); returns {mp_id, name, definition, score} plus a truncation contract {total, returned, limit, truncated} (widen step in next_commands when truncated). Use this to resolve a phenotype description to an MP id, then find_markers_by_phenotype or get_mp_term. Signature: search_phenotype_terms(query, limit=).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax hits (default 25).
queryYesFree-text phenotype query (e.g. 'small kidney').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "small kidney",
      +  "seizures",
      +  "hydronephrosis"
      +]
    • 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"
      -    },
      -    "limit": {
      -      "type": "integer"
      -    },
      -    "message": {
      -      "type": "string"
      -    },
      -    "query": {
      -      "type": "string"
      -    },
      -    "recovery_action": {
      -      "type": "string"
      -    },
      -    "results": {
      -      "type": "array"
      -    },
      -    "retryable": {
      -      "type": "boolean"
      -    },
      -    "returned": {
      -      "type": "integer"
      -    },
      -    "success": {
      -      "type": "boolean"
      -    },
      -    "total": {
      -      "type": "integer"
      -    },
      -    "truncated": {
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive; the description goes further and discloses ranking behavior (relevance-ranked FTS), the returned fields, and a truncation contract with an explicit widening step when truncated. That is exactly the kind of behavior structured fields cannot express.

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?

Dense and front-loaded: purpose, return shape, truncation contract, and routing come in the right order with no filler. The trailing signature line duplicates the schema and is the one part that does not fully earn its place.

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, and the description compensates by naming the returned fields and the truncation envelope. Combined with the routing guidance and the single required parameter, an agent has everything needed to call it and interpret the result.

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 the baseline is 3, but the description adds meaningful query semantics: the free text matches both term names and definitions, and it clarifies when to raise limit (truncation). Only the terse 'Signature: search_phenotype_terms(query, limit=)' line is pure restatement.

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+resource: free-text (FTS, relevance-ranked) search over Mammalian Phenotype term names and definitions. It also names the downstream tools (find_markers_by_phenotype, get_mp_term), so an agent can distinguish it from sibling lookups without opening a 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?

Explicitly says to use it to resolve a phenotype description to an MP id and then route to find_markers_by_phenotype or get_mp_term, which is real workflow guidance. It stops short of saying when NOT to use it (e.g., versus search_markers for token-based marker search), so it is clear context without exclusions.

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