Skip to main content
Glama

recover_sales_invoice

Restore a cancelled sales invoice to active status. Use this to undo cancellation by referencing the invoice ID, making the invoice valid again.

Instructions

Recover (un-cancel) a cancelled sales invoice.

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": {
      "id": "<id>"
    },
    "name": "recover_sales_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSales invoice ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: it does not say what state is restored, whether previously cancelled line items/payments come back, what permissions are needed, whether the operation fails on a non-cancelled invoice, or whether it is reversible. Only the core mutation intent is conveyed.

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?

One short sentence, front-loaded with the verb and resource, with the parenthetical clarification placed where it removes ambiguity. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (one required parameter fully documented by the schema), but it is a state-changing operation with no annotations and no output schema, leaving the agent without any information about preconditions or the result of the call.

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 coverage is 100% with a single required 'id' documented as 'Sales invoice ID', so the description is not required to compensate. It adds no extra meaning such as accepted ID formats or whether IDs from other invoice types work, so the baseline 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?

States a specific verb (recover) and resource (sales invoice) and pins the scope with '(un-cancel)' and 'cancelled', which makes the inverse relationship to cancel_sales_invoice obvious. It does not explicitly name the sibling, but the operation is unambiguous.

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

Usage Guidelines3/5

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

The word 'cancelled' implies the invoice must already be in a cancelled state, so usage is inferable. There is no explicit when-to-use guidance, no precondition statement, and no mention of the archive_sales_invoice alternative for the delete-style case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.