Skip to main content
Glama

Add invoice item

add_invoice_item

Adds an item line at the end of an invoice draft or an open proforma. Nothing is issued. Issued documents can't be changed.

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": {
      "company_id": "<company_id>",
      "invoice_id": "<invoice_id>",
      "item": "<item>"
    },
    "name": "add_invoice_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesThe new item line.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the document, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description adds real value by clarifying 'Nothing is issued' (the document's status is unaffected) and by stating the precondition that issued documents are immutable. It does not address what happens on repeated calls or permission requirements, but with annotation coverage the bar is lower.

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?

Three short sentences, each carrying distinct information: the action, the effect on document status, and the precondition. The scope constraint is front-loaded with no filler.

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 three required parameters, full schema coverage, and annotations covering safety and idempotency, the description supplies the key precondition and side-effect clarification. It omits what the call returns (e.g., the updated item or totals), but no output schema exists to compensate.

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 nested item fields (price, quantity, VAT rate/category, units) are already fully documented in the schema. The description adds only the ordering semantics of appending at the end, which is marginal beyond the structured data.

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 a specific verb and resource ('Adds an item line') plus the precise target scope ('end of an invoice draft or an open proforma'). 'At the end' implicitly distinguishes append from modifying an existing line, but no sibling such as update_invoice_item is named, so differentiation is inferential rather than explicit.

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 when-not condition ('Issued documents can't be changed') and clarifies the state the document must be in (draft or open proforma). It does not name the alternative tool for editing an existing line, so the routing to update_invoice_item 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