Skip to main content
Glama

list_leaves

Lists a model's leaves in document order, including cluster paths, SDC4 types, constraints, enumerated-value counts, and identity links, with paging for large models.

Instructions

The model's leaves in document order, each with its path of clusters, its SDC4 type, its constraints, how many enumerated values it has and its identity links. Paged: a model can have more than a thousand leaves.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_leaves"
  }
}

Input Schema

NameRequiredDescriptionDefault
ct_idNoThe model's identifier (CUID2) in the public catalog; the package is fetched from the host this server was started with.
limitNo
offsetNo
directoryNoA package directory already on disk (dm-<ct>.jsonld and dm-<ct>.xsd, optionally catalog.json and versions.json). Give this or ct_id, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.4.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses that results come back in document order, that output is paginated, and why pagination matters (models can exceed a thousand leaves), which is useful behavioral context. It does not state that this is a read-only operation explicitly, nor what happens if both ct_id and directory are supplied or if the model identifier is unknown.

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?

Two sentences, front-loaded with what is returned and followed by the pagination constraint; there is no filler. The second sentence is slightly telegraphic ("Paged:") but it still earns its place by explaining the thousand-leaf scale.

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?

With no output schema, the description usefully enumerates the per-leaf fields an agent will receive, which is the main missing structured information. Combined with the pagination note, this is nearly complete for a read-only listing tool; only error/edge-case behavior is left implicit.

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 50%: ct_id and directory are documented in the schema, while limit and offset have only defaults and bounds. The description adds the paging rationale that justifies limit/offset, but it does not explain page-size guidance, offset semantics, or the exclusivity rule for ct_id vs directory beyond what the schema already says.

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 model's leaves in document order" states a specific verb (list) and resource (leaves) plus the ordering guarantee, and the description enumerates what each leaf carries (path of clusters, SDC4 type, constraints, enumeration count, identity links). It does not explicitly contrast with siblings such as list_codes or describe_model, but the resource is distinct enough that an agent can tell them apart.

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 explicit when-to-use guidance, no mention of prerequisites, and no named alternative for cases like wanting a whole-model summary (describe_model) or code lists (list_codes). The only quasi-guidance is the "Paged" note, which explains why to paginate rather than when to call the tool.

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