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

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_get_purchase_order

Read-onlyIdempotent

Retrieve a KiotViet goods receipt or purchase order by its ID to review document details.

Instructions

Read a goods receipt/purchase document by ID.

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": {
      "id": "<id>"
    },
    "name": "kiotviet_get_purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so safety is covered. The description adds nothing further: no note on behavior for a nonexistent or deleted ID, no error semantics, no indication of what the returned document contains or whether it includes line items.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero filler and the key constraint ('by ID') in place. It is efficient, though its brevity is part of why other gaps go unaddressed.

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 one-parameter lookup with no output schema, the description should at least sketch the returned document or failure behavior. Annotations cover the safety profile, so the missing pieces are narrow but real, making this adequate rather than complete.

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 0%, but there is only one parameter and its constraint (>0 integer) is fully expressed in the schema. The description contributes the useful clarification that the ID refers to a purchase/goods-receipt document rather than an order or supplier ID, which is meaningful given the many ID-based siblings.

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 ('Read') and resource ('goods receipt/purchase document') with the lookup key ('by ID'), so the agent knows exactly what the tool returns. It does not distinguish itself from nearby siblings such as kiotviet_get_order, kiotviet_get_supplier_order, or kiotviet_get_purchase_order_by_code-style variants, leaving ambiguity about which document type is fetched.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: nothing says to call kiotviet_list_purchase_orders first to obtain an ID, or when to prefer get_by_code or supplier-order alternatives. Only the implicit signal 'by ID' hints at a precondition, and no exclusions are given.

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