Skip to main content
Glama

Set your spending cap

set_spending_cap
Idempotent

Set your monthly spending cap in USD (null lifts it). Past it, heavy and medium calls answer 402 until next month. Answers the billing view. Free.

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": {
      "capUsd": "<capUsd>"
    },
    "name": "set_spending_cap"
  }
}

Input Schema

NameRequiredDescriptionDefault
capUsdYesMonthly cap in USD (at most 6 decimals); null: no cap

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

It adds behavior that the annotations do not cover: once the cap is exceeded, heavy and medium calls return 402 until the next month, which implies light calls still succeed. It also states 'Free', so the agent knows this call has no billing effect. It does not say whether authentication or a given plan tier is required.

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?

The description is short, front-loaded with the action and the parameter behavior, and every sentence adds something: the unit, the null case, the enforcement consequence, and the cost. The telegraphic fragments such as 'Answers the billing view. Free.' are slightly cryptic, though the brevity itself is not a problem.

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 single-parameter mutation with no output schema, the description covers the key unknowns: what the value means, what happens when it is exceeded, and that the call is free. It does not state whether the updated cap is echoed back or what error is returned for out-of-range values.

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%, and the schema already documents the 0–1,000,000 range, the 6-decimal limit, and the meaning of null. The description restates the USD unit and the null behavior without adding syntax or edge-case detail, so the schema does the work and the description only matches it.

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: 'Set your monthly spending cap in USD'. That is unambiguous, but it doesn't tell the agent how it differs from siblings such as subscribe_plan or get_usage; the phrase 'Answers the billing view' only hints at the link.

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 description implies when the tool is useful (implementing a spend limit) and gives the condition for the null case ('null lifts it'), but it states no exclusions and does not name an alternative tool to use when the agent only needs to read the current cap or usage.

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