x402ai-mcp
v0.1.3Pay-per-call AI tools (embed, summarize, ask, policy-check) from x402ai, paid in USDC on Base.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
embed x402ai embed
Compute a text embedding vector. Costs $0.01 (USDC on Base) per call. Spends real money; subject to a per-payment and per-session cap. Pass the text in `input` (max 3000 chars).
| Parameter | Type | Description |
|---|---|---|
input * | string | The text to process, passed as "input": the text to embed or summarize, or for ask, the question. 1-3000 characters. |
summarize x402ai summarize
Summarize text. Costs $0.02 (USDC on Base) per call; takes 5-16 s. Spends real money; subject to a per-payment and per-session cap. Pass the text in `input` (max 3000 chars).
| Parameter | Type | Description |
|---|---|---|
input * | string | The text to process, passed as "input": the text to embed or summarize, or for ask, the question. 1-3000 characters. |
ask x402ai ask
Ask a question and get an answer. Costs $0.04 (USDC on Base) per call; takes 5-16 s. Spends real money; subject to a per-payment and per-session cap. Pass the question in `input` (max 3000 chars).
| Parameter | Type | Description |
|---|---|---|
input * | string | The text to process, passed as "input": the text to embed or summarize, or for ask, the question. 1-3000 characters. |
policy_check x402ai policy-check
Check up to 20 proposed agent actions (read, write, delete, exec, network, pay, self_modify) against a baseline or strict policy profile and get a verdict for each. Costs $0.01 (USDC on Base) per call for up to 20 actions. Spends real money; subject to a per-payment and per-session cap. It only checks the actions; it does not enforce or block anything.
| Parameter | Type | Description |
|---|---|---|
actions * | array | The proposed actions to check, 1-20. |
context * | object | Where the agent runs. |
profile * | string | Policy profile to check against: baseline or strict. |
health x402ai health
Free. Check GET /health on api.x402ai.dev and show local session spend. No key needed.
inspect x402 inspect
Free, never signs or pays. Fetch an https URL unpaid, decode its x402 payment-required header, and check it with Coinbase CDP validate and merchant discovery. Sends the URL to api.cdp.coinbase.com.
| Parameter | Type | Description |
|---|---|---|
url * | string | The https URL of the x402-protected endpoint to inspect (max 2048 chars). |
method | string | HTTP method for the unpaid probe request. Defaults to POST. |