Skip to main content
Glama

Record mapping decisions

record_decision
Read-onlyIdempotent

Records decisions on warehouse mappings—such as keys, tables, fields, and metric owners—then lists open questions or candidates when no decisions are supplied.

Instructions

Record the decisions people make on a profiled and proposed warehouse, the Decide step of readiness level 2. Pass semantic_model and mapping (the ones propose_mapping returned) and decisions: a YAML or JSON list where each entry names what it is about, the subject by content and its owner. about: key, time, kind or type answers a profiler question and is written into the model (dataset, answer: the key columns or "none", the time column or "none", snapshot|event|fact|reference or an Ossie datatype with column); about: table accepts (or with accept: false rejects) a table as a GASP dataset (dataset, to: the GASP dataset) and maps its columns as the proposer would; about: field accepts or rejects a column as a GASP field of the dataset its table is mapped to (dataset, column, to: the GASP field, optional transform over {{value}}, which becomes a calculated field); about: owner names the team that owns a metric (metric, owner, optional contact), the slot validate_mapping reads; about: topic records a judgement call GASP cannot apply, such as which system owns customer identity, the reporting currency or what date marks churn (topic, answer). Every decision carries owner, an optional date (today when omitted) and note. It lands in the mapping's GASP extension; a later decision on the same subject replaces the earlier one. With no decisions it lists what is open: the questions no decision or model state has settled, the candidates no decision has settled and the covered metrics without an owner. Level 2 is reached when no question and no candidate is open. Returns the report with the updated mapping and, when it changed, the model, to pass on to validate_mapping, compile_model and score_drift.

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": {
      "semantic_model": "<semantic_model>",
      "mapping": "<mapping>"
    },
    "name": "record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNo'report' (default): what was applied, what is open and the updated documents as YAML; 'mapping': the mapping alone; 'model': the model alone; 'json': everything as data.
mappingYesThe Ossie mapping propose_mapping returned, as YAML or JSON; its candidates and the decisions already on file are read from the GASP extension; the decisions are written back into it.
decisionsNoThe decisions as a YAML or JSON list: [{about: key, dataset: usage_daily, answer: [account_id, workspace_id, day], owner: Data platform}, {about: table, dataset: plan_prices, to: plan, accept: false, owner: Billing}, {about: field, dataset: subscriptions, column: plan_code, to: plan_id, owner: Billing}, {about: owner, metric: Net Revenue Retention, owner: Finance, contact: fp&a@example.com}, {about: topic, topic: reporting currency, answer: USD, owner: Finance, note: ...}]. Omit it to list what is open.
semantic_modelYesThe Ossie semantic model the mapping reads, as YAML or JSON: the one propose_mapping returned (its profile questions are read from the GASP extension).

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?

With readOnlyHint/idempotentHint already supplied, the description adds real context: decisions land in the mapping's GASP extension, a later decision on the same subject replaces the earlier one, and level 2 is reached when no question and no candidate is open. That replacement semantics plus the completion criterion is behavior an agent cannot read off the annotations. The 'record'/'written into' wording refers to the supplied documents rather than external state, so it is consistent with readOnlyHint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the paragraph order (what it does, what to pass, what happens with no decisions, what is returned) is logical. However the middle paragraph is a single dense run-on with stacked parentheticals that is hard to parse on first read, and it partly restates the decision example already present in the schema's `decisions` description.

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?

For a four-parameter tool with no output schema, the description covers inputs, the pass-through of updated mapping/model, the open-items listing mode, and the readiness-level success condition. Nothing material needed to invoke it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description goes well past the schema by defining each `about` kind — key, table, field, owner, topic — with its required fields, that `answer: none` is a valid answer, that `accept: false` rejects, and that a `transform` over {{value}} becomes a calculated field. It also explains when to omit `decisions` entirely. This is meaning the JSON-schema example alone does not convey.

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 first sentence gives a specific verb and resource — record the decisions people make on a profiled and proposed warehouse — and situates it in the workflow as 'the Decide step of readiness level 2'. It also names related siblings (decisions are what propose_mapping returned and what validate_mapping reads), so an agent can distinguish it from its neighbors without opening the schema.

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?

Clear usage context: call it after propose_mapping with that tool's outputs, omit decisions to get the list of open questions/candidates/unowned metrics, and pass the result on to validate_mapping, compile_model and score_drift. There is no explicit exclusion such as 'do not call propose_mapping again', but the workflow position and the no-decisions mode are spelled out.

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