Skip to main content
Glama

get_spend_policy

Read-onlyIdempotent

Read the spend limits on an agent: per-transaction, daily, per-market and responsible-gambling (daily loss cap, cooldown) limits, any pending loosening and an active cooldown. null means no limit. New agents start with conservative defaults. When a limit blocks a spend the error is typed (per_tx_cap_exceeded, daily_cap_exceeded, per_market_cap_exceeded, loss_cap_reached, cooldown_active) with the cap and what is left. Read-only. Agent key reads its own; operator key passes agent_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_spend_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoOperator key only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so safety is covered. The description adds genuinely useful behavior beyond that: 'null means no limit', conservative defaults for new agents, pending-loosening and cooldown visibility, and the typed error surface with the cap and remaining headroom.

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?

Dense and front-loaded: scope first, then null/default semantics, then the error surface, then auth. The error-code enumeration is the longest clause and is somewhat tangential for a read tool, but each sentence carries information an agent would otherwise have to discover.

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

Completeness5/5

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

There is no output schema, so the description must convey the return shape, and it does — the limit dimensions, null-as-unlimited convention, pending loosening, and active cooldown. For a one-optional-param read tool, nothing an agent needs to call and interpret it correctly is missing.

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?

Schema coverage is 100% and the single param is optional, so the schema already carries the field-level documentation. The description still adds meaning the schema lacks: it clarifies that agent_id is only required for operator keys, since an agent key implicitly reads its own policy.

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?

States a specific verb and resource ('Read the spend limits on an agent') and enumerates the exact scope: per-transaction, daily, per-market, responsible-gambling limits, pending loosening, and active cooldown. This lets an agent distinguish it from a write-path sibling like set_spend_policy without opening either 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?

Gives concrete context for use: it explains the key model ('Agent key reads its own; operator key passes agent_id') and what a blocking limit looks like downstream via the typed error codes. It does not explicitly name when to prefer a neighboring read tool, but the usage conditions it does state are unambiguous.

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.