Skip to main content
Glama
@salbot/kiotviet-mcp-server

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_delete_invoice

Destructive

Deletes an invoice and requires an explicit choice to cancel or retain attached payments, updating sales and accounting records accordingly.

Instructions

Delete an invoice. Explicitly choose whether to cancel its attached payments; this changes sales and accounting records.

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>",
      "isVoidPayment": "<isVoidPayment>"
    },
    "name": "kiotviet_delete_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
isVoidPaymentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered structurally. The description adds genuinely new context that the isVoidPayment choice cascades into sales and accounting records, which annotations cannot convey. It still omits reversibility, required auth, and what happens to attached payments when isVoidPayment is false, so the added value is real but partial.

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 with no filler, and the core action is front-loaded ahead of the consequential option. The trailing clause is dense but informative, not redundant.

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 destructive, non-idempotent delete with no output schema, the definition is minimal-but-workable: annotations supply the safety profile and the description flags the accounting side effect. It still leaves open whether the delete is permanent, what errors occur when payments are attached, and whether the invoice must be in a particular state first.

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 0%, so the description carries the burden for both parameters. It explains isVoidPayment in meaningful terms (cancel attached payments, affecting sales and accounting records), which is a genuine improvement over a bare boolean, but it says nothing about id's format or validity beyond the schema's integer bounds.

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 ("Delete an invoice"), which distinguishes it from the create/get/update invoice siblings by name alone. It does not, however, contrast itself against other deletion tools or clarify scope (e.g. whether it removes an invoice permanently vs. voiding it), so it stops short of full differentiation.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisites (permissions, invoice state such as unpaid or already-cancelled), and no pointer to alternatives. The only usage-adjacent content is the isVoidPayment choice, which is parameter behavior rather than invocation guidance.

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

Deploy Server

Other Tools