Skip to main content
Glama

Octobooks

Upload a document

upload_document

Upload a document as it was received: an invoice, a receipt, a statement. With no arguments it lists the ways in for this company, the one that needs nobody at the top (round 819). upload_link=true returns a link for 24 hours that a shell sends the files to (curl -F file=@invoice.pdf -F file=@invoice2.pdf and the link; the answer lists each document_id): up to 30 files, PDF, JPEG, PNG or XML, 15 MB each, each into Documents; the answer carries the curl line. A shell that reads the file but cannot reach app.octobooks.ai (a sandbox proxy refuses it) sends it in parts: file_sha256 (sha256sum of the file), parts, part (1 to parts), content_base64 the part's text (base64 -w0 FILE cut into pieces of 20,000 characters), part_sha256 (sha256sum of that piece) and the same filename and kind each time; a part that does not match its part_sha256 is refused at once, send that part again; with the last part the file is stored. source_url: an https share link of one file open to anyone with it (Google Drive, Dropbox or any public address): the server fetches it, 15 MB at most, public addresses only. kind: in (the default: a document received) or sales_invoice (an invoice the company issued itself, as a past invoice to book). content_base64: the original file bytes, base64 (the attachment itself, not a summary; at most 5 MB). filename: its name with its ending. For an email attachment give message_id (the mail system's own id), sender and received_at (ISO time). The file is stored write once and registered; the same bytes twice are stored once. Nothing is booked and nothing is read here: the server reads it later, and it then shows on the open list. Needs the right upload. No receipt (feature 534): when the supplier's document of a payment cannot be had, give own_receipt_bank_line (the bank line's id) and own_receipt_reason (what it was for, in the owner's words, 10 characters or more) in place of a file: Octobooks writes an own receipt (one page PDF; Eigenbeleg for DE and AT), files it on the line so it no longer counts as missing, and says if the booking reclaims VAT that needs the supplier's invoice. Needs the right to book; refused for money in and for a line that has its document.

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

Input Schema

NameRequiredDescriptionDefault
kindNoin
partNo
partsNo
senderNo
companyNo
filenameNo
message_idNo
source_urlNo
file_sha256No
part_sha256No
received_atNo
upload_linkNo
source_systemNogmail
content_base64No
own_receipt_reasonNo
own_receipt_bank_lineNo

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?

Well beyond the annotations, the description states that storage is write-once, that identical bytes are stored once, that nothing is booked or read at upload time, that the file surfaces later on the open list, and that the correct upload/book rights are required and refused for money-in lines or lines already documented. It also gives concrete limits (30 files, 15 MB, 5 MB base64, 24-hour link, 20,000-character parts) and retry semantics (a part failing part_sha256 is refused at once and must be resent). The only tension is that annotations say idempotentHint=false while the text claims duplicate bytes are stored once — a nuance about dedup versus re-registration rather than a flat contradiction.

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 first sentence front-loads well, but the rest is a run-on with embedded parentheticals, an inline curl example, and internal tracker noise such as "(round 819)" and "(feature 534)" that costs the reader without informing the agent. The information is dense and largely earns its place, yet per-mode structure would make it far easier to scan than the single flowing block.

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 16-parameter, four-mode upload tool with an output schema, the description covers capabilities, limits, permission requirements, error recovery, and the VAT consequence of an own receipt — enough for an agent to call it correctly. Residual gaps are the unexplained company and source_system parameters and the unclear interaction between the dedup claim and idempotentHint=false.

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 this text carries the whole burden, and it defines kind (in vs sales_invoice), upload_link, filename, content_base64 (original bytes, not a summary, 5 MB cap), file_sha256, parts/part/part_sha256 with chunking rules, source_url (https, public, 15 MB), message_id/sender/received_at for email attachments, and both own_receipt fields including the 10-character minimum. Two parameters, company and source_system, are never explained, and the mutual exclusivity of the upload modes is implied rather than stated, so it falls short of a 5.

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 gives a specific verb and resource ("Upload a document as it was received: an invoice, a receipt, a statement") and the body names both the write-only nature and the downstream reading step, so the purpose is unambiguous. It never contrasts itself with plausible siblings such as upload_bank_statement or document_drop, which keeps it at a 4 rather than 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?

Usage guidance is unusually explicit per mode: upload_link when a shell can reach app.octobooks.ai and post files, the file_sha256/parts path when a sandbox proxy refuses that host, source_url when only a public share link exists, and own_receipt_bank_line/own_receipt_reason when the supplier's document cannot be had. What is missing is tool-level guidance — nothing says when to pick this over a sibling upload or listing tool.

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