Skip to main content
Glama

Price extra credits

getTopupQuote
Read-onlyIdempotent

The price of a credit top-up (extra credits that stay while the plan is active) on your plan, and the one-time Link (link-cli) spend request to pay it without a browser. credits goes in steps between min_credits and max_credits. Free, read-only. Buying: createTopupLink (a payment page for the user to pay), or payTopup with a Link token. Never buy credits the user did not ask for.

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": {
      "credits": "<credits>"
    },
    "name": "getTopupQuote"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotent, non-destructive, closed-world; the description reinforces with 'Free, read-only' and discloses that credits move in discrete steps, a behavioral constraint beyond the annotations. It does not contradict them, though it references min_credits/max_credits bounds without saying where those values come from.

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 core purpose and kept to a few tight sentences; the Link spend-request detail is somewhat dense but relevant to agents paying without a browser. No wasted filler.

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?

Covers purpose, cost model, and purchase alternatives well, but omits where min_credits/max_credits originate and says nothing about the quote's validity window or payload shape (no output schema exists). Adequate for a one-parameter read tool but with real gaps for an agent planning a purchase.

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 0% for the single integer parameter, so the description must carry the meaning. It does add that credits are stepped between min_credits and max_credits, but leaves the agent without a way to learn those bounds, so the constraint is only partially actionable.

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: it returns the price of a credit top-up on the user's plan, and it also returns a one-time Link spend request payload. That is clearly distinct from createTopupLink (a payment page) and payTopup (executing payment), which the description names.

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?

Explicitly routes the agent: use this to price, then createTopupLink for a payment page, or payTopup with a Link token to pay. It even adds a guardrail ('Never buy credits the user did not ask for') that tells the agent when not to proceed to purchase.

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.