Skip to main content
Glama
SemanticDataCharter

sdc-mapper-mcp

Official

map_record

Validates a Governed Data Record, maps every value to a chosen target format, and returns output, coverage report, unmapped gaps, and audit hash.

Instructions

Map one Governed Data Record to one target format. The record is validated first: valid, valid with Exceptional Values (one bad value is marked, not fatal), or refused with the reasons. Returns the output (inline, or written to output_dir), the coverage report (how every value reached the target, and what happened to every Exceptional Value), one sentence of what the target could not say, and the hash of the log entry. The model is the one the record names unless ct_id or directory is given.

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.
recordYesPath to the Governed Data Record's XML file on disk.
targetYesA mapper name, as list_targets gives it.
mappingNoPath to a mapping file (YAML) for this model and target, if the model alone does not settle the mapping.
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.
output_dirNoWrite the outputs and coverage.json here instead of returning them inline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the three validation outcomes (valid, valid-with-Exceptional-Values, refused), that a bad value is marked rather than fatal, that outputs may be written to disk, and that a log entry (with hash) is produced. It stops short of stating side effects like idempotency, overwrite behavior in output_dir, or the fact that a log record is persisted.

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?

Four tight sentences, front-loaded with the action, then the validation semantics, then the return payload, then the model-selection rule. No filler and no repetition of the schema.

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, and the description compensates by enumerating the return payload (output, coverage report, one-sentence limitation, log hash). For a six-parameter tool with a multi-step pipeline this is nearly complete; only error/refusal return shape and file-write side effects are left vague.

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 real meaning: it explains model-resolution precedence ('the model is the one the record names unless ct_id or directory is given') and ties output_dir to the inline-vs-file return behavior. It does not explain what 'target' or 'mapping' mean beyond the schema, but the precedence rule is a genuine addition.

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 and resource ('Map one Governed Data Record to one target format') with clear scope ('one... to one'). It does not, however, contrast itself with siblings like check_mapping or fidelity, so the agent must infer when mapping differs from checking or measuring fidelity.

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 by the verb, and the description explains the validation pipeline a caller will encounter. It never says when to reach for this tool versus check_mapping/fidelity, nor does it state prerequisites (e.g. that a target must come from list_targets — that detail lives only in the schema).

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