Skip to main content
Glama

Check spending limits and today's spend

policy_status
Read-only

See a spending policy's limits, how much was spent today and how much is left. Owners who pass admin_key also get the spending log (last 50 payments).

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": {
      "policy_id": "<policy_id>"
    },
    "name": "policy_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
admin_keyNoOwner only: the admin_key, to include the spending log.
policy_idYesThe policy_id (starts with 'pol_').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real value beyond that: the response contents (limits, today's spend, remaining) and the owner-gated admin_key path that expands the payload to the last 50 payments. It does not describe error behavior for an unknown policy_id, keeping it at 4.

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

Conciseness5/5

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

Two sentences, zero waste. The core read (limits/spend/remaining) is front-loaded and the optional owner-only expansion follows. Nothing is repeated or padded.

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 read-only, two-parameter tool with no output schema, the description covers what is returned and the optional auth-gated expansion. Minor gaps remain: what a 'limit' comprises (daily vs total) and behavior when the policy_id is invalid or unknown.

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 coverage is 100%, so both parameters are already documented in the schema, including the owner-only nature of admin_key. The description adds only the 'last 50 payments' bound on the log, which is a marginal increment over the schema's wording. Baseline 3 is appropriate.

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 specific verb and resource ('See a spending policy's limits') and enumerates exactly what is returned: limits, today's spend, remaining amount. An agent knows precisely what this retrieves. It does not explicitly name a sibling to use instead, so it stops short of 5.

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 only guidance is conditional: owners who pass admin_key get the spending log. There is no statement of when to use this versus check_payment or get_receipt, and no exclusion or prerequisite beyond the owner gating. Usage is implied by the purpose rather than spelled out.

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.