Skip to main content
Glama

invoice_from_offer

Destructive

Bill an accepted offer. Required: offer_id. The lines are COPIED, so a later edit of the offer cannot change what was billed, and the offer is marked accepted. An offer that already has an invoice refuses unless force=true. Optional: title, intro, due_days, payment_note.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "offer_id": "<offer_id>"
    },
    "name": "invoice_from_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNotrue bills the offer even if it already has an invoice
introNoIntroductory text printed above the positions
titleNoTitle of the invoice
due_daysNoPayment term in days
offer_idYesID of the offer
payment_noteNoPayment information block (e.g. IBAN) printed on the invoice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / due_days / description
      Added value: +"Payment term in days"
    • addedInput schema / properties / force / description
      Added value: +"true bills the offer even if it already has an invoice"
    • addedInput schema / properties / intro / description
      Added value: +"Introductory text printed above the positions"
    • addedInput schema / properties / offer_id / description
      Added value: +"ID of the offer"
    • addedInput schema / properties / payment_note / description
      Added value: +"Payment information block (e.g. IBAN) printed on the invoice"
    • addedInput schema / properties / title / description
      Added value: +"Title of the invoice"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing line-item snapshot semantics (lines are COPIED, later offer edits cannot alter the bill), a side effect on the source entity (the offer is marked accepted), and the duplicate-invoice refusal plus the force override. These are exactly the mutation details an agent needs and none of them are derivable from the readOnlyHint=false / destructiveHint=true / idempotentHint=false flags.

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?

Front-loaded with the action and the required parameter, then the important behavioral caveats, which is the right ordering. The trailing list of optional parameters largely duplicates the schema and could be dropped without loss.

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?

Covers inputs, side effects, and the failure/override path, which is strong for a mutating tool. With no output schema, however, the description never indicates what the call returns (presumably a created invoice, but no identifiers or shape are stated), leaving one real gap for a billable-write operation.

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 100%, so the schema already defines all six parameters including force. The description restates the optional field names (title, intro, due_days, payment_note) and repeats the force semantics that the schema already documents, adding essentially no new meaning; baseline 3 applies.

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?

Opens with a specific verb+resource ('Bill an accepted offer'), which makes the operation unmistakable and clearly distinct from generic invoice-creation siblings like create_abaninja_invoice or draft_invoice. It stops short of naming any alternative tool or stating the boundary explicitly, so sibling differentiation is implied rather than stated.

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 a clear precondition and a refusal condition ('An offer that already has an invoice refuses unless force=true'), which tells the agent when the call will fail and how to override. It does not name an alternative tool for the case where a non-offer-based invoice is wanted, so there is no explicit when-to-use-instead routing.

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.