Skip to main content
Glama

Add an invoice or bill

add_ledger_entry

Use this when the user wants to record an invoice, bill or receipt in their Xenition ledger — vendor, amount, due date, optionally already paid. Returns the ledger's invoices. Do not use to pay, send or email an invoice; Xenition has no payment or messaging channel.

Input Schema

NameRequiredDescriptionDefault
kindNoinvoice | receipt | credit_note (default invoice)
amountYesthe invoice total
vendorYesthe vendor / who the invoice is from
dueDateNoYYYY-MM-DD
currencyNocurrency code, default USD
markPaidNoalso mark it paid now
invoiceNumberNo

Output Schema

NameRequiredDescriptionDefault
countYes
emptyNo
itemsYes
titleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the full safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the description's marginal burden is low. It still adds real context beyond the annotations: the capability boundary that Xenition has no payment or messaging channel, which prevents an agent from attempting a send. It does not address duplicate-entry behavior on repeat calls, though idempotentHint=false already signals that.

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

Conciseness5/5

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

Two sentences, zero waste. The positive trigger and the field summary come first, and the exclusion is placed last where it functions as a guard rather than burying the primary purpose.

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 mutation tool with full annotation coverage, a rich schema and an output schema, the description supplies what structured data cannot: the use trigger and the capability boundary. The only unaddressed point is duplicate handling on repeated calls, which is a minor omission given idempotentHint=false.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 86%, so the schema already documents kind, amount, vendor, dueDate, currency, markPaid and invoiceNumber. The description's 'optionally already paid' is a useful gloss on markPaid, but it adds no syntax, format, or default details beyond what the schema states. Baseline 3 is appropriate when the schema carries the load.

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?

States a specific verb (record) plus the resource (invoice/bill/receipt in the Xenition ledger) and enumerates the key fields (vendor, amount, due date, paid state). It also explicitly carves out the adjacent-but-different operations (pay, send, email), which lets an agent separate this from siblings like mark_paid without opening either schema.

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?

The trigger is explicit ('Use this when the user wants to record an invoice, bill or receipt'), and it adds a genuine exclusion ('Do not use to pay, send or email an invoice'). What it lacks is a named alternative — mark_paid and query_ledger are never referenced by name, so the routing is implied rather than spelled out.

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.