Skip to main content
Glama

list_paywalls

Retrieve and view all x402 paywalls with their IDs, names, pricing, access URLs, payment counts, and revenue totals for monitoring and management.

Instructions

List all your x402 paywalls. Returns paywall IDs, names, pricing, access URLs, payment counts, and revenue totals.

Input Schema

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

Implementation Reference

  • Handler function that executes the list_paywalls tool logic - makes an API call to /x402/paywalls endpoint with pagination parameters and returns the JSON response
    async ({ page, per_page }) => {
      const data = await api(`/x402/paywalls?page=${page}&per_page=${per_page}`);
      return jsonResponse(data);
    },
  • Input schema definition for list_paywalls tool using Zod - defines page number (default 1) and per_page results (default 50, max 100) parameters
    {
      page: z.number().int().default(1).describe('Page number'),
      per_page: z.number().int().default(50).describe('Results per page (max 100)'),
    },
  • src/index.ts:1266-1278 (registration)
    Registration of list_paywalls tool with the MCP server - defines tool name, description, input schema, and handler function
    server.tool(
      'list_paywalls',
      'List all your x402 paywalls. Returns paywall IDs, names, pricing, ' +
        'access URLs, payment counts, and revenue totals.',
      {
        page: z.number().int().default(1).describe('Page number'),
        per_page: z.number().int().default(50).describe('Results per page (max 100)'),
      },
      async ({ page, per_page }) => {
        const data = await api(`/x402/paywalls?page=${page}&per_page=${per_page}`);
        return jsonResponse(data);
      },
    );

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