Skip to main content
Glama

Check a credits payment link

getTopupLink
Read-onlyIdempotent

Where a payment page from createTopupLink is: open (not paid yet), paid (credits on their way), completed (the credits are in the account) or expired (never paid). Free, read-only.

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": {
      "session_id": "<session_id>"
    },
    "name": "getTopupLink"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavior: the tool is "Free" (consumes no credits) and it defines the exact semantics of each of the four returned states, including the subtle paid-versus-completed distinction. It does not say what happens for an invalid or unknown session_id.

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?

A single compact sentence with the state taxonomy front-loaded and no filler. The grammar is slightly awkward ("Where a payment page ... is:"), which costs a little readability, but nothing is wasted.

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 one-parameter read tool with no output schema, the description covers the important return values (the four states) and the cost profile, while annotations cover safety. The main remaining gap is the meaning and provenance of session_id, plus error behavior for an unknown link.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the burden for session_id, but it never names or explains the parameter. The only hint is that the page comes "from createTopupLink," which weakly implies session_id is the identifier returned by that tool, but this is left to inference.

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?

The description identifies the resource (a payment page created by createTopupLink) and enumerates the four possible states it reports, which lets an agent distinguish it from the write-oriented siblings createTopupLink and payTopup. The verb is elliptical ("Where a payment page ... is") rather than an explicit "returns the status of," so it is clear but not maximally crisp.

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?

Usage is implied: the phrase "a payment page from createTopupLink" signals this is the follow-up check after link creation, and the status list implies polling for payment completion. There is no explicit when-to-use, when-not-to-use, or statement of an alternative for inspecting payment state.

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.