Skip to main content
Glama

Create chart-scoped Standard Declaration

create_standard_declaration_chart
Read-only

Authors one sealed declaration whose meaning belongs to exactly one chart, selected by chart_id. Choose journal_entry, journal_entry_void, or retirement, and state the accountable assertion in ordinary language — account codes are not needed, because the chart's accounts are supplied to the model. The result is validated with the exact parser register uses: dates, balance, references, attribution, chart account codes, and that the document's "chart" is this chart's name (chart_mismatch otherwise).

When the description is genuinely ambiguous the result is clarification_needed with one specific question — answer it and call again. Nothing changes the books; review the returned document and register it when ready. A journal entry, a void or a retirement changes the books only when post_chart_accounts posts its chart. Lines post to accounts (role account in list_chart_accounts), never to a category. Model-backed and metered.

Input Schema

NameRequiredDescriptionDefault
authorNoAccountable author of the declaration.
chart_idYesThe one chart this declaration belongs to. Required so duplicate chart names cannot be selected by label.
documentNoThe document arm: a complete declaration JSON document of the named kind (what get_declaration or open_standard_document returns, or a reviewed hand-authored body) to validate against this chart and seal exactly as given. Its "chart" must be this chart's name, not its chart_id (chart_mismatch). No model call; llm_called is false. Exclusive with description.
approved_byNoOptional approver.
declarationYesWhich kind to write.
descriptionNoThe accountable assertion in ordinary language. Account codes are not needed — the chart's accounts are supplied to the model.
workspace_tagYesActive workspace id (the workspace_tag create_workspace and list_workspaces return).

Output Schema

NameRequiredDescriptionDefault
engineYesStamped engine build/version identity for the tool result.
statusYesdeclaration_created, or clarification_needed when the request was ambiguous and the model asked instead of guessing.
file_nameNoSuggested file name for keeping the document durably. Absent on clarification_needed.
llm_calledNoTrue when a model authored it (one metered pass); false when the document arm sealed the caller's own document.
declarationNoThe declaration document to review, keep, and submit. Absent on clarification_needed.
next_actionYesHow to admit the document, or how to resolve the clarification.
content_hashNoCanonical content hash — the declaration's durable identity. Absent on clarification_needed.
clarificationNoThe one specific question blocking authorship. Present only on clarification_needed; answer it and call again.
declaration_kindYesThe kind that was written (or asked about).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations say readOnlyHint=true and the description reconciles that precisely: authoring/sealing does not change the books, only post_chart_accounts does. It adds the validation contract (the exact parser register uses, including chart_mismatch on the document's 'chart' name), the clarification_needed recovery loop, and the cost signal 'model-backed and metered'. That is substantial behavior beyond the annotations.

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-loads the verb, scope, and kind choices before the validation and clarification details. It is fairly dense and has some redundancy with the schema's own property text, but each paragraph carries a distinct idea (what it does, how it validates, what happens when ambiguous, what state changes) rather than padding.

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 7-parameter, nested-schema tool with an output schema, the description covers what an agent needs before calling: scope, kind selection, the two mutually exclusive input arms, validation failure modes, the ambiguity recovery path, and the fact that no books move. Return-value detail is correctly left to the output schema.

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 coverage is 100% and the property descriptions already carry 'account codes are not needed', the description/document exclusivity, the chart-name-not-chart_id rule, and the model-call distinction. The description restates these, which is useful corroboration but adds little meaning beyond the schema; the only genuine addition is tying validation to register's parser, which is not per-parameter semantics. Baseline 3 applies.

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 — 'Authors one sealed declaration' — and pins its scope ('whose meaning belongs to exactly one chart, selected by chart_id'), which is exactly what separates it from create_standard_declaration_workspace. It also enumerates the three declaration kinds, so an agent knows both what it makes and which variants exist 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?

Gives clear when-to-use context: choose one of three declaration kinds, supply ordinary-language description, then review and register the result. It also explains the handoff — nothing changes the books until post_chart_accounts posts the chart — which routes the agent to the posting tool for the actual write. It never explicitly contrasts the two arms (description vs document) as a usage decision, or names the workspace-scoped sibling, which keeps it off a 5.

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.

Resources