Skip to main content
Glama

read_record

Read a governed XML data record against its model to list each attribute and value in document order, with its component, path, element, context, and any exceptional value. Paged, no validation.

Instructions

Read a Governed Data Record (an XML file on disk) against its model: the record's attributes and each value in document order with its component, path of clusters, elements, context and any Exceptional Value (ISO 21090 code, name, and whether it was written at the source or inserted by recovery beside a rejected value). The model is the one the record names, fetched by its identifier unless ct_id or directory is given. Paged. Does not validate the record.

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": {
      "record": "<record>"
    },
    "name": "read_record"
  }
}

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
recordYesPath to the record's XML file on disk.
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

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that output is paged and that no validation is performed, plus that the model package is fetched from the host the server started with. However, it omits error behavior for a missing/unreadable XML file, whether reads have side effects on disk, and any auth or rate-limit context.

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?

The core operation is front-loaded in the first clause and the negative boundary ('Does not validate') closes it cleanly. The middle is a single long run-on sentence dense with parenthetical detail, which is information-rich but harder to parse than a short bulleted structure would be.

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?

There is no output schema, so the description must describe the return shape, and it does so concretely (per-value component, cluster path, elements, context, exceptional-value provenance). Gaps remain around paging totals, failure modes, and how large records stream, but the essential call contract is covered for a 5-parameter read tool.

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?

At 60% schema coverage, the description adds real meaning: it establishes that the model is normally resolved from the record's own identifier and that ct_id or directory override that resolution, and 'Paged' ties limit/offset to a paging model. The record path and the mutual exclusivity of ct_id/directory are already covered by the schema, so not everything is incremental.

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 verb and resource — read a Governed Data Record (an XML file on disk) — and then enumerates exactly what is produced (attributes plus each value in document order with component, cluster path, elements, context, exceptional values). It also draws a boundary with 'Does not validate the record', which implicitly separates it from validation-oriented siblings like check_package, though no sibling is named directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the description explains the default model-resolution path ('the model is the one the record names, fetched by its identifier unless ct_id or directory is given'), which tells an agent how to call it but not when to prefer it over describe_model or find_models. No explicit when-to-use or when-not-to-use guidance is given.

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