Skip to main content
Glama

Search ICF

icf_search
Read-onlyIdempotent

Search the WHO ICF (International Classification of Functioning, Disability and Health) for functioning and disability concepts: body functions (b), body structures (s), activities and participation (d), environmental factors (e).

Use this tool to:

  • Find the ICF code for a function or activity ("walking" → d450 Walking)

  • Code rehabilitation, home-care or disability findings, which ICD-11 (diagnoses) does not cover

  • Search in WHO's official translations — e.g. language: "pt" ("andar" → d450 Andar). Never machine-translated.

  • Search only some branches with within (category codes such as "d450", or ICF URIs; up to 10). The WHO search subtree filter does the bounding; a branch that does not exist is an error, never a silent unbounded search.

Returns matching categories with code, title, ICF component, relevance score and URI, in WHO relevance order. ICF has no category for every measurement: "walking speed" returns d450 Walking (the activity), not a speed category, because ICF classifies functioning, not test results — use loinc_search for the measured observation.

When NOT to use: for diseases and diagnoses use icd11_search; for lab tests and clinical measurements use loinc_search.

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": "icf_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch text (a function, activity, body structure or environmental factor, e.g. "walking")
offsetNoNumber of results to skip, to read the next page: pass `next_offset` from the previous answer, keeping the other arguments. Default: 0
withinNoOnly search these branches of ICF and their descendants (up to 10): a category code ("d450", "b280") or an ICF entity URI. Uses the WHO search subtree filter. A branch that does not exist is an error, never a silent unbounded search.
languageNoLanguage code (default: en). Returns the source's OFFICIAL translation when it exists (e.g. 'pt' for official Portuguese); content is never machine-translated.en
max_resultsNoMaximum number of results (1-100). Default: 25

Output Schema

NameRequiredDescriptionDefault
queryYesThe search text as submitted.
offsetYesResults skipped before the first one returned (the `offset` asked for).
withinYesThe branches that bounded the search, resolved at the WHO; empty when the search was unbounded.
entitiesYesMatching ICF entities in WHO relevance order, at most max_results, starting after `offset`.
provenanceYesProvenance block: source, URL, data vintage, extraction instant, origin diagnostics, citation, license
attributionYesCanonical source URLs of this response (attribution list)
next_offsetYes`offset` that returns the next page with the same arguments; null when this page reaches the end of the results.
total_countYesNumber of entities the WHO search returned, before the max_results cap; a floor when result_chopped is true.
result_choppedYestrue when the WHO cut the list of matches (the ICD-11 search returns at most 50): total_count is then a floor, the pages end where the WHO cut, and more matches exist out of reach — narrow the query or use `within`. false when the list is complete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Number of results to skip, to read the next page: pass `next_offset` from the previous answer, keeping the other arguments. Default: 0",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / entities / description
      Previous value: -"Matching ICF entities in WHO relevance order, at most max_results."New value: +"Matching ICF entities in WHO relevance order, at most max_results, starting after `offset`."
    • addedOutput schema / properties / next_offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "`offset` that returns the next page with the same arguments; null when this page reaches the end of the results."
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "Results skipped before the first one returned (the `offset` asked for).",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / result_chopped
      Added value: +{
      +  "description": "true when the WHO cut the list of matches (the ICD-11 search returns at most 50): total_count is then a floor, the pages end where the WHO cut, and more matches exist out of reach — narrow the query or use `within`. false when the list is complete.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / total_count / description
      Previous value: -"Number of entities the WHO search returned, before the max_results cap."New value: +"Number of entities the WHO search returned, before the max_results cap; a floor when result_chopped is true."
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "within",
      -  "total_count",
      -  "entities",
      -  "provenance",
      -  "attribution"
      -]New value: +[
      +  "query",
      +  "within",
      +  "total_count",
      +  "result_chopped",
      +  "offset",
      +  "next_offset",
      +  "entities",
      +  "provenance",
      +  "attribution"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / within
      Added value: +{
      +  "description": "Only search these branches of ICF and their descendants (up to 10): a category code (\"d450\", \"b280\") or an ICF entity URI. Uses the WHO search subtree filter. A branch that does not exist is an error, never a silent unbounded search.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / within
      Added value: +{
      +  "description": "The branches that bounded the search, resolved at the WHO; empty when the search was unbounded.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "description": "Code of the branch entity (chapter number, block range or category code); null when it has none.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "uri": {
      +        "description": "Entity URI of the branch; null for CID-10 (bundled, no URIs).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "value": {
      +        "description": "The branch as sent in `within`.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "code",
      +      "title",
      +      "uri"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "total_count",
      -  "entities",
      -  "provenance",
      -  "attribution"
      -]New value: +[
      +  "query",
      +  "within",
      +  "total_count",
      +  "entities",
      +  "provenance",
      +  "attribution"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses result ordering (WHO relevance), returned fields, the guarantee that translations are official and never machine-translated, and that a nonexistent `within` branch is an error rather than a silent unbounded search. It also explains the semantic limit case ("walking speed" returns d450, not a speed category).

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 resource and scope, then organized into use/returns/caveat/not-use blocks so an agent can stop reading early. Slightly long, and the `within`/`language` sentences restate schema descriptions nearly verbatim, which is redundant given 100% schema coverage.

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 search tool with five parameters, a full output schema, and sibling ICD/LOINC/MeSH searchers, the definition covers scope, return shape, ordering, pagination handoff via next_offset, and sibling routing. Nothing needed to call it correctly is missing.

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 meaning the schema cannot encode: query targets a function/activity rather than a measurement result, `within` accepts category codes or ICF URIs with hard failure on bad branches, and `language` yields official translations. The within/language wording overlaps heavily with the schema text, so it falls short of a 5.

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 ("Search the WHO ICF") and enumerates the four components (b, s, d, e), which lets an agent distinguish it from generic search tools. Concrete examples like "walking" -> d450 anchor the scope.

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 "Use this tool to" bullets cover coding rehabilitation/disability findings that ICD-11 misses, and the "When NOT to use" line names both alternatives and the condition selecting each (diseases -> icd11_search, measurements -> loinc_search). Nothing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.