Skip to main content
Glama

create_invoice

Add an invoice to Acumulus using customer details and line items; validate in test mode before saving.

Instructions

Add an invoice to Acumulus (invoices/invoice_add.php).

Args: customer: Customer-block fields. Common ones: type, contactid, companyname1, fullname, address1, postalcode, city, countrycode, vatnumber, email, overwriteifexists. lines: One dict per invoice line. Common fields: product, itemnumber, unitprice (excl. VAT, 4 decimals), vatrate (defaults to 21), quantity (defaults to 1), nature. invoice: Optional invoice-block fields: concept, number, vattype, issuedate, costcenter, accountnumber, paymentstatus, paymentdate, description, template, invoicenotes.

Set ACUMULUS_TESTMODE=1 to validate without persisting.

Input Schema

NameRequiredDescriptionDefault
linesYes
invoiceNo
customerYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that this is a mutating 'Add' operation and that ACUMULUS_TESTMODE=1 enables non-persisting validation, but it omits authentication needs, rate limits, and reversibility or failure behavior.

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

Conciseness4/5

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

The description is front-loaded with purpose and then structured under 'Args:' with parameter names. It is appropriately sized and each section earns its place, though it could be slightly tighter.

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 nested-object create tool with no annotations, the description covers the action, the main parameter shapes, and a dry-run option. An output schema exists, so return values need no explanation; remaining gaps like auth and sibling selection keep it from a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 compensate, and it does: it documents common customer fields, line-item fields, defaults like vatrate=21 and quantity=1, unitprice format, and optional invoice-block fields. This adds substantial meaning beyond the empty schema property definitions.

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?

The description gives a specific verb and resource: 'Add an invoice to Acumulus (invoices/invoice_add.php).' It is clearly distinct from generic siblings like whoami, acumulus_request, and list_picklist, even though it does not name alternatives.

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 only usage guidance is 'Set ACUMULUS_TESTMODE=1 to validate without persisting,' which is an operational option rather than a when-to-use statement. It does not explain when to prefer this tool over acumulus_request or describe prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools