Skip to main content
Glama

Wait for credits

wait_for_credits
Read-onlyIdempotent

[read] After a tool answered waiting_for_credits: holds until the person has added the credits that call needs, up to ten minutes, then answers covered: true. Call it right after telling the person, in one plain sentence, how many more credits are needed and where to add them (the waiting_for_credits answer says where). When it answers covered, call the tool again with the same arguments. When it answers covered: false, do as its message says and do not retry the tool. Never name a tool to the person.

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": {
      "hold_id": "<hold_id>"
    },
    "name": "wait_for_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
hold_idYesThe hold_id from the waiting_for_credits answer.
timeout_secondsNoHow long to wait at most. Left out, it waits until the hold runs out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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), and the description layers on the parts annotations cannot express: the ten-minute hold ceiling, the covered: true/false outcome states, the same-arguments retry contract, and a conversational rule about not naming tools to the person. That is substantive behavior beyond structured fields.

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 blocking condition is front-loaded and every clause carries operational meaning. The parenthetical '(the waiting_for_credits answer says where)' and the trailing 'Never name a tool to the person' are slightly awkward insertions, but nothing is redundant enough to penalize heavily.

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, the description still explains the return states (covered: true/false), the failure path, and the retry loop, which is exactly what an agent needs to drive this tool correctly. Nothing material about invoking or interpreting it is missing.

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 coverage is 100%, and the schema already explains that hold_id comes from the waiting_for_credits answer and that timeout_seconds defaults to the hold's remaining life. The description adds no syntax or format detail beyond that, 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?

The description names a concrete verb+resource behavior: it holds until a person adds the credits a previously-blocked call needs, then answers covered: true. It explicitly anchors its purpose to the waiting_for_credits response, which no sibling tool replicates, so an agent can tell it apart from request_budget, call_tool, and run_tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit sequencing rules: call it immediately after telling the person how many credits are needed, call the original tool again with the same arguments when covered is true, and follow the message without retrying when covered is false. Both the when-to-use and when-not-to-retry branches are stated outright.

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