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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_create_invoice

Create a single invoice in a connected KiotViet store by resolving referenced IDs and reading current data first; verify live business data after any ambiguous failure before retrying.

Instructions

Create one invoice 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_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false. The description's genuine addition is the retry hazard — an ambiguous failure must be reconciled before creating again — which converts the non-idempotent hint into actionable practice. However it says nothing about required permissions, tax/payment side effects, or failure modes specific to invoices, so it adds useful but not rich behavioral context.

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, front-loaded with the action, then the prerequisite, then the risk. No wasted wording and the most important safety note is placed last for emphasis without burying the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a non-idempotent, open-world mutation with a large nested schema at 0% coverage and no output schema, the description covers the retry hazard but not what the response looks like, what side effects occur (payment, stock, loyalty), or how nested field groups should be populated. It is adequate as a safety warning but thin for such a complex payload.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter is a deeply nested object containing branchId, productId, customerId, invoiceDetails line items, taxes and delivery details. The only meaning the description adds is that referenced IDs must be resolved beforehand, which is helpful but leaves the vast majority of nested fields undocumented in both schema and description.

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 ("Create one invoice") plus a scope note ("in the connected store" and "one invoice"), which distinguishes it from the update/delete/get invoice siblings by name-adjacent semantics. It stops short of naming an alternative tool, so it is clear but not maximally differentiating.

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?

It gives a concrete prerequisite workflow: resolve referenced IDs and read current data first, which implicitly routes the agent to the get_* tools before calling this one. It does not state when not to use this tool or name a specific alternative such as create_invoice_payment, so a 4 rather than 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