Skip to main content
Glama

Issue invoice (mock)

vn_einvoice_mock_issue
Read-onlyIdempotent

Issue invoices through an in-memory mock provider with no real API calls or persistence, so you can test integration flows before wiring MISA, Viettel, or VNPT sandbox adapters.

Instructions

Issue an invoice through the in-memory MOCK provider (no real API, nothing persisted). Useful for testing integrations before wiring MISA/Viettel/VNPT sandbox adapters.

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": {
      "invoice": "<invoice>"
    },
    "name": "vn_einvoice_mock_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesInvoice object: {series, issueDate, seller{name,taxId,address}, buyer{...}, lines[{name,quantity,unitPrice,vatRate}]}

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 declare readOnlyHint/idempotentHint true and openWorldHint false; the description corroborates this with 'no real API, nothing persisted,' resolving the apparent tension between 'Issue an invoice' and readOnlyHint=true. It does not say what the call returns (mock invoice ID, echoed payload, validation outcome) despite there being no output schema.

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 short sentences, zero filler, with the mock/no-persistence constraint front-loaded before the use case. Every clause carries information an agent needs.

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 one-parameter mock tool with no output schema, the description covers what it does, that it is side-effect free, and when to use it. The remaining gap is the return shape (whether an invoice number or validation result comes back), which matters for chaining into vn_einvoice_validate or totals tools.

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?

Only one parameter, and the schema already documents it fully (100% coverage) including the nested invoice shape {series, issueDate, seller, buyer, lines[{name,quantity,unitPrice,vatRate}]}. The description adds no field-level meaning beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource ('Issue an invoice') plus the exact execution target ('in-memory MOCK provider'), and contrasts it with the real adapters (MISA/Viettel/VNPT sandbox). An agent can immediately tell this is a simulated issuance path rather than a query tool like vn_einvoice_totals or vn_einvoice_validate.

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?

'Useful for testing integrations before wiring MISA/Viettel/VNPT sandbox adapters' gives clear usage context and a sequencing condition (use this before the real adapters). It does not explicitly say when not to use it or name a sibling alternative, so it falls short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.