Skip to main content
Glama

weekly_report

Generate verified weekly revenue reports with accurate data for tracking opportunities like bounties, grants, and freelance gigs.

Instructions

Generate honest weekly revenue report — no inflated numbers, only verified data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the weekly_report tool which aggregates revenue data and PR statistics to generate a weekly report.
        case "weekly_report": {
          const db = loadDB();
          const prs = checkAllPRs();
          const now = new Date();
          const weekAgo = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000);
          const thisWeek = db.entries.filter(
            (e) => new Date(e.submitted_at || "").getTime() > weekAgo.getTime()
          );
    
          const report = `
    WEEKLY REVENUE REPORT — ${now.toISOString().slice(0, 10)}
    ============================================================
    
    LIFETIME:
      Total Earned: $${db.total_earned.toFixed(2)}
      Total Pending: $${db.total_pending.toFixed(2)}
      Total Entries: ${db.entries.length}
    
    THIS WEEK:
      New Entries: ${thisWeek.length}
      New Value: $${thisWeek.reduce((s, e) => s + e.amount_usd, 0).toFixed(2)}
      Paid: $${thisWeek.filter((e) => e.status === "paid").reduce((s, e) => s + e.amount_usd, 0).toFixed(2)}
    
    OPEN PRs: ${prs.length}
    PENDING BOUNTIES: ${db.entries.filter((e) => e.source === "bounty" && e.status === "submitted").length}
    PENDING GRANTS: ${db.entries.filter((e) => e.source === "grant" && e.status === "submitted").length}
    
    HONEST ASSESSMENT:
      - Only count PAID entries as revenue
      - Pending = not guaranteed
      - Scams filtered: ${db.scam_list.length} known scam repos
      - All numbers verified against real data
    `.trim();
    
          return { content: [{ type: "text", text: report }] };
        }
  • src/index.ts:364-367 (registration)
    Registration of the weekly_report tool within the server tool list.
      name: "weekly_report",
      description: "Generate honest weekly revenue report — no inflated numbers, only verified data",
      inputSchema: { type: "object" as const, properties: {} },
    },

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/ElromEvedElElyon/revenue-mcp'

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