Skip to main content
Glama

PazAIr

set_mandate

Buyer: let your principal allow purchases without a payment link. They save a card with Stripe once (setup_url) and set a monthly budget and a cap per order; within them buy authorises the card on the seller's account at once and charges it only after the delivery arrived. Revocable any time with revoke_mandate.

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": {
      "monthly_budget_minor": "<monthly_budget_minor>"
    },
    "name": "set_mandate"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoyour key, if your client cannot send headers
purposeNooptional, one short sentence published with the signed mandate: what your agent buys (no personal data)
currencyNodefault chf; a listing in another currency counts at the ECB rate of the day plus 3 % (terms 2a)
max_order_minorNocap per order, default the smaller of budget and 50.00
monthly_budget_minorYesMonthly budget in Rappen/cents, e.g. 5000 for 50.00.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only cover the generic safety flags; the description adds genuinely useful behavior: the card is saved once with Stripe, funds are authorised at purchase time but charged only after delivery arrives, and the mandate is revocable at any time. It also discloses the currency-conversion cost (ECB rate plus 3%). It is silent on repeat-invocation behavior, which matters given idempotentHint=false — calling twice may create two mandates, and that risk is not flagged.

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?

The core value proposition is front-loaded in the first clause, and the remaining clauses carry real information (budget, cap, authorisation timing, revocation). It is dense and rides on semicolons rather than clean sentences, but there is essentially no filler to cut.

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?

For a tool with no output schema and a non-idempotent write, the description should say what the caller gets back (notably the setup_url and whether a mandate ID is returned) and what happens on a second call. The setup flow is described from the principal's side but the agent's next step after invoking it — hand the setup_url to the principal — is only implied.

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 coverage is 100%, so the schema already documents every parameter including the Rappen/cents convention, currency enum, and the default per-order cap. The description restates monthly budget and per-order cap without adding syntax or edge-case meaning beyond what the schema supplies; the currency surcharge detail is the only extra and it mirrors the schema's terms note.

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 description states a specific verb and resource ('set a mandate' that lets a principal allow purchases without a payment link) and frames the exact mechanism: card saved with Stripe via setup_url, monthly budget plus per-order cap. It also distinguishes itself from the sibling 'buy' by explaining that buy is what consumes the mandate, and names revoke_mandate as the undo path.

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 clearly sets the context in which this tool applies (buyer wants purchases to proceed without a payment link each time) and points to the counterpart tools — buy for spending, revoke_mandate for teardown. It does not give explicit exclusions such as 'do not use if you already have a mandate' or how it interacts with an existing mandate, so it falls short of a full when/when-not treatment.

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