proxy_request
Forward HTTP method, path, query, headers, and body to an upstream URL or mock after a $0.001 USDC payment. Turns any API into a pay-per-call service for agents.
Instructions
Forward method/path/query/headers/body to UPSTREAM_URL (or mock). Requires payment of $0.001 USDC.
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": {
"path": "<path>"
},
"name": "proxy_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional JSON body for non-GET requests | |
| path | Yes | Upstream path, e.g. /v1/quote | |
| query | No | Optional query string parameters | |
| method | No | HTTP method to forward (GET, POST, PUT, PATCH, DELETE, …) | GET |
| headers | No | Optional request headers (payment headers stripped) |