Skip to main content
Glama

Get Diseases for Gene

get_diseases_for_gene
Read-onlyIdempotent

Retrieve diseases associated with a human gene using a gene symbol or NCBI gene ID, with paging and response detail options for targeted HPO disease lookup.

Instructions

Return diseases associated with a gene (symbol or NCBI id). Signature: get_diseases_for_gene(gene, limit=, offset=, 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": {
      "gene": "<gene>"
    },
    "name": "get_diseases_for_gene"
  }
}

Input Schema

NameRequiredDescriptionDefault
geneYesA gene symbol (e.g. 'PAX6') or NCBI gene CURIE (e.g. 'NCBIGene:5080'). Bare NCBI numeric ids (e.g. '5080') are also accepted. Ensembl gene (ENSG...), RefSeq and HGNC ids are rejected: translate them with hgnc_resolve_symbol first. Transcript ids (ENST...) are not gene ids.
limitNoMax diseases to return (default 25).
offsetNoRows to skip for forward paging (default 0).
response_modeNoVerbosity: minimal|compact|standard|full (default compact).compact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • changedInput schema / properties / gene / description
      Previous value: -"A gene symbol (e.g. 'PAX6') or NCBI gene CURIE (e.g. 'NCBIGene:5080'). Bare NCBI numeric ids (e.g. '5080') are also accepted."New value: +"A gene symbol (e.g. 'PAX6') or NCBI gene CURIE (e.g. 'NCBIGene:5080'). Bare NCBI numeric ids (e.g. '5080') are also accepted. Ensembl gene (ENSG...), RefSeq and HGNC ids are rejected: translate them with hgnc_resolve_symbol first. Transcript ids (ENST...) are not gene ids."
  2. 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"
      -      ]
      -    },
      -    "limit": {
      -      "type": "integer"
      -    },
      -    "message": {
      -      "type": "string"
      -    },
      -    "next_offset": {
      -      "type": "integer"
      -    },
      -    "offset": {
      -      "type": "integer"
      -    },
      -    "recommended_citation": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "recovery_action": {
      -      "type": "string"
      -    },
      -    "retryable": {
      -      "type": "boolean"
      -    },
      -    "returned": {
      -      "type": "integer"
      -    },
      -    "success": {
      -      "type": "boolean"
      -    },
      -    "total": {
      -      "type": "integer"
      -    },
      -    "truncated": {
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered elsewhere. The description adds nothing beyond that: no result ordering, no behavior when the gene is unknown, no pagination semantics despite limit/offset, and no note on the shape of returned disease objects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is tight and front-loaded, but the second sentence is a signature restatement that duplicates information already in the input schema, so it does not fully earn its place. Length is fine; efficiency is slightly wasted on redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should say at least something about what a 'disease' result contains (ids, labels, paging envelope). It says nothing, and the gene-id resolution caveat sits only in the schema, leaving the definition thin for a tool whose return value is otherwise undocumented.

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 the baseline is 3, and the description only restates the signature (gene, limit=, offset=, response_mode=) without adding format or behavioral meaning. All real parameter semantics (allowed id forms, defaults, maximum of 200, verbosity enum) come from 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?

The description gives a specific verb and resource: 'Return diseases associated with a gene,' and clarifies that the input can be a symbol or NCBI id. The tool name plus resource makes it readily distinguishable from get_phenotypes_for_gene and get_genes_for_disease, though the description itself never names or contrasts those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance in the description, and no mention of alternatives or prerequisites. The useful routing hint about rejecting Ensembl/RefSeq/HGNC ids and translating with hgnc_resolve_symbol lives in the schema, not the description.

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