Skip to main content
Glama

get_payment_credentials

Retrieves a scoped payment credential for an authorized checkout session, limited to the approved merchant and amount, enabling AI agents to complete purchases without exposing real card numbers.

Instructions

Retrieves a scoped payment credential for a session the customer has authorized. The credential is an agentic PAN from Visa Intelligent Commerce or Mastercard Agent Pay, or a card from the customer's Stripe Link wallet. It is limited to the approved amount and merchant. The customer's real card number is never returned. Use the credential only to complete the purchase.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "get_payment_credentials"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe sessionId returned by create_payment_session
merchantUrlNoOptional website URL of the merchant the credentials will be used on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses the data type returned (agentic PAN or Link card), the enforced limits (approved amount and merchant only), and a privacy guarantee (the real card number is never returned). What it omits is failure behavior — expired/unauthorized sessions, whether credentials are single-use or re-fetchable, and any rate or security constraints on retrieval.

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?

Front-loaded with what the tool does, followed by what is returned and the usage restriction; every sentence contributes information. The three-way enumeration of credential sources (Visa Intelligent Commerce, Mastercard Agent Pay, Stripe Link) is slightly expansive but genuinely informative for an agent reasoning about the returned value.

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

Completeness4/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 must characterize the return value — it does so precisely, including the scoping limits and privacy property that an agent most needs before acting on a credential. Missing pieces are error and lifecycle conditions (expired or already-consumed credentials), which would round out a sensitive, security-relevant retrieval tool.

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%, so the schema already documents both sessionId and merchantUrl, and the baseline of 3 applies. The description adds only indirect meaning — the 'merchant' scoping and the session-authorization prerequisite — without explaining how merchantUrl affects credential issuance or what happens if it is omitted.

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 ('Retrieves a scoped payment credential') and immediately bounds the scope ('for a session the customer has authorized'). The second and third sentences explain what the credential actually is (agentic PAN from Visa Intelligent Commerce or Mastercard Agent Pay, or a Stripe Link card), which makes the resource concrete rather than abstract. It stops short of explicitly naming a sibling tool, though the schema's sessionId note points back to create_payment_session.

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?

Usage is implied rather than spelled out: 'for a session the customer has authorized' signals a precondition (authorization must already exist) and 'Use the credential only to complete the purchase' is a constraint on the returned value, not on when to call the tool. There is no guidance on when-not to call it, what to do if the session is unauthorized or expired, or how it relates to create_credential_session or create_payment_session beyond the schema hint.

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