Skip to main content
Glama

Spend Gate

spend_gate
Read-onlyIdempotent

Spend Gate: ALLOW, DENY or ESCALATE before your agent spends money. Send the owner's policy (per-transaction, daily and monthly caps, approval threshold, recipient/category/network allow and block lists, hurdle: minimum expected return multiple) and the proposed spend; get the decision with every reason and the budget left. Stateless: nothing stored. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/spend-gate, $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": {
      "spend": "<spend>"
    },
    "name": "spend_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
spendYesamount_usd required
policyNoyour spend policy, e.g. {"daily_cap_usd": 5}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / policy / description
      Added value: +"your spend policy, e.g. {\"daily_cap_usd\": 5}"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds genuinely new behavioral facts: the tool is stateless with nothing stored, the response contains every reason plus remaining budget, and production usage carries a $0.002 x402 cost at a specific endpoint. It does not describe latency, rate limits, or what happens when policy is omitted, but the added context is well above the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The decision outcome is correctly front-loaded, but the body is a single dense paragraph mixing operational facts with promotion ('By OMENZ') and a deployment aside about the AYNE playzone and the production HTTP endpoint. The pricing/endpoint parenthetical is marginal for tool selection and competes with the call-shaping information.

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 no output schema, the description correctly summarizes the return (decision, all reasons, budget left) and explains the stateless contract, which is what an agent needs before calling. The remaining gap is the spend object itself, whose fields beyond amount_usd are never described despite being a nested object.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only says 'amount_usd required' for spend and gives a single toy example for policy, so the description carries real weight by enumerating the policy surface: per-transaction, daily and monthly caps, approval threshold, recipient/category/network allow and block lists, and a hurdle defined as a minimum expected return multiple. That is meaning an agent cannot obtain from the schema alone.

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?

States a concrete verb and resource: evaluate a proposed spend against an owner policy and return ALLOW, DENY or ESCALATE. The 'before your agent spends money' framing makes the gate role clear, but no sibling tool (e.g. budget_spend, authorize) is named as the contrasting alternative, so differentiation is left to inference.

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

Usage Guidelines3/5

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

The timing is implied by 'before your agent spends money' and the required inputs (policy + proposed spend) are stated, which gives an agent a usable trigger. However, there is no explicit when-not guidance, no mention of how this differs from sibling spend/authorize tools, and no note about whether the policy must be re-sent every call versus stored elsewhere.

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