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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_list_invoices

Read-onlyIdempotent

Read sales invoices by transaction date, branch, customer, or status to review revenue and payments; paginate full periods and account for cancellations, returns, and discounts.

Instructions

Read sales invoices by transaction date, branch/customer/status. For revenue, paginate the whole period and account for cancelled invoices, returns and discounts; totalPayment is money received, not revenue.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kiotviet_list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoUse the status values returned by this resource; order and invoice statuses differ.
toDateNoModified-to time; for invoice revenue use fromPurchaseDate/toPurchaseDate instead.
orderByNo
orderIdNo
pageSizeNo
branchIdsNo
createdDateNoISO 8601 date/time; use +07:00 for Vietnam when a timezone is needed.
currentItemNoZero-based record offset, not page number.
customerIdsNo
customerCodeNo
includePaymentNo
orderDirectionNo
toPurchaseDateNoISO 8601 date/time; use +07:00 for Vietnam when a timezone is needed.
fromPurchaseDateNoISO 8601 date/time; use +07:00 for Vietnam when a timezone is needed.
lastModifiedFromNoISO 8601 date/time; use +07:00 for Vietnam when a timezone is needed.
IncludeSaleChannelNo
includeInvoiceDeliveryNo

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 readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds behavior the annotations cannot convey: results are paginated and must be walked across the whole period for totals, cancelled invoices/returns/discounts distort naive sums, and totalPayment is cash received rather than revenue. It does not discuss auth, rate limits, or return shape, keeping it below 5.

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?

Two dense sentences with the primary purpose front-loaded and the highest-value caveat (totalPayment is not revenue) placed last for emphasis. No filler, no repetition of schema or annotation content.

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 17-parameter list tool with no output schema and low schema coverage, the description covers the most dangerous semantic traps but omits what the response contains and what several flags toggle. It is adequate to start a call, but an agent would still have to guess at roughly half the parameters.

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 coverage is only 41% across 17 parameters, so the description must carry weight. It usefully redirects revenue queries to fromPurchaseDate/toPurchaseDate instead of toDate, but leaves includePayment, includeInvoiceDelivery, IncludeSaleChannel, orderBy/orderDirection, orderId and customerCode completely unexplained in both places.

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+resource ("Read sales invoices") and names the filter axes (transaction date, branch/customer/status), which is enough to distinguish it from kiotviet_list_orders or kiotviet_list_returns in practice. It stops short of explicitly naming the sibling it is not, so a 4 rather than 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?

It gives concrete usage context for the main analytical task: for revenue, paginate the entire period and account for cancelled invoices, returns and discounts. That is a real when-and-how instruction rather than a restatement. It offers no explicit exclusions or named alternatives, so it falls short of 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