Skip to main content
Glama

Update taxonomy block

update-taxonomy-block
Destructive

Incrementally mutate a taxonomy block via typed delta lists (elements/structures/associations/rules to add, update, remove). Dispatches by the target taxonomy's stored taxonomy_type. For a chart of accounts: add, rename and reclassify accounts freely; an account with facts or line items is never removed — retire it with elements_to_update[].is_active=false (history stays, new postings are refused, pickers hide it; true reactivates). Removal and whole-chart delete work only with no activity. Library-origin block types (reporting_standard) surface 501. reporting_extension / custom_ontology authoring may be disabled per environment (TAXONOMY_AUTHORING_ENABLED) — disabled surfaces 403. Closed months are immutable against curation: a mapping arc added or removed for an account with landed history in a closed month, or a balance_type / period_type / trait change on such an account, is refused (422, protected_facts) naming the months to reopen first. An envelope that removes an account's arc and adds one on the same primary statement moves it: a reclassification, allowed.

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": {
      "name": "Acme CoA (v2)",
      "version": "2.0",
      "taxonomy_id": "tax_acme_coa"
    },
    "name": "update-taxonomy-block"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
versionNo
descriptionNo
taxonomy_idYes
rules_to_addNo
elements_to_addNo
rules_to_removeNoRule ids to remove.
structures_to_addNo
elements_to_removeNoqnames of elements to remove.
elements_to_updateNo
associations_to_addNo
structures_to_removeNoStructure ids to remove.
structures_to_updateNo
associations_to_removeNoAssociation ids to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag a destructive, non-read-only, non-idempotent mutation, and the description goes well beyond that: dispatch by stored taxonomy_type, retained history on retire, reactivation via true, retirement hiding accounts from pickers and refusing new postings, environment-gated 403/501, and closed-month protection returning 422 protected_facts that name months to reopen. It also clarifies that arc removal plus addition on the same primary statement is a permitted reclassification rather than a blocked change.

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 core purpose and mutation mechanism are front-loaded in the first sentence, and subsequent sentences each carry distinct operational information with little repetition. Density is high and the semicolon-and-parenthetical stacking (status codes, error tokens, closed-month rules) makes it slow to parse, but no sentence is filler.

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?

For a destructive mutation tool with no output schema and only 29% schema coverage, the description covers the important operational surface: type dispatch, retire-vs-remove, permission and environment failures, and closed-period immutability with the exact error contract. It stops short of describing the response payload or the effect of envelope-level name/version/description fields, and per-field delta semantics remain thin relative to the schema's size.

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 low at 29% across 14 parameters, so the description must carry parameter meaning, and it partially does: it explains the delta-list grouping (add/update/remove for elements, structures, associations, rules), the retire/reactivate semantics of elements_to_update[].is_active, and the fact that the validator re-runs create-time checks over the projected post-update state. It adds no guidance on rules_to_add patterns, structures_to_add block_type/extends_network, or associations_to_add weight, so considerable parameter territory is undocumented in both places.

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 opening sentence gives a precise verb, resource, and mechanism: incrementally mutate a taxonomy block via typed delta lists of elements/structures/associations/rules. It also separates itself from the create/delete siblings behaviorally by noting that 'Removal and whole-chart delete work only with no activity.' An agent can tell what this tool does and what it does not do 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?

The description states clear when-to-use context and several explicit when-not conditions: an account with facts or line items is never removed (retire via is_active=false instead), whole-chart delete requires no activity, library-origin block types surface 501, and authoring-disabled environments surface 403. It does not name a sibling tool such as delete-taxonomy-block or create-taxonomy-block as the alternative, so routing between tools is left slightly implicit.

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.