Skip to main content
Glama

UniVend: master vendor for AI agents

Get an invoice

get_invoice
Read-onlyIdempotent

One UniVend invoice to the client, with the link to it in the portal. Requires an agent authorised by a signed-in client.

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_id": "<invoice_id>"
    },
    "name": "get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the answer: bg (Bulgarian) or en (English).
invoice_idYes

Output Schema

NameRequiredDescriptionDefault
dateYes
numberYes
currencyYesISO 4217 currency code, e.g. EUR.
due_dateYes
amount_taxYesAn amount of money in the currency given, 2 decimals.
invoice_idYes
portal_urlYes
amount_totalYesAn amount of money in the currency given, 2 decimals.
payment_stateYes
amount_untaxedYesAn amount of money in the currency given, 2 decimals.
amount_residualYesAn amount of money in the currency given, 2 decimals.
order_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered elsewhere. The description adds genuinely useful auth context (agent must be authorised by a signed-in client) but says nothing about failure modes, per-client scoping, or rate/portal-link lifetime behavior.

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?

Two short sentences, front-loading what is returned and following with the auth prerequisite; nothing redundant. The phrasing "One UniVend invoice to the client" is slightly awkward but not wasteful.

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?

An output schema exists, so return values need no explanation, and the auth requirement is captured. For a two-parameter, client-scoped lookup the definition still leaves the ID's source and language selection unexplained, which an agent needs to call it correctly.

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 50%: lang is documented with its enum in the schema, while invoice_id carries only type and bounds. The description adds no meaning for either parameter — nothing about the ID's origin or the effect of lang on the returned portal link — so it does not compensate for the documented gap.

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?

Names the specific resource and scope: a single ("One") UniVend invoice plus the portal link that comes back with it, which implicitly distinguishes it from list_invoices. The retrieval verb itself only appears in the name/title, and no sibling is named explicitly, so it falls short of full differentiation.

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

Usage Guidelines3/5

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

The description supplies a prerequisite ("Requires an agent authorised by a signed-in client") but never states when to choose this over list_invoices or when an invoice_id must first be discovered. Usage is implied by the singular resource plus a required ID parameter rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources