Skip to main content
Glama

Octobooks

Work on a document

document_work

The work on documents and bank lines after they came in. action=check (document_id): the completeness bar, six points (supplier or customer, date, amounts, VAT, account, payment matched), each done or what is missing and where it is fixed. action=fill (document_id, fields: supplier_name, number, issue_date, currency, net, vat_total, gross): the values the owner gave, as the person's reading. action=payments (document_id): bank lines that may pay it; action=match (document_id, bank_line_id). action=comment (on: document or bank_line, id, text; @handle names a person, who gets a mail; task=true with assignee, due YYYY-MM-DD, remind_at 'YYYY-MM-DD HH:MM' UTC makes it a task on To do), action=thread (on, id), action=tasks (the open tasks), action=task_done (task_id; reopen=true takes it back), action=people (who may be named). action=split_proposal (document_id): where the invoices of one PDF start; action=split (document_id, starts: [1, 3]): one document per invoice. action=statement_check (document_id, supplier optional): a supplier statement or dunning letter against the supplier's bills: missing in the books (record or fetch them), not on the statement, amounts that differ, paid but still listed; action=statement (document_id) the last check; action=fetch_mail (document_id) the mail asking the supplier for the missing invoices (from the owner's mailbox, the receipts address in cc). action=cloud: the cloud folders connected for the company and the providers this server connects (none while none is switched on); action=cloud_pull (provider): read the picked folder now. Comments, documents and statements written by others stand under 'untrusted'.

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

Input Schema

NameRequiredDescriptionDefault
idNo
onNo
dueNo
taskNo
textNo
actionYes
fieldsNo
reopenNo
startsNo
companyNo
task_idNo
assigneeNo
providerNo
supplierNo
remind_atNo
document_idNo
bank_line_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (which only say this is not read-only, not destructive, not idempotent), the description discloses real side effects: comment with @handle mails a person, fetch_mail sends a request from the owner's mailbox with receipts in cc, split turns one PDF into one document per invoice, and content authored by others arrives under 'untrusted'. It stops short of saying whether split consumes the original PDF, whether fill overwrites prior values, or whether any of these writes can be undone, and the outbound mail is a mild tension with openWorldHint=false.

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?

Almost every clause carries information, but it is delivered as one undifferentiated paragraph of telegraphic fragments, so an agent must parse linearly to find the action it needs. Structure by action (or at least line breaks) would cost nothing in length and greatly improve scanability, and asymmetric asides like '(none while none is switched on)' add noise.

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 sixteen-mode dispatch tool with an output schema and no schema-level parameter docs, this is a substantial and largely complete brief: it covers the checkpoints behind 'check', the trust boundary, the task lifecycle, and the cloud actions. Left open are the `company` parameter, the state of the source document after `split`, and how an agent obtains valid document or bank_line ids to feed the actions.

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 seventeen parameters and 0% schema description coverage, the description carries almost the whole burden and mostly does: it names the `fields` sub-keys (supplier_name, number, issue_date, currency, net, vat_total, gross), fixes formats for `due` (YYYY-MM-DD) and `remind_at` (YYYY-MM-DD HH:MM UTC), and shows `starts` as [1, 3]. The noticeable gap is `company`, which appears in no action, and the `id` versus `document_id` distinction is only implied by 'on: document or bank_line' rather than stated.

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 opening sentence identifies the resource (documents and bank lines 'after they came in') and the sixteen action names spell out what each mode does (check completeness, fill values, match payments, split a PDF, reconcile a statement, send a mail). The verb 'work on' is vague on its own and the description never contrasts itself with siblings such as document_drop, sales_document or bank_books, so an agent must infer the boundary.

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 paired with the trigger that selects it: 'action=check (document_id)' for the completeness bar, 'action=payments' for candidate bank lines, 'action=statement_check (document_id, supplier optional)' for a dunning letter against the supplier's bills, plus inline decision hints like 'missing in the books (record or fetch them)'. There are no explicit when-not rules and no named alternatives, which keeps it short of 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