Skip to main content
Glama

verify_transaction

Validate whether an Apple App Store transaction is valid and not refunded to support access control decisions.

Instructions

Verify if a transaction is valid and not refunded. Quick validation for access control decisions.

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": {
      "transactionId": "<transactionId>"
    },
    "name": "verify_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionIdYesTransaction ID to verify

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It helpfully discloses the two conditions evaluated (validity and refund status), implying a read-only check, but says nothing about the response shape, behavior for unknown transaction IDs, or any auth/rate constraints.

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?

Two short sentences with the core purpose front-loaded and the use case second. Only minor slack from the self-describing adjective "Quick," but nothing is wasted.

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 single-parameter tool this is close to sufficient, but with no annotations and no output schema, the description is the only place a caller could learn what verification actually returns (boolean, status object, error on unknown ID) and it omits that.

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 only one parameter and schema description coverage is 100%, so the schema already fully documents transactionId. The description adds no format, sourcing, or ID-type guidance beyond it, which puts it at the baseline.

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 ("Verify ... a transaction") and narrows the meaning of "verify" to two concrete conditions: validity and non-refunded status. That distinguishes it from retrieval siblings like get_transaction_info or get_transaction_history, though it never names them explicitly.

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?

"Quick validation for access control decisions" gives an implied use context that separates it from detail-fetching tools. However, it never states when NOT to use it or points to an explicit alternative for full transaction details, leaving the agent to infer the split.

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

Deploy Server

Other Tools