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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_create_invoice_payment

Records actual money received against an existing invoice by checking outstanding debt and bank account before posting the payment to update the invoice balance.

Instructions

Record money actually received against an existing invoice. Read its outstanding debt and bank account before posting. This is a financial write, not a payment request to the customer.

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_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true. The description adds real value beyond them: it frames the operation as a financial write and warns that invoice debt and bank account must be read first. It does not cover duplicate-posting or overpayment behavior, but the annotation set carries the safety profile.

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, each doing distinct work: what it does, what to verify first, and what it is not. The most important disambiguation 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 non-idempotent financial write with no output schema, the definition covers intent, prerequisites and the key misconception. It would be stronger with a note on partial payments or duplicate-posting risk, but the annotations handle the rest of the behavioral surface.

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% on a nested object with four fields (amount, method, accountId, invoiceId). The description implicitly maps 'money actually received' to amount, 'existing invoice' to invoiceId, and 'bank account' to accountId, but leaves the method enum (Cash/Card/Transfer) and amount constraints undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — record money received against an existing invoice — and explicitly disambiguates from a payment request to the customer, which separates it from kiotviet_create_invoice and kiotviet_generate_payment_qr without needing the schema.

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 clear precondition (read outstanding debt and bank account before posting) and a when-not signal ('not a payment request to the customer'). It stops short of naming the sibling to use for actually requesting payment, so the routing is implied rather than explicit.

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