chat
Send chat completion requests to LLMs through a pay-per-call x402 service on Base, requiring a funded wallet.
Instructions
Send a chat completion request to an LLM via true402 (PAID x402 service, USDC on Base). Requires a funded wallet (WALLET_PRIVATE_KEY) on the MCP server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"messages": "<messages>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID (e.g. gpt-4o, claude-3-5-sonnet) | |
| messages | Yes | Chat messages | |
| max_tokens | No | Maximum tokens to generate |