Skip to main content
Glama

Remove invoice item

remove_invoice_item
DestructiveIdempotent

Removes an item line from 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_id": "<item_id>"
    },
    "name": "remove_invoice_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYesThe id of the item line, from the items of the document.
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 flag destructiveHint=true and idempotentHint=true; the description adds genuinely new behavioral context by stating the operation is only valid on drafts/open proformas and that issued documents are immutable. It does not say what happens to invoice totals after removal or whether the call is reversible, which keeps it below 5.

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, front-loaded with the action and scope, followed by the mutation consequence. No filler and nothing redundant with the annotations.

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 three-param destructive line-item removal with fully documented schema and no output schema, the description covers action, target document states, and the immutability boundary. It leaves the post-removal effect (recalculated totals, response content) unstated, which is a minor gap.

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%, with each of the three UUIDs documented (including the hint that item_id comes from the document's items). The description adds no parameter-level meaning beyond the schema, so the 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?

The description gives a specific verb and resource ('Removes an item line') and narrows scope to 'an invoice draft or an open proforma', which separates it from sibling mutations such as add_invoice_item and update_invoice_item. It does not name an alternative sibling explicitly, so it stops short of a 5.

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?

'Removes an item line from an invoice draft or an open proforma' and 'Issued documents can't be changed' define both the allowed and disallowed state before invocation. No alternative tool is named for the case where the agent actually wants to modify rather than delete, so guidance is clear but not complete 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.

Resources