Skip to main content
Glama

Octobooks

Set the company's invoice details

invoice_details_set
Destructive

Set the company's invoice details as every invoice prints them: seller fields to write over what is there (name, line1, line2, postcode, city, country as two letters, vat_number, tax_number, company_number, register, seat (the registered seat, Sitz, that § 14 UGB names on an Austrian company's invoices), directors, contact_name, phone, email, website, footer; an empty text clears that field) and payment_terms_days. Bank details (bank_name, iban, bic, sort_code, account_number) read from the owner's own invoice are proposed: they print once the owner presses Save under Payment details on Settings, Invoices, where they stand filled in. The pay link is the owner's. For a new company that has no invoice details yet (a draft says so); the address comes from the owner or the public register. The organisation report shows what is set. design sets the look of every document (invoices, credit notes, quotes, confirmations, delivery notes): {layout: classic, modern or compact; accent: teal, navy, green, plum, charcoal, red or any colour as #rrggbb; size: small, normal or large; logo: true or false}; fields left out keep what holds. products_only: true switches on 'Invoice only products from the list' (every line of an invoice, quote or recurring invoice then names item_code), false off. numbers (round 621, the invoice number series of Settings): {action: list} every series with its last and next number; {action: next, series, next_no, year, reason}: where the old books left off (their last invoice was 42, next_no 43), once per series and year before an invoice of that year is issued here; {action: online, series, reason}: the series whose invoices carry the shop's order number (order 1042 is WEB-1042); round 650, as Settings, Invoice numbers: {action: add, series, kind invoice|credit_note} a new series (up to ten capital letters and digits, starting with a letter); {action: default, series} the series a new invoice or credit note takes unless another is picked; round 872: {action: format, series, prefix, year: true|false, digits} how the numbers read (INV-, no year, 3 digits: INV-007), set again while the series has numbered no invoice; {action: elsewhere, series, numbers: [7], reason} numbers issued outside Octobooks, kept as issued elsewhere (not as left out), the series running on after them; round 876: {action: remove, series} takes away a series that numbered nothing, {action: not_elsewhere, series, numbers} takes numbers off the issued elsewhere list. from_past=true reads the company's past invoices uploaded with kind sales_invoice: number format and next number, VAT status and its note, bank details (put to the owner for one tap) and each customer's past invoices, each with the arguments that book it as a past invoice. example_invoice {filename, content_base64}, {document_id} of an uploaded file or {source_url} of a public share link (round 809): the PDF of the last invoice the company sent; Octobooks reads its design (layout, colour, logo, fonts by name) and shows the owner, on the setup checklist, the next invoice in that design beside it with a row per change (Accept / Keep mine); it changes nothing by itself. mail_text (round 830, 842): {invoice, quote, statement, and the German ones invoice_de, quote_de, statement_de: text}, the default email text Send starts with (Settings, Email texts); placeholders {number}, {amount}, {due_date}, {date}, {customer}, {company}; for statements {month}, {closing}, {date}, {customer}, {company}; an empty text goes back to the standard one. The subject lines too: invoice_subject, quote_subject, invoice_subject_de, quote_subject_de, same placeholders. margin_threshold (round 914): a percent (margin after freight, 20 or 12.5), empty to switch it off: To do lists the products and customers below it. unit_price_decimals: 2, 3 or 4, the fewest decimals a unit price shows on invoices, quotes and orders (default 2); a unit price keeps up to 4 decimals as given. Nothing is issued or sent.

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

Input Schema

NameRequiredDescriptionDefault
designNo
reasonNo
sellerNo
companyNo
numbersNo
from_pastNo
mail_textNo
products_onlyNo
example_invoiceNo
idempotency_keyNo
margin_thresholdNo
payment_terms_daysNo
unit_price_decimalsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, but the description adds substantial context: empty text clears fields, omitted fields keep current values, bank details are only proposed until the owner saves them, example_invoice changes nothing automatically, and bank/mail/text settings have specific side effects. Authentication and rate-limit behavior are not covered, but the mutation semantics are unusually well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The core purpose is front-loaded, but the description then becomes a dense wall of text with nested parentheses, internal round references, and repeated sub-action details. It is far longer than needed and difficult to scan, which harms comprehension rather than helping the agent.

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 13-parameter settings mutation with an output schema, the description covers nearly all major behaviors and side effects, including the unusual proposal semantics for bank details and the non-issuance guarantee. It is let down only by unexplained top-level parameters such as company, reason, and idempotency_key.

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 prose carries the parameter burden and largely succeeds: it explains the seller fields, design keys and allowed values, numbers action variants, from_past, example_invoice, mail_text placeholders, margin_threshold, payment_terms_days, and unit_price_decimals. It does not explain the top-level company, reason, or idempotency_key parameters, leaving a noticeable gap for a 13-parameter tool.

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

Purpose5/5

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

Starts with a specific verb and resource, 'Set the company's invoice details as every invoice prints them,' and enumerates the exact fields and sub-actions covered. It also distinguishes itself from issuing/sending with the closing 'Nothing is issued or sent,' so an agent can tell it apart from invoice_issue and invoice_action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains behaviors in depth but never states when to use this tool instead of alternatives or when not to use it. 'The organisation report shows what is set' and 'For a new company that has no invoice details yet' imply context, but there is no explicit routing guidance.

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