Skip to main content
Glama

Buy credits

get_topup_link

Create a payment link to buy credits. Packs: rm15 = RM15 for 15 credits; rm30 = RM30 for 35 credits; rm50 = RM50 for 75 credits. Payment methods: chip = FPX online banking or DuitNow QR (choose on the payment page); fpx = FPX online banking (personal); fpx_b2b1 = FPX online banking (business); duitnow_qr = DuitNow QR; tng = Touch 'n Go eWallet; grabpay = GrabPay; card = Credit / debit card. Ask the user which method they prefer if they haven't said (default "chip"). Give the link to the user to open.

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": "<pack>"
    },
    "name": "get_topup_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
packYes
methodNochip

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, destructiveHint=false; the description adds real context beyond that by disclosing that this produces an external payment page with selectable methods at checkout. It is missing auth/permission requirements and whether links expire or are single-use, which matters for a non-destructive but open-world mutation.

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?

Purpose is front-loaded in the first sentence, followed by the two enumerations an agent actually needs. It is dense, with long semicolon chains, but essentially every clause carries decision-relevant content; only the closing 'give the link to the user' sentence is mildly redundant with the first.

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?

With no output schema, the description usefully implies the return value (a link the user opens) and explains both parameters exhaustively. Remaining gaps are link lifetime, whether any charge occurs at creation, and account/currency prerequisites — meaningful for an open-world payment tool but not blocking a correct call.

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

Parameters5/5

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

Schema coverage is 0%, so the schema conveys nothing beyond raw enum tokens, and the description fully compensates: each pack is priced against a credit quantity (rm15 = 15 credits, rm30 = 35, rm50 = 75) and every method token is expanded, including that 'chip' lets the payer choose FPX or DuitNow QR on the page. An agent can choose correct values without guessing.

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?

The description opens with a specific verb and resource: 'Create a payment link to buy credits.' That is unambiguous and does not overlap with any sibling (get_upload_link is a different link type, get_payments reads existing payments). The title 'Buy credits' plus the packs list confirm the commercial scope without needing the schema.

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?

It gives clear procedural guidance: ask the user which payment method they prefer if not stated, default to 'chip', and hand the resulting link to the user to open. What it lacks is any when-not guidance or named alternatives among siblings, though none of the listed siblings plausibly compete for this action.

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