Skip to main content
Glama
botwallet-co

BotWallet MCP Server

by botwallet-co

botwallet_cancel_paylink

Cancel a pending payment request before it is paid or expires. Use this tool to stop payment processing by providing the request ID.

Instructions

Cancel a pending payment request. Only pending paylinks can be cancelled — paid or expired paylinks cannot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_idYesPayment request ID to cancel

Implementation Reference

  • The handler function for botwallet_cancel_paylink which calls ctx.sdk.cancelPaymentRequest.
    async handler(args, ctx) {
      try {
        const { request_id } = args as { request_id: string };
        const result = await ctx.sdk.cancelPaymentRequest({ request_id });
        return formatResult(result);
      } catch (e) {
        return formatToolError(e);
      }
    },
  • Input schema definition for botwallet_cancel_paylink.
    inputSchema: z.object({
      request_id: z.string().describe('Payment request ID to cancel'),
    }),
  • The full ToolDefinition for botwallet_cancel_paylink.
    const cancelPaylink: ToolDefinition = {
      name: 'botwallet_cancel_paylink',
      description: 'Cancel a pending payment request. Only pending paylinks can be cancelled — paid or expired paylinks cannot.',
      inputSchema: z.object({
        request_id: z.string().describe('Payment request ID to cancel'),
      }),
      async handler(args, ctx) {
        try {
          const { request_id } = args as { request_id: string };
          const result = await ctx.sdk.cancelPaymentRequest({ request_id });
          return formatResult(result);
        } catch (e) {
          return formatToolError(e);
        }
      },
    };

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/botwallet-co/mcp'

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