Skip to main content
Glama

A-Pay Protocol

apay_set_budget

Configure agent safety invariants and spending guardrails. Prevents runaway loops or overcharging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daily_budget_apayNoMaximum $APAY token rolling 24-hour spending budget
daily_budget_usdcNoMaximum USDC rolling 24-hour spending budget
max_per_call_apayNoMaximum $APAY token allowance for a single API call
max_per_call_usdcNoMaximum USDC allowance for a single API call

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it says little beyond intent: it does not state that settings persist, whether provided values replace or merge with existing limits, what happens when a parameter is omitted (all four are optional), or what authority is required. 'Prevents runaway loops or overcharging' hints at enforcement but never explains the mechanism.

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?

Two tight sentences with no filler, and the core purpose is front-loaded. It is slightly under-specified rather than verbose, which is not a conciseness failure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter mutation tool with no annotations and no output schema, the description leaves key gaps: persistence of settings, semantics of optional parameters at already-set budgets, and interaction with the sibling apay_request tool that these guardrails constrain.

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 (daily vs per-call, APAY vs USDC) are already documented in the schema. The description adds no meaning about units, defaults, or behavior when values are omitted, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Configure' plus 'spending guardrails' conveys that this sets spending limits, which is a real purpose rather than a tautology. But 'agent safety invariants' is abstract jargon, and the description never names the concrete resources ($APAY/USDC budgets, per-call caps) that distinguish it from siblings like apay_get_balance or apay_request.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to invoke this tool, no prerequisites (e.g., before making apay_request calls), and no reference to any alternative. The reader must infer its place in the workflow entirely.

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