ctcc_check
Deterministic pre-flight LLM token & budget circuit breaker ($0.002 USDC via x402 on Base Mainnet; 5 free daily sandbox calls <= 8 KB). Also supports Base Mainnet ERC-20 contract inspection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ctcc_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Target model (e.g. gpt-4o, claude-3.5-sonnet, gemini-3.1-pro) | |
| prompt | No | Prompt text to meter before calling an LLM | |
| address | No | Optional Base Mainnet contract address (0x + 40 hex chars) | |
| messages | No | Optional chat messages array [{role, content}] | |
| budget_usd | No | Optional max USD budget threshold | |
| max_output_tokens | No | Expected output tokens (default 1024) |