Skip to main content
Glama

UniVend: master vendor for AI agents

Calculate a price

quote_price
Read-onlyIdempotent

Calculates what UniVend would invoice for a purchase: the supplier price excl. VAT you enter, the UniVend commission, VAT on the whole price, and the total on our invoice. Computed by the same formula as the univend.bg portal, at the commission rate for requests through the Agent Interface, which is lower than in the portal (a signed-in client with a contract rate gets that rate). This is a calculation, not an offer or an order.

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_amount": "<supplier_amount>"
    },
    "name": "quote_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the answer: bg (Bulgarian) or en (English).
currencyNoOnly EUR is accepted.
purchase_typeNoWhat is bought: services (default) or goods.
supplier_amountYesThe supplier's price excluding VAT, in the site currency (EUR).

Output Schema

NameRequiredDescriptionDefault
notesYes
totalYesTotal on our invoice, VAT included.
currencyYesISO 4217 currency code, e.g. EUR.
vat_rateYesVAT rate in percent, charged on the whole price.
rate_basisYesdefault: the commission rate for requests through the Agent Interface; contract: the client's contract rate (only after sign-in).
vat_amountYesAn amount of money in the currency given, 2 decimals.
computed_atYesA date and time in ISO 8601, UTC.
terms_versionYes
price_excl_vatYesUniVend price to you excl. VAT (supplier price plus commission).
commission_rateYesUniVend commission in percent.
supplier_amountYesSupplier price excl. VAT, as entered.
commission_amountYesUniVend commission.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 covered; the description adds real value by disclosing that the formula matches the univend.bg portal but the commission rate for Agent Interface requests is lower, and that a signed-in client with a contract rate gets that rate instead. That pricing-variance disclosure explains why a returned figure may differ from what the user sees in the portal. It does not cover rounding, response format, or any rate limits, which keeps it at 3 against strong annotation coverage.

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 sentences, front-loaded with the calculation and its components, followed by the pricing caveat and then the scope disclaimer. Dense but every clause carries information; the only mild redundancy is re-explaining the component breakdown that the output schema likely already shapes.

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?

With an output schema present, return values need not be described, yet the description still names what the calculation yields, which helps the agent frame results to a user. The commission-rate nuance and the not-an-offer disclaimer cover the main ambiguity for this tool; only downstream routing guidance is absent.

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 100%, so all four parameters (lang, currency, purchase_type, supplier_amount) are already documented, including the EUR-only constraint and the excl.-VAT meaning of supplier_amount. The description restates that the entered amount is the supplier price excluding VAT but adds no new syntax, defaults, or edge-case guidance (e.g. the 1,000,000 maximum or the services/goods default) beyond the schema.

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 ('Calculates what UniVend would invoice for a purchase') and enumerates the exact components produced: supplier price excl. VAT, commission, VAT, and invoice total. It also explicitly distinguishes itself from adjacent operations with 'This is a calculation, not an offer or an order,' so an agent can separate it from submit_purchase_request or get_offer without opening another schema.

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?

The description makes clear this is a pre-purchase estimation step with no side effects, and the 'not an offer or an order' line acts as an explicit when-not exclusion. It stops short of naming which sibling to use after calculating (e.g. submit_purchase_request to actually place an order), so the routing is implied rather than spelled out.

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