Skip to main content
Glama

Read a purchase

get_purchase
Read-only

For a signed-in personal AI agent: where a credit purchase stands, awaiting_payment until the person pays on the pay page, then paid with the credits on their account.

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": {
      "orderId": "<orderId>"
    },
    "name": "get_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the returned status is a two-state progression and 'paid' means credits are on the account. It does not say what happens for an unknown or someone else's orderId, nor whether the read is eventually consistent.

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?

One compact sentence that front-loads the audience qualifier and then the resource and its states; nothing is redundant. The phrasing is slightly convoluted ('where a credit purchase stands'), which costs a point but not readability.

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?

With no output schema, the description does carry the burden of describing the return value, and it does so for the two main states. For a simple single-key read that is close to sufficient, but the missing orderId provenance and error behavior leave a gap an agent will hit on first use.

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?

There is one required parameter and schema description coverage is 0%, so the schema supplies only the name, type and length bounds. The description never explains what an orderId is or where the agent obtains it (presumably from buy_credits), leaving the caller to guess; the only compensation is that the entity being keyed is named as a 'credit purchase'.

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?

Names a specific resource and scope: the current state of a credit purchase, with the two lifecycle values spelled out ('awaiting_payment', 'paid'). It is clearly a read of purchase status rather than a purchase action, which separates it from siblings like buy_credits or get_prices, though the verb itself is only implied by 'where a credit purchase stands'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only scoping is an audience note ('For a signed-in personal AI agent'); there is no statement of when to call this versus buy_credits, get_account, or get_quick_book, and no prerequisites or exclusions. The payment lifecycle hints at polling after a purchase, but the agent must infer that entirely.

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