Skip to main content
Glama

add_revenue_entry

Add a new revenue opportunity to track bounties, grants, product sales, freelance gigs, or crypto earnings with details like amount, status, and deadlines.

Instructions

Track a new revenue opportunity (bounty, grant, product sale, freelance gig)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesRevenue source type
descriptionYesWhat is this opportunity
amount_usdYesDollar amount (honest estimate, not inflated)
statusNopending
urlNoLink to the opportunity
deadlineNoDeadline (ISO date)
notesNoAdditional notes

Implementation Reference

  • The handler implementation for 'add_revenue_entry', which reads the DB, creates a new entry with generated ID and submitted_at, and saves it.
    case "add_revenue_entry": {
      const db = loadDB();
      const entry: RevenueEntry = {
        id: generateId(),
        source: (args as any).source,
        description: (args as any).description,
        amount_usd: (args as any).amount_usd,
        status: (args as any).status || "pending",
        url: (args as any).url,
        deadline: (args as any).deadline,
        submitted_at: new Date().toISOString(),
        notes: (args as any).notes,
      };
      db.entries.push(entry);
      saveDB(db);
      return {
        content: [{ type: "text", text: `Added: ${entry.id} — ${entry.source} $${entry.amount_usd} (${entry.status})\n${entry.description}` }],
      };
  • The schema registration for 'add_revenue_entry', defining inputs like source, description, amount_usd, status, url, deadline, and notes.
    {
      name: "add_revenue_entry",
      description: "Track a new revenue opportunity (bounty, grant, product sale, freelance gig)",
      inputSchema: {
        type: "object" as const,
        required: ["source", "description", "amount_usd"],
        properties: {
          source: { type: "string", enum: ["bounty", "grant", "product", "freelance", "crypto"], description: "Revenue source type" },
          description: { type: "string", description: "What is this opportunity" },
          amount_usd: { type: "number", description: "Dollar amount (honest estimate, not inflated)" },
          status: { type: "string", enum: ["pending", "submitted", "approved", "paid", "rejected"], default: "pending" },
          url: { type: "string", description: "Link to the opportunity" },
          deadline: { type: "string", description: "Deadline (ISO date)" },
          notes: { type: "string", description: "Additional notes" },
        },
      },
    },

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