Skip to main content
Glama

Octobooks

Post, draft, repeat or import journals

manual_journal
Destructive

Manual journals as in Xero (round 599). action=post proposes journal (debits equal credits, tax included as amounts_are says); its release follows the owner's switches. action=draft saves it as a draft (out of balance allowed; draft_id changes one; nothing is booked); action=post with draft_id posts a draft. action=template saves it under name (template_id changes one); action=post or draft with template_id and no lines uses that template (Use template): its journal dated journal.date or today, journal.narration, reference and reverse_on taking the place of the template's; action=repeat saves a repeating journal: name, journal (no date), every (1 to 99), unit (week, month, quarter, year), start (the date it begins), end_date or times, post_mode (post or draft): on each date the journal dated that day is posted or saved as a draft (repeating_id changes one); action=pause, resume or delete with repeating_id, template_id or draft_id. action=import proposes many journals in one go (pre-booked journals): rows [{date, narration, reference, account, description, tax_rate, debit, credit, cost_centre, project}], or csv (the text of a CSV file), or document_id of an uploaded CSV or Excel file; rows with the same reference are one journal; with preview=true (the default) nothing is written and every row and journal says what is wrong; preview=false puts all forward as one proposal (as_drafts=true saves them as drafts), refused whole while anything is wrong. action=attach links document_id to the posted journal_id. idempotency_key (with action=post): the same key with another journal is refused; the same journal is booked once. journal: {date (YYYY-MM-DD), narration, reference, currency (ISO code like EUR; left out: the company's own; converted at the day's ECB rate when booked), amounts_are (inclusive, the default: amounts with a tax rate include the tax; or exclusive), reverse_on (an auto reversing date), narration_to_lines (true: a line without a description carries the narration), stocktake (true: the journal is the stock count of its date, a line on a stock account), lines: [{account (code or exact name), description, tax_rate (code or name; left out: No VAT, whatever the account's default rate; a rate adds or holds its VAT line), debit, credit, cost_centre, project}], document_ids (uploaded files, attached to the entry), no_receipt (where no receipt exists: the reason, kept as its own document)}

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": "manual_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNo
nameNo
rowsNo
unitNo
everyNo
startNo
timesNo
actionYes
reasonNo
companyNo
journalNo
mappingNo
previewNo
draft_idNo
end_dateNo
as_draftsNo
post_modeNo
journal_idNo
amounts_areNo
document_idNo
template_idNo
repeating_idNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Idempotency Key"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already mark this as a non-read-only, destructive tool, but the description goes far beyond them: it explains that post proposes a journal whose release follows the owner's switches, that draft allows out-of-balance and nothing is booked, that import with preview=true writes nothing and preview=false refuses the whole batch if anything is wrong, and that idempotency_key ensures the same journal is booked once. It also covers the delete action via pause/resume/delete with repeating_id, template_id or draft_id.

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 description is a single dense paragraph with no line breaks or grouping, making it hard to scan despite the amount of useful information. It is appropriately comprehensive for a 23-parameter multi-action tool, but the run-on structure reduces readability.

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 complex tool with 23 parameters, multiple actions, and an output schema, the description covers nearly all actions and parameter meanings. It does not need to explain return values because an output schema exists, but it omits company, mapping, and reason parameters and does not mention authorization or permission requirements.

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 description coverage is 0%, so the description must carry the load. It defines most parameters in detail: action values, journal fields (date, narration, reference, currency, amounts_are, reverse_on, narration_to_lines, stocktake, lines with account, tax_rate, debit, credit, cost_centre, project, document_ids, no_receipt), rows/csv/document_id, preview, as_drafts, idempotency_key, draft_id, template_id, repeating_id, name, every, unit, start, end_date, times, post_mode, journal_id. It leaves company, mapping, and reason unexplained, which is a gap at 0% coverage.

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?

The description opens with 'Manual journals as in Xero' and enumerates the specific actions (post, draft, template, repeat, import, attach), so the verb and resource are clear. It does not explicitly differentiate this tool from the sibling manual_journal_list, which keeps it from a 5.

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?

Each action is given a clear behavioral condition: action=post proposes a journal, action=draft saves a draft, action=template saves under a name, action=repeat creates a repeating journal, action=import proposes many journals. The guidance is implicit in the action descriptions rather than framed as 'use this when...', and no sibling alternative is named.

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