Skip to main content
Glama

Get Purchase

get_purchase
Read-only

One purchase from request_purchase: pending (waiting for the client), approved (pay now), used, rejected, expired or cancelled.

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

Input Schema

NameRequiredDescriptionDefault
purchase_idYesId from request_purchase.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds real value by disclosing the status lifecycle and glossing two states ('pending (waiting for the client)', 'approved (pay now)'), but it does not say what happens for an unknown or expired id, nor what the response contains.

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 that leads with the resource and then the status set. Nothing is padded, though the compressed phrasing ('One purchase from request_purchase') reads as shorthand rather than a complete statement of behavior.

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?

For a one-parameter read tool with no output schema, the description covers the main return dimension (status values) but leaves the rest of the returned purchase object unexplained and says nothing about error cases. It is adequate but not complete.

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% for the single purchase_id parameter, so the schema already carries the semantics. The description reinforces the provenance of the id ('from request_purchase') but adds no format or lookup detail beyond that; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the resource as a single purchase and ties it to request_purchase, which distinguishes it from list_purchases. However, it never states the action with a verb (fetch/retrieve by id) — the sentence is a noun phrase that mostly enumerates statuses, so the purpose must be inferred from the name.

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?

'One purchase from request_purchase' plus the schema note 'Id from request_purchase' implies the intended flow: call this after request_purchase to check status. There is no explicit when-to-use statement, no mention of when to prefer list_purchases instead, and no guidance on polling behavior, so usage is only implied.

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