Skip to main content

API Overview

ASG Agent Cloud uses the Model Context Protocol (MCP) for all tool interactions.

Endpoint

https://agent.asgcompute.com/mcp

Protocol

All requests use JSON-RPC 2.0 over HTTP POST.

Request Format

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "tool_name",
    "arguments": { ... },
    "_meta": {
      "payment": {
        "tx_signature": "optional-payment-proof"
      }
    }
  }
}

Methods

MethodDescription
tools/listList available tools
tools/callExecute a tool

Authentication

Authentication is via Solana wallet signature in the payment proof.

Response Format

Success (200)

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": "...",
    "_meta": {
      "receipt_id": "rcpt_abc123",
      "debited_usdc_microusd": 10000
    }
  }
}

Payment Required (402)

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": 402,
    "message": "Payment Required",
    "data": {
      "quote_id": "quote_xyz",
      "amount_usdc_microusd": 10000,
      "expires_at": "2026-02-01T12:01:00Z"
    }
  }
}

Tools

ToolDescription
inference_chatAI completions
serverless_invokeRun async jobs
gpu_provisionRent GPU pods
gpu_heartbeatExtend GPU lease
gpu_terminateEnd GPU lease
sandbox_executeExecute code
billing_get_receiptGet receipt details

Rate Limits

TierRequests/minRequests/day
Default6010,000
EnterpriseCustomCustom

Next Steps