Skip to main content
Glama

InvoiceParser Pro

Remove an invoice line

remove_invoice_line_item
DestructiveIdempotent

Apply only the exact change returned by preview_remove_invoice_line_item, after the user confirms that preview. Accepts its confirmation_token only; changed or expired records require a new preview. Prepare removal of an exact previously read line item. Requires confirmation and preserves correction/audit history.

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": {
      "input": "<input>"
    },
    "name": "remove_invoice_line_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false. The description adds the required confirmation flow, exact-token constraint, expiry behavior, and preservation of correction/audit history. It does not spell out effects on invoice totals or finality, but the critical behavioral constraints are present.

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 the prerequisite preview and confirmation condition. There is minor redundancy — 'Requires confirmation' repeats the opening sentence — and the phrase 'Prepare removal of an exact previously read line item' is slightly awkward, but overall it is compact and not bloated.

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 destructive, single-parameter confirmation tool with no output schema, the description supplies the critical prerequisite, token lifecycle, and audit-preservation behavior. It could clarify finality or response behavior, but enough is present for an agent to invoke it correctly.

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

Parameters4/5

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

There is one parameter, confirmation_token. The description explains that it must be the exact token returned by the preview, that only that token is accepted, and that changed/expired records require a fresh preview. This meaningfully supplements the schema's token description despite the reported low schema coverage.

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 ties the tool to a specific predecessor, preview_remove_invoice_line_item, and says it applies that previewed change to a previously read line item. However, it never plainly states 'removes an invoice line item,' and the phrase 'Prepare removal' could briefly imply a preparatory step rather than the final destructive mutation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly restricts use to after preview_remove_invoice_line_item and user confirmation, states that only the confirmation_token is accepted, and says changed or expired records require a new preview. This gives clear when-to-use and when-not-to-use guidance plus the required alternative.

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