CoFounder.im
Overview API Docs MCP Docs

buy_credits

READ

Get links to purchase additional credits. Returns available packages with checkout URLs.

The buy_credits tool returns a list of available one-time credit packages, each with a direct Stripe checkout URL that includes an MCP source tracking parameter.

Use this tool when account_status shows low credits and you need to top up before running more agents. The AI agent can present these links directly to the user so they can purchase without navigating to the website manually.

Each package entry includes:

  • name — the package display name
  • credits — number of credits included
  • price — formatted price string, e.g. “$19.00”
  • checkout_url — direct link to the Stripe checkout page

Checkout URLs include ?utm_source=mcp for tracking. Links open the Stripe checkout page directly.

Parameters

No parameters required.

Response Example

{
  "packages": [
    {
      "name": "Starter Pack",
      "credits": 500,
      "price": "$9.00",
      "checkout_url": "https://cofounder.im/stripe/checkout/onetime/pkg_starter?utm_source=mcp"
    },
    {
      "name": "Growth Pack",
      "credits": 1500,
      "price": "$24.00",
      "checkout_url": "https://cofounder.im/stripe/checkout/onetime/pkg_growth?utm_source=mcp"
    },
    {
      "name": "Scale Pack",
      "credits": 5000,
      "price": "$69.00",
      "checkout_url": "https://cofounder.im/stripe/checkout/onetime/pkg_scale?utm_source=mcp"
    }
  ]
}

Errors

This tool has no error conditions.

Code Examples

curl -X POST https://mcp.cofounder.im/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "buy_credits",
      "arguments": {}
    }
  }'
{:ok, response} =
  Req.post("https://mcp.cofounder.im/mcp",
    json: %{
      "jsonrpc" => "2.0",
      "id" => 1,
      "method" => "tools/call",
      "params" => %{
        "name" => "buy_credits",
        "arguments" => %{}
      }
    },
    headers: [
      {"content-type", "application/json"},
      {"authorization", "Bearer YOUR_API_KEY"}
    ]
  )

response.body["result"]["content"]
|> hd()
|> Map.get("text")
|> IO.puts()
import requests

response = requests.post(
    "https://mcp.cofounder.im/mcp",
    headers={
        "Content-Type": "application/json",
        "Authorization": "Bearer YOUR_API_KEY",
    },
    json={
        "jsonrpc": "2.0",
        "id": 1,
        "method": "tools/call",
        "params": {
            "name": "buy_credits",
            "arguments": {},
        },
    },
)
data = response.json()
print(data["result"]["content"][0]["text"])
const response = await fetch("https://mcp.cofounder.im/mcp", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer YOUR_API_KEY",
  },
  body: JSON.stringify({
    jsonrpc: "2.0",
    id: 1,
    method: "tools/call",
    params: {
      name: "buy_credits",
      arguments: {},
    },
  }),
});

const data = await response.json();
console.log(data.result.content[0].text);

Try It

This sends a real request to your account.