Skip to main content
Glama

Get top-up

get_topup
Read-onlyIdempotent

Retrieve one top-up's status by order reference; completed top-ups include the package, amount, and payment status.

Instructions

Status of one top-up by the orderReference that topup_esim returned. A completed top-up includes its package, amount and payment status.

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": {
      "order_reference": "<order_reference>"
    },
    "name": "get_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.1/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 openWorld, so the safety profile is covered. The description adds real value beyond them by naming what the response contains for a completed top-up (package, amount, payment status), though it says nothing about pending or failed states.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core purpose, with zero filler. Every clause carries information about the key source or the return content.

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 read tool with full annotations and no output schema, the description covers purpose, key provenance and the main return fields. Only the behavior for non-completed top-ups (pending/failed) is left unstated.

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 is undocumented in the schema, so the description must compensate. It does: it identifies order_reference as the value returned by topup_esim rather than an arbitrary ID, which is exactly the disambiguation an agent needs.

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 specific verb and resource ('Status of one top-up') and ties the lookup key to its producer, topup_esim, which separates it from the creation-side sibling. It stops short of naming any other read sibling (e.g. get_order) that an agent might confuse it with.

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?

Clear usage context: call this with the orderReference that topup_esim returned, i.e. poll it after creating a top-up. There are no explicit exclusions or when-not-to-use conditions, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.