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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_update_product

Destructive

Updates an existing KiotViet product by ID, applying only the intended field changes; read the current record first to preserve required lines and avoid overwriting arrays.

Instructions

Update an existing product. 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_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 description only needs to add incrementally. It does add real warning context beyond the annotations: read-before-write, partial-payload semantics, and the specific danger that line arrays replace rather than merge, which is exactly the kind of data-loss detail annotations cannot convey. It omits permission requirements and the treatment of unspecified fields, keeping it from a 5.

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?

Four short sentences, front-loaded with the operation and immediately followed by the read-first prerequisite and the destructive array caveat. Nothing is wasted, though "Advanced documented API fields may be included in data" is loosely worded and could be tightened.

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 no output schema and a deeply nested payload, the description covers the essentials an agent needs before calling: read first, send a sparse patch, and beware array replacement. Remaining gaps, such as how variants and unspecified fields are handled, are narrower concerns rather than blockers.

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?

The `data` object has roughly 28 nested properties and 0% schema description coverage, so the description must carry most of the semantic burden. It contributes two genuinely useful points: only intended changes need to be supplied, and extra documented API fields are permitted inside `data`. However, it names no individual field and never explains what `id` refers to, leaving the bulk of a complex nested schema undocumented.

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?

"Update an existing product" states a specific verb and resource, which cleanly separates it from the create/delete product siblings in the catalog. It does not explicitly name those siblings or restate scope conditions, so it stops short of a 5.

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" gives an explicit prerequisite workflow that points the agent at the get-product sibling before mutating. "Provide only intended changes" sets the expected partial-update usage. No when-not-to-use guidance or named alternative is given, so it is not 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