Skip to main content
Glama

Create taxonomy block

create-taxonomy-block

Create a taxonomy block atomically: one envelope carrying the taxonomy row plus its structures, elements, associations, and rules. Dispatches by taxonomy_type — chart_of_accounts (declarative tenant CoA), reporting_extension, and custom_ontology are supported; reporting_standard is library-origin (501). reporting_extension / custom_ontology authoring may be disabled per environment (TAXONOMY_AUTHORING_ENABLED) — disabled surfaces 403. A reporting_extension structure with extends_network adds rows to the entity's balance sheet, income statement, cash flow or equity statement: its arcs layer onto that Reporting Style network, anchored and checked when authored (refused with a reason, 422). Prefer an rs-gaap concept for a row — any library concept may be named, including ones not yet in this graph — and give a tenant concept a parent_ref to the rs-gaap concept it refines. NOT the path for a functional close schedule: a structure with block_type='schedule' here is a bare ontology row with none of the schedule machinery (per-period facts, schedule_entry_due obligations, closing-entry generator). To create a working schedule use create-information-block(block_type='schedule').

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",
      "elements": [
        {
          "code": "1000",
          "name": "Cash",
          "qname": "acme:Cash",
          "trait": "asset",
          "balance_type": "debit"
        },
        {
          "code": "2000",
          "name": "Accounts Payable",
          "qname": "acme:AccountsPayable",
          "trait": "liability",
          "balance_type": "credit"
        }
      ],
      "structures": [
        {
          "name": "main",
          "block_type": "chart_of_accounts"
        }
      ],
      "taxonomy_type": "chart_of_accounts"
    },
    "name": "create-taxonomy-block"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTaxonomy display name.
rulesNo
versionNo
elementsNo
metadataNo
standardNo
entity_idNoFor a `chart_of_accounts`: the entity whose books it keeps, default the group parent. It becomes that entity's primary chart only if the entity has none; otherwise it is linked beside the primary, which stays. Not read by other types.
structuresNo
descriptionNo
associationsNo
namespace_uriNo
taxonomy_typeYesBlock-type discriminator. `chart_of_accounts` and `custom_ontology` construct from scratch; `reporting_extension` extends an existing library `reporting_standard`.
parent_taxonomy_idNoRequired when `taxonomy_type == 'reporting_extension'` — the id of the library `reporting_standard` being extended.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare the write, non-idempotent, non-open-world profile, and the description layers on real behavioral facts: all-or-nothing envelope semantics, dispatch behavior per taxonomy_type, specific status codes (403, 501, 422 with a refusal reason), and how extends_network arcs anchor onto a Reporting Style network. That is substantial context an agent cannot get from annotations or schema alone.

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 core definition and logically ordered: purpose, dispatch, eligibility, extends_network semantics, authoring guidance, then the sibling exclusion. It is dense and a few statements (extends_network arc rules) restate schema text, but nearly every sentence carries actionable information.

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 13-parameter nested-envelope mutation with no output schema, the description covers the critical decision points and failure modes. It does not state what the call returns (e.g., taxonomy id) or note idempotency/duplicate-name behavior, which are the main residual gaps.

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 only 31% across 13 params, so the description needs to compensate. It adds meaningful semantics for extends_network layering, the 'prefer the rs-gaap concept / set parent_ref to the concept it refines' convention, and entity_id-adjacent scoping context, though several deep parameters (rules, associations, concept_arrangement) are only explained by the nested schema text.

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 plus its atomic envelope semantics: 'Create a taxonomy block atomically: one envelope carrying the taxonomy row plus its structures, elements, associations, and rules.' It also discriminates by taxonomy_type and explicitly contrasts itself with create-information-block for schedules, so an agent can tell it apart from siblings without opening a schema.

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 (declarative CoA, reporting extension, custom ontology), when-not-to-use ('NOT the path for a functional close schedule… use create-information-block(block_type=schedule)'), and environment/eligibility caveats (501 for reporting_standard, 403 when TAXONOMY_AUTHORING_ENABLED is off).

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.