Skip to main content
Glama

subscriptions.getPaymentSessions

Retrieve payment session history for a Ryft subscription to track transactions and manage billing records.

Instructions

List payment sessions for a Ryft subscription.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
startTimestampNo
endTimestampNo
ascendingNo
limitNo
startsAfterNo

Implementation Reference

  • The registration and handler implementation for the 'subscriptions.getPaymentSessions' tool. It validates the input using the schema and performs a GET request to the Ryft API.
    registerTool(
      'subscriptions.getPaymentSessions',
      'List payment sessions for a Ryft subscription.',
      subscriptionPaymentSessionsSchema.shape,
      async (args) => {
        const parsed = subscriptionPaymentSessionsSchema.parse(args);
        const { id, ...query } = parsed;
        return client.get(`/subscriptions/${id}/payment-sessions`, { query: query as Record<string, QueryValue> });
      },
    );
  • The Zod schema defining the input parameters for the 'subscriptions.getPaymentSessions' tool.
    const subscriptionPaymentSessionsSchema = z.object({
      id: z.string().min(1),
      startTimestamp: z.number().int().optional(),
      endTimestamp: z.number().int().optional(),
      ascending: z.boolean().optional(),
      limit: z.number().int().positive().max(100).optional(),
      startsAfter: z.string().optional(),
    });
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It only indicates this is a list operation but fails to mention pagination behavior (despite limit/startsAfter parameters), result ordering, or data freshness. It does not contradict the likely read-only nature, but provides minimal safety/behavior context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is efficiently worded without redundancy, meriting a conciseness score of 3. However, for a 6-parameter tool with zero schema documentation, this brevity is inappropriate and leaves significant gaps.

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?

Given 6 parameters with complex filtering (timestamps, pagination via limit/startsAfter) and 0% schema coverage, the description is inadequate. It lacks required parameter documentation, output format details, and pagination guidance necessary for correct invocation.

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

Parameters1/5

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

Schema description coverage is 0%, requiring the description to compensate. It completely fails to do so. The critical required parameter 'id' is undocumented (is it the subscription ID or session ID?), and timestamp fields lack context for what they filter (creation vs payment date). No parameter explanations are provided.

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?

The description provides a clear verb 'List' and resource 'payment sessions' and scopes the operation to 'a Ryft subscription', which distinguishes it from the generic paymentSessions.list sibling. However, it could be more explicit about the subscription ID filter mechanism.

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?

No explicit guidance on when to use this tool versus the sibling paymentSessions.list or paymentSessions.get. While 'for a Ryft subscription' implies subscription-specific context, it does not clarify the workflow or prerequisites (e.g., having a subscription ID).

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