Skip to main content
Glama

Octobooks

Change the chart or the tax rates

accounts_set
Destructive

Change the chart of accounts or the tax rates (round 626); written at once, each change in the audit trail. action=add with code, name, type (Asset, Liability, Equity, Income, Expense, a section like Turnover, or Xero's types: Revenue, Overhead, Direct Costs, Current Asset, Fixed Asset, Bank, Current Liability) and tax_rate (optional: a code, a name, or words like '20% (VAT on Expenses)', 'No VAT'); action=change with code and name and/or type; action=archive or restore with code (an account with a balance or a role in the books, a bank or VAT account, is refused with the reason); action=default_tax with code and tax_rate (empty clears it); action=import with csv (the text of a CSV: Code, Name, Type, Tax rate; Xero's chart export as it is) or rows (a list of {code, name, type, tax_rate}): adds and updates, preview=true checks only. Tax rates: action=add_rate with base (the rate it copies: kind, VAT accounts, return boxes), name and rate (optional, only where the base has a rate); action=rename_rate with code and name; action=archive_rate or restore_rate with code (postings keep an archived rate). Round 832: action=change_code with code and new_code (the account keeps its name, type, tax rate, roles and history; its entry lines move to the new code and keep the old one in the record, the chain of entries verifies as before); action=merge with code and into (an account of the same type: every line, balance and role of code goes to into, code is kept on record as moved to into; change_code and merge are refused where a line is in a locked period or the boxes of a filed VAT return would change); action=parent with code and parent (a sub account under an account of the same type; the reports show it under the parent with the parent's total; empty parent ends it); action=lock or unlock with code (lock: hand journals, from this connection and from the web, refuse the account; invoices, bills, bank lines and payroll still post; off by default). Round 966: action=renumber with code and number (and name, optional): the number the account shows and is typed by; the code, every entry, the balance and the reports stay; refused where another account shows or is typed by that number; the answer's change_id undoes it with action=renumber_undo; action=numbers with mode short (3 to 4 digits, the default: an imported 7300.493 shows 493) or long (with the group: 7300.493).

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": {
      "action": "<action>"
    },
    "name": "accounts_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNo
baseNo
codeNo
intoNo
modeNo
nameNo
rateNo
rowsNo
typeNo
actionYes
numberNo
parentNo
companyNo
previewNo
new_codeNo
tax_rateNo
change_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare a destructive mutation, but the description adds substantial context beyond them: audit-trail writing, refusal rules around balances, roles, locked periods, filed VAT boxes, archive retention, and lock effects on journals versus invoices/bank lines/payroll. No contradiction with 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, and most content is relevant given the tool's complexity. However, it is a dense single-paragraph run-on with internal release notes like "round 626" and "Round 966," which hurts scannability.

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 17-parameter mutation tool with many actions, the description covers almost all action semantics, refusal conditions, and side effects; the output schema covers returns and annotations cover safety. The main gap is the unexplained `company` parameter.

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?

With 0% schema description coverage, the description carries nearly all parameter meaning: it explains action values and fields such as code, type, tax_rate, csv, rows, base, rate, new_code, into, parent, number, mode, change_id, and preview. The `company` parameter is left unexplained, so it falls short of full compensation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Change the chart of accounts or the tax rates," then enumerates concrete actions (add, change, archive, merge, parent, lock, renumber). The purpose is clear, but it does not explicitly distinguish this from the sibling `accounts` tool.

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?

Provides detailed action-by-action guidance, including refusals for change_code/merge in locked periods or filed VAT returns, lock posting behavior, and preview-only import checks. Strong operational guidance, but it never names an alternative tool or states when to use `accounts` instead.

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