Skip to main content
Glama

Octobooks

Invoice builder

invoice_builder
Read-onlyIdempotent

One invoice draft while it is being written, read only: the total, the lines, the VAT, the checks before issue (the e-invoice validation and what the seller's country asks) and the hours check. invoice is an id or a number (the newest draft when left out). hours: hours found elsewhere (calendar, mail, files) for a draft that bills hours, [{source, hours}] (source: a few words such as 'calendar, 3 meetings'); Octobooks compares them with the hours billed and keeps none of it. It takes the fields of the invoice, not the content of a mail or a message. The buyer is 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": "invoice_builder"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
companyNo
invoiceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is largely pre-supplied and the description earns credit mainly for the non-obvious disclosure that supplied hours are compared but 'keeps none of it' and that the buyer sits under 'untrusted'. Those are genuinely useful behavioral facts, but the description otherwise restates read-only semantics the annotations already carry.

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?

It is front-loaded with the read-only scope and the returned views, but the prose is loose and parenthetical-heavy, with multiple ideas chained into single sentences ('the checks before issue (the e-invoice validation and what the seller's country asks)'). The information density is high and little is pure waste, but tighter structure would make the parameter semantics easier to scan.

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?

An output schema exists, so return values need not be re-explained, and the description covers scope, the two substantive parameters, the safety note about untrusted buyer content, and a pointer that the same views appear in the panel. Coverage is sufficient to invoke correctly; only the company parameter and sibling routing are left thin.

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 coverage is 0%, so the description must carry the parameters and it largely does: invoice is defined as an id or number with a default, and hours is fully specified down to the object shape [{source, hours}] and example values, plus the non-persistence caveat. Only 'company' goes unexplained, which is the one real gap in an otherwise strong compensation.

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 gives a concrete resource and scope: 'One invoice draft while it is being written, read only', then enumerates what comes back (total, lines, VAT, pre-issue checks including e-invoice validation and the hours check). It also draws a boundary ('takes the fields of the invoice, not the content of a mail or a message'), which separates it from mail/message readers, though it never names the closest sibling tools (invoice_draft, invoice_preview, invoice_details_set) that an agent must choose between.

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

Usage Guidelines3/5

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

It covers defaults for the invoice argument ('the newest draft when left out') and gives real guidance for hours ('for a draft that bills hours'), which tells the agent when to populate that field. What it never states is when to call this versus building, previewing, or setting details on an invoice, so the sibling choice is left to inference.

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