Skip to main content
Glama

PHANTOM ID — agent payments (USDC on Base)

Get the status of a payment intent

phantom_get_payment_status
Read-onlyIdempotent

Read-only status of a payment intent (quoted / authorized / submitted / confirmed / failed) with its on-chain transaction hash once settled. Pass include_receipt=true to also fetch the signed EIP-712 receipt when the intent is confirmed. Use to poll after submit_payment when cryptographic verification is not needed; use verify_payment for full receipt verification.

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": {
      "payment_intent_id": "<payment_intent_id>"
    },
    "name": "phantom_get_payment_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_receiptNoAlso fetch the signed receipt when the intent is confirmed (default false).
payment_intent_idYesPayment intent ID returned by quote_payment.

Output Schema

NameRequiredDescriptionDefault
contentYes
isErrorNoTrue when the API call failed; text carries { error: { code, message } }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description still adds real behavior: the status lifecycle values, that the transaction hash appears only once settled, and that the signed EIP-712 receipt is fetched only when the intent is confirmed. It stops short of guidance on polling cadence or rate limits, which is the only remaining gap.

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?

Three tight sentences, front-loaded with what the tool returns and what it is for, followed by the optional flag and the sibling routing. No filler and nothing buried.

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?

The definition covers purpose, status domain, optional receipt behavior, and sibling selection, while annotations carry the safety profile and an output schema exists to explain the return shape. Nothing an agent needs to invoke it 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 coverage is 100%, with both parameters documented in the schema itself, including that payment_intent_id comes from quote_payment. The description restates the include_receipt condition and adds the 'EIP-712 signed' qualifier, but this is largely duplicative of 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 description gives a specific verb and resource ('Read-only status of a payment intent') and enumerates the possible statuses (quoted / authorized / submitted / confirmed / failed) plus the settled on-chain transaction hash. It also explicitly distinguishes itself from submit_payment and verify_payment, so an agent can select it without opening the schema.

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

Usage Guidelines5/5

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

It names the exact situation to use it ('poll after submit_payment when cryptographic verification is not needed') and the explicit alternative and condition ('use verify_payment for full receipt verification'). Both when-to-use and when-not-to-use are covered.

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.