Skip to main content
Glama

list_codes

Lists the enumerated values of a model component, including each value's IRI, definition, and code system, so you can inspect the codes annotated in a published schema.

Instructions

The enumerated values of one component in a model: each value with the IRI, definition and code system the published schema annotates it with.

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": {
      "component": "<component>"
    },
    "name": "list_codes"
  }
}

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.
componentYesThe component's identifier (ct_id), as list_leaves reports it.
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

C2.9/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full behavioral burden. It does disclose the shape of each returned value (IRI, definition, and code system from the published schema), which is genuinely useful, but it says nothing about read-only safety, what happens if the component has no enumerated values, or whether the package must already be on disk versus fetched.

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?

A single front-loaded sentence with no padding; the return-content clause is compact and informative. The phrasing is slightly compressed ("the code system the published schema annotates it with"), but nothing is wasted.

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

Completeness3/5

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

For a read-only list tool with a fully documented 3-parameter schema, the description covers what is returned but omits operational context such as package resolution requirements and the equivalent of an empty-result behavior. Adequate but with clear gaps given there is no output schema to fall back on.

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 100%, and the schema already explains ct_id, component (including that list_leaves reports it), and the ct_id-or-directory exclusivity. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 description names a specific resource and scope: the enumerated values (code lists) of exactly one component in a model. An agent can tell this apart from list_leaves or read_record because it is explicitly about code-list values for a component. It lacks an explicit verb ("List..."), which keeps it just short of a 5.

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 when-to-use guidance, no mention of prerequisites (e.g. whether check_package or list_leaves must be called first), and no statement of when not to use it. The only selection logic (ct_id vs directory) lives in the schema, not the description.

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