api_request
Make a raw API request to any Counterparty REST endpoint to access data or perform actions not covered by dedicated tools.
Instructions
Make a raw API request to any Counterparty REST endpoint not covered by the other tools. Full API reference: https://raw.githubusercontent.com/CounterpartyXCP/counterparty-core/refs/heads/master/apiary.apib — Example: endpoint="/v2/blocks/last", method="GET"
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": {
"endpoint": "<endpoint>"
},
"name": "api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method | GET |
| params | No | Query parameters (for GET) or body fields (for POST) | |
| endpoint | Yes | API endpoint path (e.g. /v2/blocks/last, /v2/addresses/{addr}/credits) |