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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_create_product

Create a single product in a connected KiotViet store after resolving referenced IDs and reading current data. Reconcile ambiguous failures before retrying to avoid duplicate live business records.

Instructions

Create one product in the connected store. Resolve referenced IDs and read current data first. This changes live business data; after an ambiguous failure, reconcile before creating again.

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

Input Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and openWorldHint=true, so the base safety profile is covered. The description adds meaningful context beyond that: it confirms live business data is mutated and warns to reconcile after an ambiguous failure before retrying, which directly explains the non-idempotent behavior.

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?

Three short sentences, no filler, and the mutation warning follows immediately after the purpose so the highest-risk information is front-loaded.

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 create mutation with no output schema, a deeply nested payload, and no annotations carrying safety detail, the description covers purpose, prerequisites, and failure-recovery behavior. It is slightly thin on what the response contains and on the variant/inventory implications of the payload, but nothing critical for invoking it correctly is missing.

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?

There is effectively one parameter (a nested data object) with 0% schema description coverage, but the JSON schema itself is highly expressive with required fields, min/max constraints, and named nested properties. The description's "Resolve referenced IDs" adds real meaning about the ID fields (categoryId, branchId, taxId, masterProductId) that the schema cannot convey alone, but it says nothing about other key fields such as hasVariants or inventories.

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?

"Create one product in the connected store" gives a specific verb and resource, and the singular "one product" plus store scoping distinguishes it from bulk or customer/invoice creation siblings. It does not explicitly contrast with kiotviet_update_product or kiotviet_get_product, so differentiation relies on the obvious verb difference.

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?

"Resolve referenced IDs and read current data first" is a genuine prerequisite that implies calling lookup tools before this one, which is useful. However, there is no explicit when-to-use/when-not-to-use statement and no routing to update_product for existing products.

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