Skip to main content
Glama

Agent Purchase Order redeem

po_redeem

Agent Purchase Order redeem: the buyer agent (or the seller, before serving) checks a PO right before paying: signature, expiry, payee, seller, amount <= max, and that it was never used. ALLOW marks it used (once) and, if budget-backed, draws the amount from the Shared Budget; returns a signed redemption record. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/po/redeem, $0.002 via x402.)

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": {
      "token": "<token>",
      "amount_usd": "<amount_usd>"
    },
    "name": "po_redeem"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNofull https URL to check
tokenYestoken
pay_toNopay to
sellerNoseller
amount_usdYesamount usd

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive, open-world write; the description matches and enriches that with the single-use marking, the Shared Budget draw when budget-backed, the returned signed redemption record, and the x402 $0.002 production cost. That is substantial context beyond the annotation flags.

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 check-then-mark flow is front-loaded in the first sentence, with cost/deployment in a trailing parenthetical. The 'By OMENZ' attribution and endpoint URL are marginal, but overall density is high with little filler.

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 5-parameter, no-output-schema mutation, it covers inputs, side effects, budget interaction, return value, and cost. The gap is the denial path: it describes what ALLOW does but not what a failed check returns, which matters for a pre-payment gate.

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?

Coverage is 100% but the schema descriptions are bare ('token', 'pay to', 'amount usd'). The description compensates by explaining what each value is checked against: amount must be <= max, payee and seller are distinct fields, and the token encodes signature/expiry/non-reuse.

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 names a specific verb-and-resource pair (redeem a Purchase Order) and spells out the operation: validate signature, expiry, payee, seller, amount ceiling, and non-reuse, then mark used. It is clearly distinct from a create/issue operation, so an agent can identify it without opening the 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?

It gives concrete timing and actor guidance: the buyer agent (or the seller, before serving) checks 'right before paying'. It stops short of naming alternatives (e.g., use po_issue to mint) or stating when-not-to-use, so it is clear but not fully exclusive.

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