Skip to main content
Glama
PaddleHQ
by PaddleHQ

get_report_csv

Retrieve a temporary download link for ready CSV reports from Paddle Billing by report ID. The link expires after 3 minutes.

Instructions

This tool will retrieve a link to a CSV file for a report from Paddle by its ID.

Only returned for reports that are ready. This means Paddle has completed processing the report and it's ready to download. The status of a report can be checked using the get_report tool.

The link returned isn't a permanent link. It expires after 3 minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportIdYesPaddle ID of the report.

Implementation Reference

  • The main handler function that executes the tool logic by calling paddle.reports.getReportCsv with the reportId parameter and handling errors.
    export const getReportCsv = async (paddle: Paddle, params: z.infer<typeof Parameters.getReportCsvParameters>) => { try { const { reportId } = params; const report = await paddle.reports.getReportCsv(reportId); return report; } catch (error) { return error; } };
  • src/tools.ts:961-972 (registration)
    Tool registration in the tools array, defining method, name, description, Zod parameters schema, and required actions.
    { method: "get_report_csv", name: "Get a CSV file for a report", description: prompts.getReportCsvPrompt, parameters: params.getReportCsvParameters, actions: { reports: { read: true, get: true, }, }, },
  • src/api.ts:88-88 (registration)
    Maps the GET_REPORT_CSV constant to the getReportCsv handler function in the PaddleAPI toolMap.
    [TOOL_METHODS.GET_REPORT_CSV]: funcs.getReportCsv,
  • src/constants.ts:80-80 (registration)
    Constant definition for the tool method string used in registrations and mappings.
    GET_REPORT_CSV: "get_report_csv",

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/PaddleHQ/paddle-mcp-server'

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