Skip to main content
Glama

paymentSessions.getTransaction

Retrieve a specific payment session transaction by providing its unique ID and transaction ID to access transaction details.

Instructions

Get a payment session transaction by id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
transactionIdYes

Implementation Reference

  • Implementation of the 'paymentSessions.getTransaction' tool, which takes 'id' and 'transactionId' and executes a GET request to the payment session transaction endpoint.
    registerTool(
      'paymentSessions.getTransaction',
      'Get a payment session transaction by id.',
      {
        id: z.string().min(1),
        transactionId: z.string().min(1),
      },
      async ({ id, transactionId }) => client.get(`/payment-sessions/${id}/transactions/${transactionId}`),
    );
Behavior2/5

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

No annotations provided, so description carries full burden. 'Get' implies read-only but description omits error handling (404 behavior), rate limits, auth requirements, or whether this operation is idempotent. Insufficient for a data retrieval tool.

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?

Single sentence is efficient and front-loaded with no wasted words. However, brevity is inappropriate for the complexity—two undocumented parameters require explanatory expansion.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Inadequate for a tool with 2 required parameters and zero schema documentation. Fails to explain parameter relationships, output structure, or distinguish from similar sibling operations. 'Get by id' is insufficient context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage with two required ID fields ('id' and 'transactionId'). Description mentions 'by id' (singular) but fails to clarify which parameter is the payment session ID versus the transaction ID, leaving critical ambiguity unresolved.

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?

States the verb ('Get') and resource ('payment session transaction') but adds minimal detail beyond the tool name. Does not distinguish from sibling 'paymentSessions.listTransactions' (list vs single get) or clarify relationship to 'paymentSessions.get' (session vs transaction).

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?

Provides no guidance on when to use this versus 'paymentSessions.listTransactions' or prerequisites like requiring a valid session ID. No 'when-not' or alternative guidance present.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bkawk/ryft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server