Skip to main content
Glama

UniVend: master vendor for AI agents

Submit a purchase request

submit_purchase_request
Idempotent

Prepares a purchase request: UniVend will buy in its own name from the supplier the client chose and invoice the client the supplier price plus commission (the rate for requests through the Agent Interface, or the client's contract rate), with VAT on the whole price. Send the supplier's quote or pro forma as a file (PDF, PNG or JPEG, up to 10 MB, addressed to PLANA Univend EOOD or unaddressed) or the product's web address, not both. Never send an invoice issued to the client. Unless the client's Agent Limits allow otherwise, the request waits for confirmation by an Authorised Person in the portal; an automatic answer is not acceptance. Requires an agent authorised by a signed-in client. Consequential: may create a commitment for the client; send an idempotency_key.

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": {
      "supplier_name": "<supplier_name>",
      "supplier_email": "<supplier_email>",
      "supplier_amount": "<supplier_amount>",
      "description": "<description>",
      "chosen_by_client": "<chosen_by_client>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "submit_purchase_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the answer: bg (Bulgarian) or en (English).
quote_fileNoThe supplier's quote or pro forma (PDF, PNG or JPEG, up to 10 MB), base64.
descriptionYesWhat is bought, as on the supplier's quote.
product_urlNoThe product's web address (https), instead of a file.
purchase_typeNoservices (default) or goods.
supplier_nameYesThe supplier the client chose.
supplier_emailYesThe supplier's email; UniVend sends its purchase order there.
idempotency_keyYesA unique key you choose for this action (8-128 chars: letters, digits, . _ : -). Send the same key when you retry the same action; a new action needs a new key.
supplier_amountYesSupplier price excluding VAT, in EUR.
chosen_by_clientYesMust be true: the client chose the supplier and the terms itself; UniVend buys in its own name and is not responsible for the supplier's performance.
client_referenceNoThe client's own reference (e.g. its PO number).
supplier_referenceNoThe number of the supplier's quote.

Output Schema

NameRequiredDescriptionDefault
priceYes
stateYes
messageYes
order_idYes
referenceYes
portal_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=false; the description goes much further by disclosing that the call may create a client commitment, that an automatic answer is not acceptance, that confirmation by an Authorised Person in the portal gates execution, and that the idempotency_key should be reused only on retry of the same action.

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?

Front-loaded with the transaction model, then document rules, then confirmation/auth prerequisites and the idempotency instruction. Dense but every sentence carries operational information; the commission/VAT parenthetical is slightly heavy but still relevant to what gets booked.

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 12-parameter, mutation-style, nested-schema tool with an output schema and annotations, this covers purpose, input constraints, authorisation, and the confirmation workflow, so an agent can call it correctly. It stops short of explaining what a submitted-but-unconfirmed request looks like or how to withdraw it, which keeps it from a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns extra by adding cross-parameter meaning the schema cannot express: mutual exclusivity of quote_file and product_url, the 10 MB and PDF/PNG/JPEG limits, and the requirement that the document be addressed to PLANA Univend EOOD or unaddressed rather than issued to the client.

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?

The first sentence names the specific action (prepares a purchase request) and immediately explains the transaction model: UniVend buys in its own name from the supplier the client chose and invoices the client supplier price plus commission with VAT. That is a verb plus resource plus commercial semantics an agent cannot confuse with sibling reads like get_offer or get_invoice.

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?

Gives concrete selection rules for inputs (send the quote/pro forma file OR the product URL, 'not both'; never send an invoice issued to the client) and prerequisites (agent authorised by a signed-in client; request waits for Authorised Person confirmation unless Agent Limits allow otherwise). It does not explicitly point to sibling alternatives such as withdraw_request for cancelling a pending request, which is the one missing routing element.

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