Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Link to add prepaid credit

buy_credits
Read-onlyIdempotent

Request a link to the site's Add credits page with the amount chosen. The call checks purchase eligibility and limits. The owner opens the link and selects Continue to checkout. The site makes the remaining checks. This call opens no checkout, pays nothing and grants no prepaid credit.

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": {
      "amount": "<amount>"
    },
    "name": "buy_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesThe prepaid credit to buy, in whole US dollars. Use one of this member's enumerated amounts.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the readOnlyHint/idempotentHint annotations by spelling out the full human hand-off sequence and, crucially, what the call does NOT do (no checkout, no payment, no credit granted). It also discloses that the call performs purchase eligibility and limit checks while the site performs 'remaining checks,' which is real behavioral context an agent cannot infer from annotations.

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?

Front-loaded with the action, then the constraints and the caveat, in four tight sentences. Slight redundancy between 'The call checks purchase eligibility and limits' and 'The site makes the remaining checks,' and 'remaining checks' is a vague fragment.

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 single-parameter tool with no output schema, the description covers the input meaning, the preconditions, and the no-side-effect guarantee. The only gap is that the shape/timing of the returned link (e.g., expiry, single-use) is not described, though the schema carries no output contract to explain.

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 itself explains the unit (whole US dollars) and the 'enumerated amounts' constraint. The description only echoes 'with the amount chosen,' adding no new meaning, 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 ('Request a link to the site's Add credits page') and immediately bounds the outcome: 'opens no checkout, pays nothing and grants no prepaid credit.' That contrast separates it cleanly from any actual purchase/settlement tool without needing a sibling name.

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?

The description establishes the context of use (member wants prepaid credit, owner must open the returned link and press Continue to checkout) and notes eligibility/limit prechecks. It gives clear situational guidance but never explicitly excludes alternatives or says what to do when the member is ineligible.

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