Skip to main content
Glama

Validate an adapter

validate_adapter
Read-onlyIdempotent

Validate a warehouse mapping against the GASP Standard and score its coverage before generating queries. Checks adapter or Ossie mapping schemas, references, mapped pairs, metrics, and unmapped gaps.

Instructions

Same as validate_mapping, under the tool's original name. Check a warehouse mapping against the GASP Standard and score its coverage. Accepts either format: a GASP adapter (JSON; schema https://gaspwiki.com/schemas/gasp-adapter-v1.json, versions 1.0 and 1.1) or an Apache Ossie mapping document (YAML or JSON) over your semantic model, which you can pass as semantic_model. A GASP adapter is converted on load into an Ossie mapping over a model synthesised from its tables and columns. Layers, each reported in its own section: the schema (the adapter JSON Schema with each violation's JSON path; the Ossie mapping schema for the Ossie form), GASP's cross-document checks (every concept, relationship and field reference resolves against the GASP ontology and the model), then coverage: unknown fields and datasets, fields mapped to a dataset that does not carry them, bare column names on fields that live on several datasets, datasets whose fields point at different tables, pairs mapped twice, the field and dataset pairs mapped, every metric with a formula scored against the pairs its compiled SQL reads (fully covered, partially covered with the missing pairs, not covered), enum fields mapped without a transform, covered metrics with no declared owner, owners naming unknown metrics and up to 15 unmapped pairs ranked by how many partially covered metrics need them. Run it before generate_query.

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": {
      "adapter": "<adapter>"
    },
    "name": "validate_adapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
adapterYesThe mapping as text: a GASP adapter (JSON; template: https://gaspwiki.com/downloads/gasp-adapter-template.json) or an Ossie mapping document (YAML or JSON; reference: https://gaspwiki.com/downloads/ossie/gasp.mapping.yaml).
semantic_modelNoWith an Ossie mapping: your semantic model document (YAML or JSON), so its datasets, fields, keys and sources are checked. Without it, names are taken from the mapping's expressions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds substantial behavior: the adapter is converted on load into an Ossie mapping over a synthesised model, checks run in ordered layers, and results are reported per section. It also discloses the scope limits that matter (up to 15 unmapped pairs, ranked by partially covered metrics), which is exactly the kind of non-obvious detail annotations cannot carry.

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?

Purpose and accepted formats are front-loaded, and the 'Layers, each reported in its own section' framing gives the reader a scaffold for the long check list. The coverage enumeration is a comma-spliced run-on that is hard to scan and partly repeats itself, but with no output schema most of it earns its place.

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

Completeness5/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 describing what each report section contains, down to the coverage verdicts (fully/partially/not covered) and the truncated ranked list of unmapped pairs. For a multi-layer validation tool with format conversion, nothing an agent needs before invoking it appears to be missing.

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 schema already explains both parameters; the description still adds meaning beyond it by pinning the adapter to specific GASP adapter schema versions (1.0 and 1.1) and by explaining the consequence of omitting semantic_model (names fall back to the mapping's expressions). That consequence is a behavioral contract for the parameter, not a restatement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 ('Check a warehouse mapping against the GASP Standard and score its coverage') and explicitly resolves its relationship to the sibling validate_mapping ('Same as validate_mapping, under the tool's original name'). An agent can tell exactly what this does and that it is not a distinct behavior from validate_mapping.

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

Usage Guidelines4/5

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

It gives concrete lifecycle guidance ('Run it before generate_query') and states the accepted input formats, which tells the agent when this tool belongs in a workflow. It does not spell out when NOT to use it or whether it is safe to skip when a mapping was already validated, so it stops short of a full 5.

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