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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_update_invoice

Destructive

Updates an existing invoice by reading the current record first, then applying only intended changes; replace line arrays carefully to preserve required lines.

Instructions

Update an existing invoice. Read its current record first; provide only intended changes. Line arrays can replace existing lines, so preserve required lines. Advanced documented API fields may be included in data.

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

Input Schema

NameRequiredDescriptionDefault
idYes
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds value beyond that by warning that line arrays replace existing lines and that omitted required lines must be preserved — a concrete data-loss hazard an agent would otherwise not anticipate.

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?

Three short sentences, front-loaded with the action and then the cautions in order of risk. The final sentence's "advanced documented API fields" is slightly vague about where that documentation lives, but nothing is wasted.

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, non-idempotent mutation with a large nested payload and no output schema, the description covers the essential call pattern: read first, send only changes, don't drop required lines. It omits any indication of what the call returns or whether recalculated totals/purchase dates have side effects, which is a modest remaining gap.

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?

Schema coverage is 0% over a deep nested object, so the description must carry weight: it explains that `data` accepts only changed fields, that nested line arrays are replacing rather than merging, and that undocumented advanced API fields may be passed through. It does not explain the enum on `method` or required sub-fields of deliveryDetail, so field-level semantics remain partially unexplained.

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 opens with a specific verb and resource ("Update an existing invoice"), which cleanly separates it from the create/delete/get invoice siblings even though none are named. It is unambiguous about the operation, but stops short of naming the read sibling it directs the agent to.

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?

"Read its current record first" establishes a prerequisite workflow step, and "provide only intended changes" signals partial-update semantics rather than full replacement. There is no explicit when-not guidance or pointer to a concrete alternative tool name, which keeps it below a 5.

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