Skip to main content
Glama

SmartBill MCP by usefulapi

Restore a cancelled invoice

smartbill_restore_invoice
Destructive

Restore an invoice that was cancelled, making it active again. PUT /invoice/restore.

Input Schema

NameRequiredDescriptionDefault
numberYesDocument number as text, e.g. "0025" (keep leading zeros).
series_nameYesDocument series name exactly as configured in SmartBill Cloud (smartbill_list_series lists them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations supply only destructiveHint=true, so the description carries the rest of the burden. It usefully declares the state transition (cancelled back to active) and the endpoint, but says nothing about permissions, idempotency, whether an already-active invoice errors, or what side effects reactivation has on reporting/numbering.

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?

Two short sentences, front-loaded with the action and its effect; nothing redundant. The trailing HTTP method/path adds little for an agent choosing a tool, which keeps it just short of a 5.

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?

For a two-parameter, schema-rich mutating tool with no output schema, the description is minimally sufficient: it identifies the resource and the state change. It omits failure modes and preconditions (non-cancelled invoice, missing series) that an agent would benefit from knowing before invoking.

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 two parameters (series_name, number) are fully documented in the schema. The description adds no extra syntax or format detail beyond what the schema already states, which is the expected baseline.

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?

Specific verb (restore) plus resource (invoice) and the resulting state change (cancelled -> active again), so the agent knows exactly what happens. It does not, however, mention the closely-named sibling smartbill_restore_estimate, so the discrimination from that tool is left to the name alone.

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?

Usage is implied by the precondition phrase 'invoice that was cancelled', which tells the agent this only applies to cancelled invoices. There is no explicit when-not guidance, no mention of restore_estimate as the alternative, and no statement about what happens if the invoice is already active.

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.