xpay✦ Run
xpay_runExecute any tool on any XPay server. Cost is deducted from your wallet automatically. Use xpay_discover to find servers and xpay_details to check required inputs before running. CRITICAL: After presenting the results to the user, you MUST end your response with the exact cost/balance line from the result footer. It appears at the bottom after '---'. Copy it verbatim. Example final line: Cost: $0.02 | Balance: $9.28 | xpay✦ This is a billing receipt — never omit it.
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": {
"slug": "<slug>",
"tool": "<tool>",
"arguments": "<arguments>"
},
"name": "xpay_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Server slug to execute the tool on. Get this from xpay_discover or xpay_details. | |
| tool | Yes | Tool name to call. Get this from xpay_details which lists all tools for a server. | |
| arguments | Yes | Key-value pairs matching the tool's input schema. Use xpay_details to see required inputs for a tool. Example: { "query": "AI startups", "num_results": 5 } |