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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_create_purchase_order

Create a single purchase order in the connected store, resolving referenced IDs and reading current data first; reconcile after an ambiguous failure before retrying.

Instructions

Create one purchase order 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_purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 safety profile is partly covered. The description still adds meaningful context beyond them: it warns that this mutates live business data and, critically for a non-idempotent create, tells the agent to reconcile after an ambiguous failure instead of blindly retrying. It does not discuss required permissions or the return payload.

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, ordered from action to precondition to risk, with nothing redundant. The mutation warning is front-loaded in the same breath as the action rather than buried.

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 mutation tool with a large nested schema and no output schema, the description covers the two highest-risk facts (live-data mutation, non-idempotency) and the lookup precondition. It still leaves the nested payload semantics and the resulting order identity unaddressed, which matters given 0% schema description coverage and no output schema.

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% across a deeply nested object (supplier, purchaseOrderDetails, tax references), so the description carries real weight here. 'Resolve referenced IDs and read current data first' usefully flags that branchId, accountId, supplier code, productCode, and taxId are foreign references requiring lookup, but no field-level semantics are added beyond that single hint.

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 ('Create one purchase order') plus scope ('in the connected store'), which is clearly distinct from read/update/delete siblings. However, it never distinguishes itself from kiotviet_create_order, the potentially confusable sibling, so the agent must infer the purchase-vs-sales distinction from 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?

Gives genuine pre-call guidance: 'Resolve referenced IDs and read current data first,' which implies the get_* siblings are prerequisites. It also gives a post-failure rule ('reconcile before creating again') rather than retrying. What it omits is any when-not guidance or explicit naming of the lookup alternatives, so usage is implied rather than fully specified.

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