Skip to main content
Glama

Ask the user for an API budget

request_budget

Request a spending budget for specific operations. Ask only for the operations and amount the task needs: the user sees the exact scope, caps and purpose, and calls outside it are refused. The approval link goes to the user, not to you.

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": {
      "purpose": "<purpose>",
      "scope": "<scope>",
      "perCallMaxUsd": "<perCallMaxUsd>",
      "totalMaxUsd": "<totalMaxUsd>"
    },
    "name": "request_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoThe user's email. Needed only if you connected without signing in: Gluo sends the approval there.
scopeYes
purposeYesOne sentence on what the calls are for, shown to the user
ttlMinutesNo
totalMaxUsdYes
perCallMaxUsdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose real behavior: the user sees the exact scope, caps and purpose, and out-of-scope calls are refused. It omits what happens after submission (return value, whether the call blocks, how rejection or expiry is surfaced, and the meaning of ttlMinutes), which matters for a human-in-the-loop approval tool.

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 tight sentences, front-loaded with the core action, then scope guidance, then the approval-link caveat. No filler, though the last sentence is slightly cryptic without more context on the approval flow.

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?

Reasonably complete for a tool with no output schema and no annotations: it explains the user-facing approval handoff and the enforcement consequence. It falls short on the post-request lifecycle (pending state, polling via get_budget, expiry) which an agent needs to act correctly after invoking it.

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 only 33% across 6 params, so the description needs to compensate and does so partially: it clarifies that purpose is shown to the user, that scope defines the visible boundary, and that caps constrain spend. But ttlMinutes and email are left entirely to sparse schema text, and the relationship between perCallMaxUsd and totalMaxUsd is never explained.

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?

A specific verb+resource ('Request a spending budget') plus the scope qualifier 'for specific operations' makes the action unambiguous. It doesn't explicitly name how it differs from get_budget, close_budget, or request_service, so sibling differentiation is implicit rather than stated.

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?

'Ask only for the operations and amount the task needs' gives scoping guidance but never states the trigger condition (i.e., do this before call_api when a paid operation is needed) or what to do if the request is refused. Usage is implied through the refusal clause rather than spelled out.

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