Skip to main content
Glama

UniVend: master vendor for AI agents

How to pay an invoice

payment_instructions
Read-onlyIdempotent

How to pay one UniVend invoice by bank transfer: beneficiary, IBAN, amount and payment reference. UniVend is paid only for its own invoices, by bank transfer to its own account. This interface never pays anything and never asks for card data. 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": "payment_instructions"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
bicYes
ibanYes
noteYes
amountYesAn amount of money in the currency given, 2 decimals.
methodYes
numberYes
currencyYesISO 4217 currency code, e.g. EUR.
due_dateYes
bank_nameYes
invoice_idYes
beneficiaryYes
payment_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 safety is largely covered. The description adds real value beyond them: the auth requirement ('agent authorised by a signed-in client') and the guarantee that it never asks for card data. However it says nothing about what the response looks like or what happens for already-paid or foreign invoices.

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?

Three short sentences, front-loaded with what the tool returns. The second sentence partly repeats the title's premise ('UniVend is paid only for its own invoices, by bank transfer to its own account'), which slightly duplicates the first sentence's bank-transfer statement.

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?

An output schema exists, so return-value explanation is correctly omitted, and the auth precondition is stated. What is missing is edge-case behaviour: whether invoice_id must belong to the signed-in client, and what the result is for cancelled or already-paid invoices.

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?

With 50% schema coverage, the schema documents only the lang enum; invoice_id has no description at all. The description implies a single invoice is addressed but adds no detail on which invoices are valid (own vs. foreign, paid vs. unpaid) and says nothing about the language parameter. Baseline 3 for partial compensation.

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 names the resource (one UniVend invoice) and the exact content returned: beneficiary, IBAN, amount and payment reference, plus the channel (bank transfer). That is specific enough to separate it from get_invoice or submit_purchase_request. The verb is somewhat implicit ('How to pay'), which keeps it just short of 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 establishes the context clearly: use this when a client needs to pay one of UniVend's own invoices by bank transfer, and it rules out card-based flows. It never explicitly names a sibling tool or states a when-not condition (e.g. what to call for a new purchase instead), so it stops short of full routing guidance.

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