Skip to main content
Glama

Ask the person to buy credits

request_credit_purchase

Show a Pay button for a credit pack (Business plan subscribers). Use a pack_id from get_credits.

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": {
      "pack_id": "<pack_id>"
    },
    "name": "request_credit_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
pack_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already mark it as non-read-only, non-idempotent, and closed-world. The description adds genuinely new context by framing the effect as showing a Pay button (UI presentation rather than an immediate charge) and by naming the eligibility gate; however it does not clarify whether the purchase completes, whether repeat calls spawn duplicate checkout flows, or what the caller receives back.

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?

Two short, front-loaded sentences with no filler; the action comes first and the prerequisite second. It is arguably over-terse given that its behavioral effect is only implied by 'Show a Pay button'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of conveying what happens on success, yet 'Show a Pay button' leaves the return value ambiguous (a URL, a UI directive, a checkout session?). Eligibility and sourcing are covered, but the outcome is not.

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?

Schema coverage is 0% and the single parameter has no description, so the description must compensate, which it does by telling the agent where the pack_id originates (get_credits). It still says nothing about the expected ID format, but the sourcing hint is the most important missing piece and is supplied.

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 action and resource: surface a Pay button for a credit pack, scoped to Business plan subscribers. An agent can distinguish it from plain payment/subscription request tools by the 'credit pack' object, though the description never contrasts it with request_payment explicitly.

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?

Gives two useful usage signals: eligibility (Business plan subscribers) and the prerequisite that pack_id comes from get_credits. It does not say when to prefer this over request_payment or what to do for non-Business plans, so guidance is implied rather than complete.

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