Skip to main content
Glama

Propose a GASP mapping

propose_mapping
Read-onlyIdempotent

Propose a GASP mapping for a warehouse from its profiled semantic model (readiness level 2). Pass semantic_model (the model profile_schema returned, or your own Ossie model) or schema (profiled on the way in, with optional statistics). Every table is scored against every GASP dataset on its columns, its profiled kind, key and time field and its name; every column of a proposed table against the dataset's fields by name, structural role (the table's time field is the dataset's date), a short synonym list, word order and near names, each checked against the warehouse type and, for an enum field, the listed values. A column in cents gets a divide-by-100 transform and enum values the standard does not use a CASE recode when one is known. Only high-confidence pairs enter the mapping; medium ones are listed as candidates with their evidence and what would settle them; the rest are unmatched. Returns the report and the Ossie mapping over the model (a transform becomes a calculated field): the candidates go to record_decision with both documents, then the mapping to validate_mapping, compile_model and score_drift; output: adapter gives the same pairs as a GASP adapter.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "propose_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNo'report' (default): the proposal with evidence, candidates and the mapping as YAML; 'mapping': the Ossie mapping alone; 'model': the model with any calculated fields the transforms added; 'adapter': the pairs as a GASP adapter (JSON); 'json': everything as data.
schemaNoInstead of semantic_model: the warehouse schema as profile_schema accepts it (information_schema rows, a tables list or CREATE TABLE statements), profiled on the way in.
statisticsNoWith schema: per-column statistics as profile_schema accepts them; the listed values of enum columns drive the recode transforms.
organizationNoThe company's name, used in the mapping's name.
semantic_modelNoThe Ossie semantic model to map, as YAML or JSON: the one profile_schema returned (its profile and listed values are read) or the company's own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotent, non-destructive, closed-world), and the description goes well beyond them: it discloses the matching algorithm (table scored on columns/kind/key/time field/name; columns by name, structural role, synonyms, word order, near names), the confidence gating (high enters the mapping, medium becomes candidates with evidence, rest unmatched), and the automatic transforms (cents divide-by-100, CASE recode for unused enum values). It does not state cost, runtime, or determinism of scoring across runs, which keeps it short of a 5.

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?

Front-loaded with purpose and the input choice, and nearly every clause carries real information about matching or outputs. It is, however, one dense paragraph blending behavior, parameters, return value and workflow, which makes it harder to scan than it needs to be.

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 complex five-parameter tool with no output schema, the description covers what the return contains (report plus Ossie mapping over the model, with transforms as calculated fields) and what the 'adapter' output yields. Combined with annotations that carry the safety profile, an agent has everything needed to call it and route the result.

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 coverage is 100% and the schema already documents each parameter, including the output enum values and the 'Instead of semantic_model' / 'With schema' relationships. The description restates the semantic_model-vs-schema choice and notes that statistics feed the enum recode, adding only marginal meaning beyond the schema.

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?

States a specific verb and resource ('Propose a GASP mapping for a warehouse') and names the input precondition ('from its profiled semantic model, readiness level 2'). It is clearly distinguishable from validate_mapping and compile_model, which are named only as downstream steps, not as substitutes.

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

Usage Guidelines5/5

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

Explicitly gives the prerequisite (a readiness-level-2 profiled model), the two input routes (pass semantic_model, or pass schema to profile on the way in), and the exact follow-on sequence: candidates to record_decision with both documents, then the mapping to validate_mapping, compile_model and score_drift. Little is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.