get-total-processed-files
Retrieve the total number of files processed by Compresto's compression app. This MCP tool provides real-time statistics for monitoring file processing activity and usage metrics.
Instructions
Get total processed files of Compresto
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-total-processed-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:82-106 (handler)Handler function that fetches landing page data from Supabase API and returns the total number of processed (compressed) videos.
async () => { const url = `${API_BASE}/v1/getLandingPageData`; const response = await makeSupabaseRequest<LandingPageDataResponse>(url); if (!response) { return { content: [ { type: "text", text: "Failed to fetch user data" } ], isError: true }; } return { content: [ { type: "text", text: `Processed ${response.data.totalCompressedVideos} files` } ] }; }, - src/index.ts:78-107 (registration)Registration of the 'get-total-processed-files' tool using server.tool, including name, description, empty input schema, and inline handler.
server.tool( "get-total-processed-files", "Get total processed files of Compresto", {}, async () => { const url = `${API_BASE}/v1/getLandingPageData`; const response = await makeSupabaseRequest<LandingPageDataResponse>(url); if (!response) { return { content: [ { type: "text", text: "Failed to fetch user data" } ], isError: true }; } return { content: [ { type: "text", text: `Processed ${response.data.totalCompressedVideos} files` } ] }; }, );