Skip to main content
Glama
dqhieu
by dqhieu

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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`
            }
          ]
        };
      },
    );
Install Server

Other Tools

Related 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/dqhieu/compresto-mcp'

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