Skip to main content
Glama

Suggest mapping

suggest-mapping
Read-onlyIdempotent

Find matching rs-gaap reporting concepts for a CoA element.

WHEN TO USE:

  • When deciding which reporting concept a CoA account should map to

  • Narrows by classification (asset→Assets subtree, revenue→Revenues subtree, etc.)

RETURNS: Candidate rs-gaap concepts with element id, qname, label and depth. Every candidate appears in at least one rs-gaap-presentation Network, so any target picked from here is guaranteed to render on the standard BS / IS / CF / SE reports under the active Reporting Style.

NOTES:

  • Candidates are filtered by the EFS trait (FASB elementsOfFinancialStatements) matching the source element's classification, which narrows by roughly 80%.

  • Statement-level subtotals are excluded (e.g. rs-gaap:Assets, rs-gaap:LiabilitiesCurrent) — the calc DAG computes those, not a leaf fact.

  • Depth 1 is high-level line items; depth 2+ is detail.

  • rs-gaap is the only render target, so there is no target_taxonomy parameter.

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": {
      "element_id": "<element_id>"
    },
    "name": "suggest-mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
liquidityNoOptional liquidity narrowing (assets/liabilities). Drops candidates of the opposite liquidity. Defaults to the element's own liquidity trait.
element_idYesThe CoA element ID to find mapping candidates for
classificationNoOverride classification filter (asset, liability, equity, revenue, expense). Defaults to the element's own classification.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses real behavioral traits: EFS-trait filtering that cuts candidates ~80%, exclusion of statement-level subtotals because the calc DAG computes them, depth meaning (1 = high-level, 2+ = detail), and the guarantee that every candidate renders on standard BS/IS/CF/SE reports. Those are non-obvious selection consequences an agent cannot get from the schema.

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, then clearly sectioned WHEN TO USE / RETURNS / NOTES, so an agent can scan it quickly. It runs slightly long and the EFS-trait note could be trimmed, but nearly every sentence carries decision-relevant information.

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 read-only, three-parameter suggestion tool with no output schema, the description covers what comes back (element id, qname, label, depth), why certain concepts are omitted, and how results are filtered. Nothing essential to calling or interpreting it is 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 baseline is 3, but the description adds meaning above the schema: classification narrowing is mapped to concrete subtrees (asset→Assets, revenue→Revenues) and it proactively explains the absence of a target_taxonomy parameter. The liquidity parameter is left entirely to the schema, which keeps it from a 5.

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: 'Find matching rs-gaap reporting concepts for a CoA element.' The 'suggest' framing plus the RETURNS section makes it clearly distinct from the write-side siblings like create-mapping-association or confirm-mapping-association without relying on their names.

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?

The WHEN TO USE block gives a concrete decision context ('deciding which reporting concept a CoA account should map to') and a narrowing rule by classification. It does not say when not to use it or how it differs from the confirm/create association siblings, but the triggering condition is unambiguous.

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.