Skip to main content
Glama

Agent Purchase Order

po_issue

Agent Purchase Order: whoever controls the money pre-approves ONE purchase: 'this agent may spend up to $X with seller Y (payTo and/or host) for Z, until T'. Returns an Ed25519-signed, single-use PO token anyone can verify offline. Budget-backed POs (budget_id + X-Budget-Key) draw from the Shared Budget on redeem, so team caps and the delegation tree still apply. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/po/issue, $0.01 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": {
      "max_usd": "<max_usd>"
    },
    "name": "po_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
forNofor
agentNoagent
job_idNojob id
pay_toNopay to
sellerNoseller
max_usdYesmax usd
budget_idNobudget id
expires_in_hoursNoexpires in hours

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond annotations, the description adds meaningful behavior: it returns a signed single-use token verifiable offline, budget-backed tokens draw against a Shared Budget on redeem, team caps and delegation still apply, and production calls cost $0.01 via x402. It does not cover failure modes, but annotations already declare openWorld, non-readOnly, and non-idempotent behavior.

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 key purpose and token behavior are front-loaded, followed by budget semantics and deployment/payment context. It is dense but appropriately sized for a financial tool with eight parameters and no output schema, though a bulleted structure would make it easier to scan.

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 complex financial issuance tool with no output schema, the description explains what is created, how it is verified offline, how budget-backed spending works on redeem, and the production/MCP context. It is complete enough for correct invocation, with minor gaps around invalid-input behavior and exact expiry semantics.

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?

The input schema technically has 100% description coverage, but most field descriptions are merely the parameter name restated. The tool description compensates by explaining max_usd as the spend cap, seller/pay_to/host as the payee scope, expiry as 'until T', and budget_id plus X-Budget-Key as the budget-backed path.

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 clearly states that this tool pre-approves exactly one purchase and issues an Ed25519-signed, single-use PO token. It distinguishes issue from redeem by saying budget-backed POs draw from the Shared Budget on redeem, but it does not explicitly name po_redeem as an alternative.

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 a clear usage context: whoever controls the money pre-approves one purchase with a spend cap, seller scope, purpose, and expiry. It also explains the budget-backed path via budget_id and X-Budget-Key. It does not state exclusion cases or explicitly route the agent to alternative tools.

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