Skip to main content
Glama

Set the daily agent spending cap

autoshort_set_limits
DestructiveIdempotent

Set this key's daily agent spending cap in credits (by default it follows the credit balance, at most 20,000; setting one fixes it). Lowering (or keeping) it applies immediately. Raising it returns approvalUrl: the account owner must open it while signed in and approve — an agent cannot raise its own cap. 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": {
      "dailyCreditCap": "<dailyCreditCap>"
    },
    "name": "autoshort_set_limits"
  }
}

Input Schema

NameRequiredDescriptionDefault
dailyCreditCapYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say it is a destructive, idempotent write; the description adds substantial behavior the agent could not infer: the default is derived from the credit balance capped at 20,000, that setting a value pins it, that lowering is immediate while raising returns an approvalUrl requiring a signed-in owner, and that an agent cannot raise its own cap. It also notes the call is free, which matters for a credits-based product.

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?

Four short sentences, front-loaded with the core action, then default behavior, then the raise/lower split, then cost. Parentheticals are dense but each sentence adds a distinct fact; nothing is padding.

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?

For a one-parameter mutation with no output schema, the description covers what an agent most needs and could not otherwise know — notably the approvalUrl return on raises, which is a return-value detail that is absent from any structured field. Nothing essential to correct invocation 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?

The single parameter has 0% schema description coverage, so the description must carry it, and it does define units (credits) plus the default/derivation behavior (follows credit balance, at most 20,000). It leaves a gap: the schema permits 0–100,000 while the text cites 20,000 as the default ceiling, and it never says what 0 means (e.g., disabling spending).

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?

The description opens with a specific verb and resource scoped to the caller: 'Set this key's daily agent spending cap in credits.' The per-key scoping and the 'daily' qualifier distinguish it immediately from the read-side sibling autoshort_get_limits without needing to name it.

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?

It clearly explains the two operating paths — lowering/keeping takes effect immediately, raising triggers an owner-approval flow — so an agent knows what to expect when it calls. It does not explicitly route to a sibling (e.g., check the current cap with get_limits before changing it), which keeps it short of a 5.

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