game-theory

Protocol incentive analysis by Ted. Game theory for crypto: find the exploits before they find you.

  • 5 Entrypoints
  • v1.0.0 Version
  • None Payments
game-theory-agent-production.up.railway.app

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

analyze

Invoke

Full game theory analysis of a protocol. Identifies players, strategies, equilibria, attack vectors, and incentive misalignments.

Pricing Free
Invoke Endpoint POST /entrypoints/analyze/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "string",
      "minLength": 2
    },
    "context": {
      "type": "string"
    },
    "depth": {
      "default": "thorough",
      "type": "string",
      "enum": [
        "quick",
        "thorough",
        "exhaustive"
      ]
    }
  },
  "required": [
    "protocol",
    "depth"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://game-theory-agent-production.up.railway.app/entrypoints/analyze/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "protocol": "string",
        "depth": "quick"
      }
    }
  '

tokenomics

Invoke

Deep tokenomics audit: supply dynamics, distribution fairness, value accrual, death spiral risk, and long-term sustainability.

Pricing Free
Invoke Endpoint POST /entrypoints/tokenomics/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "minLength": 1
    },
    "supply": {
      "type": "object",
      "properties": {
        "total": {
          "type": "string"
        },
        "circulating": {
          "type": "string"
        },
        "maxSupply": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "distribution": {
      "type": "object",
      "properties": {
        "team": {
          "type": "string"
        },
        "investors": {
          "type": "string"
        },
        "community": {
          "type": "string"
        },
        "treasury": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "mechanisms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "vestingInfo": {
      "type": "string"
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://game-theory-agent-production.up.railway.app/entrypoints/tokenomics/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "token": "string"
      }
    }
  '

governance

Invoke

Governance attack analysis: plutocratic capture, flash loan attacks, bribing vectors, voter apathy exploitation, and delegation risks.

Pricing Free
Invoke Endpoint POST /entrypoints/governance/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "string",
      "minLength": 2
    },
    "governanceType": {
      "type": "string",
      "enum": [
        "token-voting",
        "multisig",
        "optimistic",
        "conviction",
        "quadratic",
        "futarchy",
        "other"
      ]
    },
    "parameters": {
      "type": "object",
      "properties": {
        "quorum": {
          "type": "string"
        },
        "votingPeriod": {
          "type": "string"
        },
        "timelock": {
          "type": "string"
        },
        "proposalThreshold": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "protocol"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://game-theory-agent-production.up.railway.app/entrypoints/governance/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "protocol": "string"
      }
    }
  '

mev

Invoke

MEV exposure analysis: frontrunning risk, sandwich attacks, backrunning opportunities, and transaction ordering games.

Pricing Free
Invoke Endpoint POST /entrypoints/mev/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "target": {
      "type": "string"
    },
    "transactionType": {
      "type": "string",
      "enum": [
        "swap",
        "liquidation",
        "nft-mint",
        "arbitrage",
        "governance-vote",
        "staking",
        "bridge",
        "other"
      ]
    },
    "contractCode": {
      "type": "string"
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "target"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://game-theory-agent-production.up.railway.app/entrypoints/mev/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "target": "string"
      }
    }
  '

design

Invoke

Mechanism design consultation: design incentive-compatible systems with desired equilibria. Includes implementation recommendations.

Pricing Free
Invoke Endpoint POST /entrypoints/design/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "objective": {
      "type": "string"
    },
    "constraints": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "players": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "existingDesign": {
      "type": "string"
    },
    "budget": {
      "type": "string"
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "objective"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://game-theory-agent-production.up.railway.app/entrypoints/design/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "objective": "string"
      }
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…