Skip to main content
Glama

NIH NLM MeSH Medical Subject Headings MCP

Get MeSH tree hierarchy

get_mesh_tree_hierarchy
Read-onlyIdempotent

Inspect the MeSH ontological tree branches, root categories, depth, and ancestor tree numbers for a descriptor.

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": {
      "descriptor_id": "<descriptor_id>"
    },
    "name": "get_mesh_tree_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault
descriptor_idYesMeSH descriptor ID (for example "D003920").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds value beyond them by disclosing what the response actually contains — branches, root categories, depth, and ancestor tree numbers — which tells the agent what it will get back. It could still note that tree numbers are hierarchical strings or that a descriptor may sit in multiple branches.

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?

A single front-loaded sentence with a clear verb and a compact enumeration of what is returned; nothing is redundant or padding.

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

Completeness4/5

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

For a one-parameter read-only lookup with no output schema, the description is nearly sufficient: it names the returned elements so the agent knows the shape of the result. The remaining gap is that it never clarifies relationship to the descriptor-detail tool or handles multi-branch/duplicate tree numbers.

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?

With one parameter at 100% schema description coverage, the schema already explains descriptor_id including an example value. The description only reinforces that the input is 'a descriptor,' adding no format, prefix, or multi-branch syntax detail. Baseline 3 applies when the schema does the work.

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?

States a specific verb ('Inspect') and resource ('MeSH ontological tree branches') and enumerates the concrete contents: root categories, depth, and ancestor tree numbers. It is clearly distinguishable in intent from lookup/search siblings, though it never names get_mesh_descriptor_detail, which likely also exposes tree numbers.

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?

The description says nothing about when to reach for this tool versus get_mesh_descriptor_detail or the search/lookup siblings, and gives no preconditions or exclusions. The only hint of scope is the trailing phrase 'for a descriptor,' which implies single-descriptor traversal but is not framed as guidance.

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.