Skip to main content
Glama

Get monthly spending cap

get_spend_cap
Read-onlyIdempotent

Read the customer's monthly spending cap, if one is set, and what has been spent this calendar month in the account country time zone (Europe/Prague for Czech accounts) on calls, SMS and the voice agent. Returns enabled, capHal and warnShare (null without a cap), inboundAboveCap, month, monthSpendHal (counted on every account, also without a cap), remainingHal and reached. Number fees, the monthly plan and Done for you setup orders are not counted. Once the cap is reached, new outbound calls and SMS fail with spend_cap_reached and, unless inboundAboveCap is true, inbound calls to the account's agents end after one sentence; calls already in progress still finish and can push the total slightly over. Same data as GET /v1/account/spend-cap (response schema in /openapi.json).

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_cap"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description is free to add operational context — and it does: new outbound calls and SMS fail with spend_cap_reached once the cap is hit, inbound calls end after one sentence unless inboundAboveCap is true, and in-progress calls finish and can push the total slightly over. It also discloses what is excluded from counting (number fees, monthly plan, setup orders), which materially affects how the returned numbers should be read.

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?

Purpose and scope are front-loaded in the first clause, and the description is a single dense paragraph with no filler or redundancy. It is on the long side and the enforcement/cutoff paragraph, while useful, is more than a pure read tool strictly needs; still, every clause conveys distinct information.

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?

With no output schema and no parameters, the description carries the full documentation burden and discharges it: it names each returned field, explains null semantics for accounts without a cap, clarifies that monthSpendHal is counted on every account, and points to GET /v1/account/spend-cap and /openapi.json for the full schema. An agent can call this and interpret the response without guessing.

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?

There are zero parameters, so the schema imposes no burden and the baseline of 4 applies. The description instead spends its effort documenting return semantics (capHal, warnShare, remainingHal, reached, null-without-cap), which is genuinely additive since no output schema exists.

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?

Opens with a specific verb and resource ('Read the customer's monthly spending cap') and immediately scopes it: calendar-month spend in the account country time zone on calls, SMS and the voice agent. An agent can tell this apart from set_spend_cap or clear_spend_cap purely from the described verb, and the enumerated return fields further pin down what 'read' means here.

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?

Usage is implied rather than stated: 'if one is set' and 'null without a cap' tell the agent what state to expect, but nothing says when to prefer this over checking get_balance or get_subscription, nor that set_spend_cap/clear_spend_cap are the mutation counterparts. Adequate context, but the alternative routing is left to inference from sibling names.

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.