Skip to main content
Glama
orphanet-link
by berntpopp

Get Disease

get_disease
Read-onlyIdempotent

Retrieve an Orphanet disease record by ORPHAcode, label, synonym, or xref, including definition, cross-references, classification, onset, inheritance, and type. Use batch lookup for multiple terms.

Instructions

Return an Orphanet disease record: definition, synonyms, grouped cross-references, classification parents/children, age of onset, inheritance, and disorder type. For 2 or more terms, call get_disease_batch once instead of calling this tool per item. The term accepts an ORPHAcode, a label/synonym, or an external xref CURIE (resolved first; a bare number is read as an ORPHAcode, so prefix an OMIM number: OMIM:163950). xrefs are grouped by source; any nested count is leaf rows, not groups. Pass fields=['xrefs.OMIM', ...] for a sparse projection, or include=['genes','phenotypes','prevalence','disability'] to compose a full entity in ONE call. Signature: get_disease(term, response_mode=, fields=, include=).

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": {
      "term": "<term>"
    },
    "name": "get_disease"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYesAn ORPHAcode (ORPHA:33069 or 33069), a disease label/synonym, or an external xref CURIE that resolves to a single Orphanet term.
fieldsNoSparse fieldset: return ONLY these top-level keys (dot into a grouped object, e.g. 'xrefs.OMIM'). Identity anchors (orpha_code, name, orphanet_version) are always included. Omit for the full payload.
includeNoCompose extra association sections into the single record (any of: genes, phenotypes, prevalence, disability) so a full entity needs one call instead of a per-section fan-out. Omit for the base record only.
response_modeNoVerbosity: minimal|compact|standard|full (default compact).compact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.4.0
    • changedInput schema / properties / include / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "enum": [
      +        "genes",
      +        "phenotypes",
      +        "prevalence",
      +        "disability"
      +      ],
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / term / description
      Previous value: -"An ORPHAcode (ORPHA:166024 or 166024), a disease label/synonym, or an external xref CURIE that resolves to a single Orphanet term."New value: +"An ORPHAcode (ORPHA:33069 or 33069), a disease label/synonym, or an external xref CURIE that resolves to a single Orphanet term."
    • changedInput schema / properties / term / examples
      Previous value: -[
      -  "ORPHA:166024",
      -  "Aicardi syndrome",
      -  "OMIM:607131"
      -]New value: +[
      +  "ORPHA:33069",
      +  "ORPHA:166024",
      +  "Dravet syndrome",
      +  "OMIM:607131"
      +]
    • addedInput schema / properties / term / maxLength
      Added value: +256
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "_meta": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "allowed_values": {
      -      "type": "array"
      -    },
      -    "candidates": {
      -      "type": "array"
      -    },
      -    "children": {
      -      "type": "array"
      -    },
      -    "definition": {
      -      "additionalProperties": true,
      -      "properties": {
      -        "kind": {
      -          "const": "untrusted_text",
      -          "type": "string"
      -        },
      -        "provenance": {
      -          "additionalProperties": true,
      -          "properties": {
      -            "record_id": {
      -              "type": "string"
      -            },
      -            "retrieved_at": {
      -              "type": "string"
      -            },
      -            "source": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "raw_sha256": {
      -          "type": "string"
      -        },
      -        "text": {
      -          "type": "string"
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "disability": {
      -      "type": "array"
      -    },
      -    "error_code": {
      -      "type": "string"
      -    },
      -    "field": {
      -      "type": "string"
      -    },
      -    "genes": {
      -      "type": "array"
      -    },
      -    "hint": {
      -      "type": "string"
      -    },
      -    "match_type": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "message": {
      -      "type": "string"
      -    },
      -    "name": {
      -      "type": "string"
      -    },
      -    "obsolete": {
      -      "type": "boolean"
      -    },
      -    "orpha_code": {
      -      "type": "string"
      -    },
      -    "orphanet_version": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "parents": {
      -      "type": "array"
      -    },
      -    "phenotypes": {
      -      "type": "array"
      -    },
      -    "prevalence": {
      -      "type": "array"
      -    },
      -    "recovery_action": {
      -      "type": "string"
      -    },
      -    "retryable": {
      -      "type": "boolean"
      -    },
      -    "subsets": {
      -      "type": "array"
      -    },
      -    "success": {
      -      "type": "boolean"
      -    },
      -    "synonyms": {
      -      "type": "array"
      -    },
      -    "top_groupings": {
      -      "type": "array"
      -    },
      -    "xrefs": {
      -      "additionalProperties": {
      -        "items": {
      -          "additionalProperties": true,
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "object_id": {
      -              "type": "string"
      -            },
      -            "origin": {
      -              "type": "string"
      -            },
      -            "predicate": {
      -              "type": "string"
      -            },
      -            "predicates": {
      -              "type": "array"
      -            },
      -            "source": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed3 schema fields changedv0.3.0
    • addedOutput schema / properties / definition / additionalProperties
      Added value: +true
    • addedOutput schema / properties / definition / properties
      Added value: +{
      +  "kind": {
      +    "const": "untrusted_text",
      +    "type": "string"
      +  },
      +  "provenance": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "record_id": {
      +        "type": "string"
      +      },
      +      "retrieved_at": {
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "raw_sha256": {
      +    "type": "string"
      +  },
      +  "text": {
      +    "type": "string"
      +  }
      +}
    • changedOutput schema / properties / definition / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +[
      +  "object",
      +  "null"
      +]
  3. Changed5 schema fields changedv0.1.4
    • addedInput schema / properties / include
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Compose extra association sections into the single record (any of: genes, phenotypes, prevalence, disability) so a full entity needs one call instead of a per-section fan-out. Omit for the base record only.",
      +  "examples": [
      +    [
      +      "genes",
      +      "phenotypes",
      +      "prevalence"
      +    ],
      +    [
      +      "genes"
      +    ]
      +  ]
      +}
    • addedOutput schema / properties / disability
      Added value: +{
      +  "type": "array"
      +}
    • addedOutput schema / properties / genes
      Added value: +{
      +  "type": "array"
      +}
    • addedOutput schema / properties / phenotypes
      Added value: +{
      +  "type": "array"
      +}
    • addedOutput schema / properties / prevalence
      Added value: +{
      +  "type": "array"
      +}
  4. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the description's real contribution is resolution behavior: xref CURIEs resolve first, a bare number is read as an ORPHAcode so OMIM numbers must be prefixed, and nested xref counts are leaf rows not groups. That is exactly the kind of non-obvious behavior an agent would otherwise get wrong; only error/not-found handling is left unstated.

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 what is returned, then constraints, then projection vs composition, then the numeric pitfall — a sensible order with every sentence carrying information. The trailing 'Signature:' line is redundant with the input schema and is the only genuinely wasted text.

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 enumerating the record's sections and the optional composed sections. Combined with the batching alternative, the projection/composition guidance, and the term-resolution rules, an agent has everything needed to call it correctly on the first try.

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; the description earns an extra point by adding resolution precedence and the 'bare number is an ORPHAcode' pitfall that the term schema description does not state. It also restates the fields/include semantics in operational terms (one call instead of a fan-out), though much of that overlaps the schema wording.

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 and resource and then enumerates the returned content (definition, synonyms, grouped xrefs, classification parents/children, age of onset, inheritance, disorder type), so an agent knows exactly what it gets. It also distinguishes itself from the per-section siblings by explaining that include= composes genes/phenotypes/prevalence/disability into one record.

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

Usage Guidelines5/5

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

Explicit routing rule: 'For 2 or more terms, call get_disease_batch once instead of calling this tool per item' names the alternative and the condition that selects it. It further explains when to use fields= (sparse projection) versus include= (full entity in one call), which steers the agent away from fanning out to get_disease_genes/phenotypes/prevalence.

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