Skip to main content
Glama

Consultar Código CID-10

cid10_lookup
Read-onlyIdempotent

Resolve CID-10 codes to their official Portuguese descriptions. Verify whether a 3- or 4-character category exists and retrieve gender or cause-of-death restriction flags.

Instructions

Look up a specific CID-10 code and return its Portuguese name.

Use this tool to:

  • Resolve a code to its Brazilian description ("I21" → "Infarto agudo do miocárdio")

  • Confirm a 3-char category or 4-char subcategory exists in CID-10

  • Retrieve gender / cause-of-death restriction flags when applicable

Accepts both dotted ("A00.1") and undotted ("A001") forms; returns the canonical display.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCID-10 code (e.g., "A00", "A00.1", "A001", "I21"). Dotted and undotted forms both accepted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hitYes
codeYes
foundYes
provenanceYesProvenance block (contract v1.0): source, URL, data vintage, extraction instant, citation, license
attributionYesCanonical source URLs of this response (attribution list)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.9.1
    • changedOutput schema / properties / hit / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "causa_obito": {
      -        "type": "string"
      -      },
      -      "chapter_num": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "classif": {
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "display": {
      -        "type": "string"
      -      },
      -      "excluidos": {
      -        "type": "string"
      -      },
      -      "group_range": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "level": {
      -        "enum": [
      -          "category",
      -          "subcategory"
      -        ],
      -        "type": "string"
      -      },
      -      "refer": {
      -        "type": "string"
      -      },
      -      "restr_sexo": {
      -        "type": "string"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "title_short": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "level",
      -      "code",
      -      "display",
      -      "classif",
      -      "title",
      -      "title_short",
      -      "refer",
      -      "excluidos",
      -      "restr_sexo",
      -      "causa_obito",
      -      "chapter_num",
      -      "group_range"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "causa_obito": {
      +        "type": "string"
      +      },
      +      "chapter_num": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "classif": {
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "display": {
      +        "type": "string"
      +      },
      +      "excluidos": {
      +        "type": "string"
      +      },
      +      "group_range": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "level": {
      +        "enum": [
      +          "category",
      +          "subcategory"
      +        ],
      +        "type": "string"
      +      },
      +      "refer": {
      +        "type": "string"
      +      },
      +      "restr_sexo": {
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "title_short": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "level",
      +      "code",
      +      "display",
      +      "classif",
      +      "title",
      +      "title_short",
      +      "refer",
      +      "excluidos",
      +      "restr_sexo",
      +      "causa_obito",
      +      "chapter_num",
      +      "group_range"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / provenance / properties / data_vintage / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provenance / properties / data_vintage / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / provenance / properties / license / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provenance / properties / license / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed3 schema fields changedv1.8.0
    • addedOutput schema / properties / attribution
      Added value: +{
      +  "description": "Canonical source URLs of this response (attribution list)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / provenance
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Provenance block (contract v1.0): source, URL, data vintage, extraction instant, citation, license",
      +  "properties": {
      +    "citation": {
      +      "description": "Ready-to-use citation/attribution string",
      +      "type": "string"
      +    },
      +    "data_vintage": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Version/release of the data as exposed by the source; null when not exposed"
      +    },
      +    "license": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "License / legal regime of the data"
      +    },
      +    "retrieved_at": {
      +      "description": "Real instant of the upstream extraction (ISO-8601, UTC). Responses served from cache keep the ORIGINAL fetch instant.",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Official upstream source of this data",
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "description": "Canonical URL of the source (API base or dataset release)",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "source",
      +    "source_url",
      +    "data_vintage",
      +    "retrieved_at",
      +    "citation",
      +    "license"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "code",
      -  "found",
      -  "hit"
      -]New value: +[
      +  "code",
      +  "found",
      +  "hit",
      +  "provenance",
      +  "attribution"
      +]
  3. Changed2 schema fields changedv1.5.7
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / hit / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "causa_obito": {
      -        "type": "string"
      -      },
      -      "chapter_num": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "classif": {
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "display": {
      -        "type": "string"
      -      },
      -      "excluidos": {
      -        "type": "string"
      -      },
      -      "group_range": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "level": {
      -        "enum": [
      -          "category",
      -          "subcategory"
      -        ],
      -        "type": "string"
      -      },
      -      "refer": {
      -        "type": "string"
      -      },
      -      "restr_sexo": {
      -        "type": "string"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "title_short": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "level",
      -      "code",
      -      "display",
      -      "classif",
      -      "title",
      -      "title_short",
      -      "refer",
      -      "excluidos",
      -      "restr_sexo",
      -      "causa_obito",
      -      "chapter_num",
      -      "group_range"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "causa_obito": {
      +        "type": "string"
      +      },
      +      "chapter_num": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "classif": {
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "display": {
      +        "type": "string"
      +      },
      +      "excluidos": {
      +        "type": "string"
      +      },
      +      "group_range": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "level": {
      +        "enum": [
      +          "category",
      +          "subcategory"
      +        ],
      +        "type": "string"
      +      },
      +      "refer": {
      +        "type": "string"
      +      },
      +      "restr_sexo": {
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "title_short": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "level",
      +      "code",
      +      "display",
      +      "classif",
      +      "title",
      +      "title_short",
      +      "refer",
      +      "excluidos",
      +      "restr_sexo",
      +      "causa_obito",
      +      "chapter_num",
      +      "group_range"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. First observedv1.2.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly and non-destructive behavior, so the bar is lower. The description adds valuable behavioral details beyond annotations: dotted/undotted input normalization, canonical display output, and gender/cause-of-death restriction flags. There is no contradiction with annotations.

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

Conciseness5/5

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

The description is compact, front-loaded with the core purpose, and uses bullets efficiently. Every sentence contributes functional guidance without redundancy or filler.

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?

For a single-parameter lookup tool with a rich input schema and an output schema, the description provides all necessary context: input forms, return value, example, and additional flags. Nothing critical is missing for an agent to invoke it correctly.

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 coverage is 100% and the schema description already explains accepted forms with examples. The description reinforces dotted/undotted acceptance but does not materially add meaning beyond the schema, so the baseline 3 is appropriate.

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 states a specific action ('Look up a specific CID-10 code'), the exact resource (CID-10), and the output (Portuguese name), with a concrete example. It clearly differentiates this lookup tool from broad search or chapter-level tools in the sibling list.

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?

The 'Use this tool to' bullets give clear context: resolving a code, confirming existence, and retrieving restriction flags. It does not explicitly name alternatives or exclusions (e.g., 'use cid10_search for free-text queries'), but the intended use is well implied.

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