Skip to main content
Glama

get_paywall_payments

Retrieve verified payment history for a specific x402 paywall, including transaction hashes, payer addresses, amounts, and timestamps.

Instructions

Get payment history for a specific x402 paywall. Returns verified payments with TX hashes, payer addresses, amounts, and timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paywall_idYesPaywall ID
pageNoPage number
per_pageNoResults per page (max 100)

Implementation Reference

  • The complete implementation of the 'get_paywall_payments' MCP tool. It's registered with server.tool(), defines input parameters using Zod schema (paywall_id, page, per_page), and includes a handler function that makes an API call to retrieve payment history for a specific paywall, returning verified payments with transaction hashes, payer addresses, amounts, and timestamps.
    // ─── Tool: get_paywall_payments ─────────────────────────────────
    
    server.tool(
      'get_paywall_payments',
      'Get payment history for a specific x402 paywall. ' +
        'Returns verified payments with TX hashes, payer addresses, amounts, and timestamps.',
      {
        paywall_id: z.number().int().describe('Paywall ID'),
        page: z.number().int().default(1).describe('Page number'),
        per_page: z.number().int().default(20).describe('Results per page (max 100)'),
      },
      async ({ paywall_id, page, per_page }) => {
        const data = await api(`/x402/paywalls/${paywall_id}/payments?page=${page}&per_page=${per_page}`);
        return jsonResponse(data);
      },
    );
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses the return format (verified payments with TX hashes, payer addresses, amounts, timestamps) and implies read-only behavior, but lacks critical details: it doesn't mention pagination behavior (implied by page/per_page parameters but not explained), rate limits, authentication requirements, or error conditions. For a tool with no annotation coverage, this is a significant 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?

The description is a single, efficient sentence that front-loads the core purpose ('Get payment history for a specific x402 paywall') and adds value with return details. Every word earns its place, with no redundancy or fluff.

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?

Given no annotations and no output schema, the description is moderately complete: it covers the purpose and return format, but lacks behavioral context (e.g., pagination, auth, errors). For a read-only tool with 3 parameters and 100% schema coverage, it's adequate but has clear gaps in usage guidelines and transparency.

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 description coverage is 100%, so the schema fully documents all three parameters (paywall_id, page, per_page). The description adds no additional parameter semantics beyond what's in the schema (e.g., it doesn't explain paywall_id format or pagination context). Baseline 3 is appropriate when the schema does the heavy lifting.

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 clearly states the verb 'Get' and resource 'payment history for a specific x402 paywall', making the purpose unambiguous. It distinguishes from siblings like 'get_paywall' (which likely returns paywall metadata) and 'list_paywalls' (which lists multiple paywalls). However, it doesn't explicitly contrast with 'get_x402_revenue' (which might return aggregated revenue data), leaving slight room for improvement.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a valid paywall_id), nor does it compare with siblings like 'get_x402_revenue' for revenue data or 'list_paywalls' for paywall listings. Usage is implied only by the description's focus on payment history.

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/hifriendbot/agentwallet-mcp'

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