Skip to main content
Glama

Link entity taxonomy

link-entity-taxonomy
DestructiveIdempotent

Link an entity to a taxonomy. Idempotent — returns the existing linkage if it already exists. CoA blocks auto-link at create time; use this to switch an entity's primary chart of accounts. Only the chart_of_accounts basis changes behavior: a reporting, mapping or schedule link records the association and nothing reads it. Statements render from the entity's reporting style (change-reporting-style), and custom statement rows come from a reporting extension of that style.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "basis": "chart_of_accounts",
      "taxonomy_id": "tax_acme_coa"
    },
    "name": "link-entity-taxonomy"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisNoLinkage role: `chart_of_accounts` (the entity's CoA), `reporting` (a reporting standard), `mapping` (CoA→reporting rollup), `schedule` (schedule structure). Only `chart_of_accounts` is read; the others are recorded and do not change how statements render.chart_of_accounts
entity_idNoThe entity to link, by id. Omit for the group parent.
is_primaryNoMark this as the primary linkage for the basis. False allows secondary attachments (e.g. parallel reporting standards).
taxonomy_idYesThe taxonomy to link to.
adoption_contextNoWhy the entity is reporting under this taxonomy (e.g. 'voluntary', 'regulatory', 'lender_requirement').voluntary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false; the description adds genuine context beyond that by spelling out idempotent return semantics and which bases are inert. The notable gap is that it never explains what the destructive aspect actually is — e.g. what happens to the previously primary CoA linkage when it is switched.

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 the action and the idempotency note, then the critical behavioral caveat. The trailing sentence about reporting style and custom statement rows is relevant but slightly drifts from the tool's own behavior into downstream rendering concerns.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description usefully covers the idempotent return ("returns the existing linkage"). For a destructive link mutation with five parameters, the remaining gap is the absence of any note on what prior linkage is replaced or lost.

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 description coverage is 100%, and the description largely restates the `basis` semantics already documented in the schema property. It adds little new meaning for entity_id, is_primary, or adoption_context, so the baseline of 3 is appropriate for a schema that carries the parameter burden.

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+resource ("Link an entity to a taxonomy") and immediately scopes the effect: only the `chart_of_accounts` basis changes behavior while `reporting`/`mapping`/`schedule` merely record an association. This distinguishes it clearly from siblings like create-entity and change-reporting-style, which the description explicitly names.

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?

Gives explicit when-to-use ("CoA blocks auto-link at create time; use this to switch an entity's primary chart of accounts") and when-it-does-nothing (non-CoA bases are recorded and nothing reads them). It also routes the agent elsewhere for statement rendering (change-reporting-style), which is the key alternative for the outcome an agent might wrongly expect from this tool.

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.