Skip to main content
Glama

Octobooks

Save a recurring invoice

recurring_invoice
Destructive

Save or end a recurring invoice: a template with a rhythm. A job makes an ordinary invoice draft when one is due and asks for its issue at once (submit, default true while the owner's switch for the AI's issue of invoices is on): under My AI decides it is issued then, otherwise it waits on the approval page. submit=false keeps the drafts as drafts. what=save: name (left out: the customer and the rhythm), customer (code), rhythm (weekly, monthly, quarterly, yearly), start_date (the day of the opening draft, left out: today), lines (item_code and quantity alone take the product's name, price, VAT code and account), optional end_date, notes, buyer_reference, order_reference, language, series; '{period}' in a line description or the notes becomes the period of each draft; the same idempotency_key again replaces an active template of this connection; recurring_id with the fields edits one (start_date is then the next invoice date; a new rhythm or next date of one that made drafts carries on as a new template). what=end: end one, with reason. what=pause and what=resume (round 830): recurring_id; a paused one makes no draft, and resumed it goes on from the next date of its rhythm from today. email=true on save, or what=email with recurring_id and email true or false (round 842): each invoice it makes is emailed to the customer as it is issued. Terms (round 877), on save or alone with what=terms and recurring_id: billing advance (dated the opening day of its period) or arrears (made and dated on the last day, for the period that ended); pro_rata_first true charges the opening period from start_date to the next calendar month, quarter, year or week for its days only; price_changes [{"from": "2027-01-01", "unit_price": "120.00", "line": 1}] (line left out: every line) gives a period that starts on or after the date the new price; notice_months the notice period, counted in notice_unit (days, weeks or months; months when left out); an end_date inside a period makes the last draft pro rata to that day. what=notice with recurring_id and notice_on (left out: today): the contract ends on the last day of the earliest period that ends after the notice period. Writes only; reading is a separate tool. Money going out regularly (rent, salaries, subscriptions, loans) is a rule too: what=payment adds one or changes one the books learned (key from the cash forecast, field regular): name, amount, currency, rhythm (weekly, monthly, quarterly, yearly, once), start_date as its next day, end_date; every field may stay empty, one left out keeps what it had. what=payment_stop with key takes one off. Nothing is booked.

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

Input Schema

NameRequiredDescriptionDefault
keyNo
nameNo
whatNosave
emailNo
linesNo
notesNo
amountNo
reasonNo
rhythmNo
seriesNo
submitNo
billingNo
companyNo
currencyNo
customerNo
end_dateNo
languageNo
notice_onNo
start_dateNo
notice_unitNo
recurring_idNo
notice_monthsNo
price_changesNo
pro_rata_firstNo
buyer_referenceNo
idempotency_keyNo
order_referenceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=true), which only say this mutates and can destroy: it discloses submit default true with the AI-issue switch gating, that approve-page waiting happens when submit is false, that drafts stay drafts, that reusing an idempotency_key replaces an active template, that a changed rhythm starts a new template, that pro-rata behaviour applies to end_date inside a period, and that 'Nothing is booked'. These are exactly the side-effect and reversibility details an agent needs before calling a destructive write.

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?

A single wall of run-on sentences with semicolon-chained clauses, so the critical save/end routing is buried behind parenthetical changelog noise ('round 830', 'round 842', 'round 877') that costs tokens and adds nothing an agent can act on. Much of the content is necessary, but the packaging is poor: no mode headings, no parameter grouping, and mixed concerns (invoices, email, terms, notice, payment rules) interleaved without structure.

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 27-parameter write tool with an output schema (so return values need not be explained), this is close to complete: it covers all modes, defaults, editing versus creating, pricing terms, pro-rata, and payment rules. The remaining incompleteness is the unexplained 'company' parameter and the loose binding between prose concepts and parameter names.

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 27 parameters and 0% schema description coverage, the description carries the whole load, and it does most of it: it defines name, customer (code), rhythm values, start_date semantics (opening draft day, or next invoice date on edit), lines (item_code/quantity inheriting price, VAT and account), end_date, notes, buyer_reference, order_reference, language, series, submit, email, recurring_id, reason, idempotency_key, notice_on/notice_months/notice_unit, pro_rata_first and the price_changes object shape. Gaps remain: 'company' is never explained, 'billing' is only inferable from the words 'advance ... or arrears', and field names are often mapped to concepts implicitly 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?

States concrete verbs and resources: save or end a recurring invoice, and defines a job as a template that produces an ordinary invoice draft. It also names the excluded scope ('Writes only; reading is a separate tool'), which points away from recurring_invoice_list. The clarity is diluted because the same tool also silently covers payment rules ('Money going out regularly ... is a rule too'), so the name recurring_invoice under-describes half the surface.

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?

Gives explicit when-to-use routing per mode: what=save for creating/editing a template, what=end with reason, what=pause/resume, what=email, what=terms, what=notice, what=payment/payment_stop, plus 'reading is a separate tool' as the alternative. What it lacks is any pointer to the ordinary-invoice siblings (invoice_draft/invoice_issue) for one-off invoices, so the boundary between this and normal invoicing is only implied by the word 'ordinary invoice draft'.

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