Skip to main content
Glama

Moneda

set_ai_usage_limit

Set (or clear) the monthly spend limit on AI usage credits — the ceiling on how much of the prepaid balance may be consumed per calendar month (resets the 1st, UTC). Pass a USD amount to cap spending, or null to remove the cap (unlimited). Idempotent: setting the same value twice is a no-op.

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": {
      "monthlyLimitUsd": "<monthlyLimitUsd>"
    },
    "name": "set_ai_usage_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthlyLimitUsdYesMonthly USD cap on prepaid-balance draw-down, or null for no limit (unlimited).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this is a mutating but non-destructive write (readOnlyHint=false, destructiveHint=false), so the bar is lower; the description still adds real information beyond that: the cap resets on the 1st (UTC), and the operation is idempotent. It stops short of stating permission requirements or the response payload, but the key behavioral traits are disclosed.

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?

Three sentences, front-loaded with the verb and resource, then the value semantics, then the two behavioral guarantees. The parenthetical definition of the ceiling is slightly heavy but does useful work; nothing is padding.

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 one-parameter tool with full schema coverage and no output schema, the description covers purpose, both value modes, reset timing, and idempotency. The remaining gap is failure/post-condition behavior (e.g. what happens if the new cap is below current month spend, or what the tool returns), which is minor here.

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 single parameter already documents 'null for no limit (unlimited),' so the description's 'pass a USD amount... or null to remove the cap' largely restates the schema. It adds the reset cadence, but that is a property of the limit rather than of the parameter, so the baseline 3 applies.

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 ('Set (or clear) the monthly spend limit on AI usage credits') and immediately defines the semantics of the setting as a ceiling on prepaid-balance draw-down. This clearly separates it from sibling tools like purchase_usage_credits or update_settings, which an agent would otherwise have to disambiguate by schema inspection.

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?

Explicitly tells the agent which value produces which behavior: 'Pass a USD amount to cap spending, or null to remove the cap (unlimited).' That covers both branches of the decision, but it does not address adjacent questions such as whether to use this versus purchase_usage_credits, or whether lowering the cap below already-consumed spend is permitted.

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