Skip to main content
Glama

Octobooks

Invoice and receipt check

receipt_check
Read-onlyIdempotent

The invoice and receipt check of a month: the proof that every payment is backed by a document. month is YYYY-MM (the newest month with bank lines when left out). Returns one figure ("412 of 415 have their document"), and per bank line a colour with the sentence that says why (green: booked with its document; amber: something is yet to do; red: nobody has said what it is), its documents with what was read from them and whether the total is the amount the bank moved, and the VAT of its entry by tax code. colour narrows the rows to green, amber or red. For the question whether all receipts are there and whether the books can be trusted. It reads only. A payment whose document cannot be had can be given an own receipt (own_receipt_bank_line on upload). Names and texts of others are under 'untrusted'. The same views are in the Octobooks panel beside the chat.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "receipt_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
monthNo
colourNo
companyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered; the description adds the default month scoping (newest month with bank lines), the meaning of each colour, the pairing of colour with an explanatory sentence, VAT-by-tax-code detail, and the 'untrusted' framing for third-party names and texts. That is real behavioral context beyond the annotations, though the return-shape detail partly overlaps the output schema that already exists.

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 and the when-to-use sentence are front-loaded, which is right, but the body is a dense run-on with stacked parentheses ('one figure (...)', colour semantics in brackets) that takes effort to parse. Little is pure waste, yet the parenthetical nesting costs 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 read-only reporting tool with an output schema and no required parameters, the description covers what the tool answers, how months default, how to narrow rows, and what the colours mean. The remaining gap is the undocumented limit and company parameters and no statement of what company scoping does.

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 description coverage is 0%, so the description must carry parameter meaning. It documents month as YYYY-MM with left-out defaulting to the newest month with bank lines, and colour as a green/amber/red row filter, but says nothing about limit or company, leaving half of the four parameters undocumented in either place.

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 definition gives a concrete verb and resource: a per-month check that every payment is backed by a document. It explains the answer is a coverage figure plus per-bank-line colour verdicts, so an agent can tell it apart from siblings like bank_books or invoice_details_set. It stops short of naming a sibling it replaces, so it is clear but not sibling-differentiated.

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?

'For the question whether all receipts are there and whether the books can be trusted' states the decision context plainly, and the note that a missing document can be replaced via own_receipt_bank_line on upload gives the follow-up path when the check comes back red. There is no explicit when-not to use it or named alternative tool, so it falls 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