Skip to main content
Glama

Get auto-recharge settings

get_auto_recharge
Read-onlyIdempotent

Get the workspace's auto-recharge: enabled, threshold_usd (the balance that triggers a top-up), target_usd (the balance it tops up to), and last_failure_reason and last_failure_at when the last automatic top-up failed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_auto_recharge"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceNoWorkspace ID (optional: defaults to the authenticated workspace)
environmentNoEnvironment name (optional: defaults to the environment this session acts in)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower. The description still adds real value by explaining the semantics of each returned field (threshold triggers a top-up, target is the top-up destination) and clarifying that failure fields appear only when the last automatic top-up failed.

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?

A single sentence that front-loads the operation and then defines each returned field. No filler, no redundancy with the title.

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?

No output schema exists, so the description carries the burden of describing the return payload — which it does field by field. Minor gaps remain (e.g., behavior when auto-recharge has never been configured), but the definition is otherwise sufficient to call the tool correctly.

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%: both workspace and environment are documented with their defaulting behavior. The description adds nothing about the parameters, so the baseline 3 applies.

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?

States a concrete verb (Get) and resource (workspace's auto-recharge) and enumerates the exact fields returned, including the conditional last_failure_reason/at. It doesn't explicitly contrast with siblings such as billing_balance, top_up or set_auto_recharge, so it falls short of a 5.

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?

Read-only intent is implied by 'Get', and an agent can infer this is the read counterpart of set_auto_recharge/top_up. However, there is no explicit when-to-use, no mention of calling this before topping up or configuring auto-recharge, and no stated exclusions versus other billing tools.

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.