Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Read prepaid credit purchases

read_purchases
Read-onlyIdempotent

Read your account's prepaid credit purchases, newest first, including each purchase's state and its grant's expiry where recorded. Pass purchase for one id. An id belonging to another account gives an empty list. The answer includes whether sales are open, the purchase amounts and currency. This read changes nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_purchases"
  }
}

Input Schema

NameRequiredDescriptionDefault
purchaseNoA purchase id to read alone. An id absent from this account gives an empty list.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered; the description still adds genuine behavior beyond them — result ordering, the fields returned, and crucially that a foreign/unknown id returns an empty list rather than an error. The closing 'This read changes nothing' merely restates readOnlyHint and adds nothing.

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?

Sentence order is well front-loaded: identity and ordering, then the parameter case, then edge-case behavior, then contents. Only the final assurance 'This read changes nothing' is redundant with readOnlyHint=true and could be dropped.

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

Completeness5/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 return-value burden and does so: per-purchase state, grant expiry 'where recorded', whether sales are open, amounts and currency, plus sort order and empty-result semantics. Nothing an agent needs in order to call this correctly is missing.

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 description coverage is 100% and the single `purchase` parameter is already documented in the schema with the same empty-list caveat. The description's 'Pass `purchase` for one id' duplicates rather than extends the schema, so the baseline 3 applies.

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 first clause names a specific verb and resource ('Read ... prepaid credit purchases') and immediately scopes it to 'your account's', which cleanly separates it from the write-side sibling buy_credits and from read_balance. It also states ordering ('newest first'), so an agent knows exactly what class of data comes back.

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 the one real usage decision for this tool: call it without arguments for the full list, or 'Pass `purchase` for one id' for a single record. The foreign-id case ('gives an empty list') is documented so the agent isn't surprised. No explicit exclusion of alternative tools is stated, which keeps it just 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources