Skip to main content
Glama

correct_mapping

Correct wrong canonical field mappings returned by normalize_telemetry. Provide the confirmed canonical to improve the retraining corpus and fix mappings for all users.

Instructions

Teach Forge the RIGHT canonical field for a source column that normalize_telemetry mapped wrong (or abstained on). Each correction is recorded as a corpus-improvement signal the retrainer uses to fix the mapping for everyone — so every agent interaction makes normalization better.

USE WHEN: you or the user can see normalize_telemetry returned the wrong canonical for a field (e.g. it mapped an oil-pressure column to a tire- pressure field), or it abstained on a field whose meaning you know.

  • source_field: the raw column name exactly as it appeared in your data.

  • confirmed_canonical: the canonical field it SHOULD map to.

  • original_canonical: what normalize_telemetry actually returned (pass the canonical from that field's entry; use "abstained" if it abstained).

  • oem: the OEM you passed to normalize_telemetry (improves aggregation).

  • mapping_id: optional — the mapping_id from the normalize_telemetry field entry. If omitted it is derived deterministically from (source_field, oem).

Returns {ok, feedback_id, action:"correct"}. Corrections feed an offline retrain (they don't hot-patch the live corpus), so noisy feedback can't poison other users' mappings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_fieldYes
confirmed_canonicalYes
original_canonicalYes
oemNo
mapping_idNo
sample_valueNo
confidenceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries the full burden. It clearly states that corrections are recorded as corpus-improvement signals, feed an offline retrain, do not hot-patch the live corpus, and that noisy feedback cannot poison others. It also details the return object (ok, feedback_id, action).

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 description is appropriately sized and well-structured with a main paragraph and a bulleted parameter list. It is slightly verbose (e.g., 'so every agent interaction makes normalization better' is motivational but not essential), but still efficient overall.

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?

Given the tool complexity (7 parameters, output schema exists), the description is remarkably complete. It covers purpose, usage context, parameter meanings, return value, and behavioral implications (offline retrain). No important gaps remain.

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?

The description adds significant meaning for 5 parameters (source_field, confirmed_canonical, original_canonical, oem, mapping_id) with clear explanations. However, two parameters (sample_value, confidence) are present in the schema but not described in the description, leaving a minor gap. Baseline for 0% schema coverage is higher, so overall it compensates well.

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 uses specific verbs ('correct', 'Teach Forge the RIGHT canonical field') and clearly distinguishes this tool from its sibling 'normalize_telemetry' by stating it is used when that tool returned wrong or abstained. The resource (canonical field mapping) is explicit.

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?

The description provides explicit when-to-use conditions ('USE WHEN: you or the user can see normalize_telemetry returned the wrong canonical...') and explains the context (corrections feed an offline retrain, not live). It does not exclude alternatives but the sibling tools list shows this is unique.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FoundryNet/forge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server