Skip to main content
Glama

set_cap

Set spend controls on a tai_ key: total spend cap, daily limit (UTC day) and per-request max, in USD. Omit a field to keep it, pass null to remove it.

Input Schema

NameRequiredDescriptionDefault
api_keyNo
spend_cap_usdNo
daily_limit_usdNo
per_request_max_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. It discloses that this is a mutation, the currency and UTC-day semantics, and the null-vs-omit distinction, but it doesn't mention required permissions, idempotency, validation/error behavior, or what the response contains.

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 tight sentences with no filler; the scope and field list are front-loaded and the null/omit rule follows immediately.

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 simple 4-parameter setter with no output schema and no annotations, the description covers purpose, units, and null/omit behavior. It could be more complete by stating auth requirements or how errors/validation are reported, but nothing an agent needs to invoke 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 description coverage is 0%, so the description must compensate. It explains the meaning and units of three of the four parameters and clarifies null-vs-omit semantics; only api_key is left implicit, which is a minor gap.

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 ("Set spend controls") and resource ("tai_ key") and enumerates the exact controls (total cap, daily limit, per-request max) in USD. This is clearly distinct from balance/topup/stats siblings.

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?

The description explains the key usage rule — omit a field to keep it, pass null to remove it — which is essential for correct invocation. It does not explicitly say when to use this vs. alternative tools or note exclusions, but the tool's purpose is unambiguous among siblings.

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