Call a raw Blockscout API endpoint
direct_api_callCall any Blockscout REST v2 endpoint by providing a relative path. Use for custom queries not covered by dedicated tools.
Instructions
Escape hatch: call any Blockscout REST v2 endpoint not covered by a dedicated tool. endpoint_path is relative to /api/v2 (e.g. "/addresses/0x.../counters"). Response is capped in size.
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": {
"chain": "<chain>",
"endpoint_path": "<endpoint_path>"
},
"name": "direct_api_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain name or numeric chain ID, e.g. "ethereum" or "1". Use get_chains_list to discover supported chains. | |
| cursor | No | Optional pagination cursor from a previous response. | |
| query_params | No | Optional query string parameters as a string map. | |
| endpoint_path | Yes | Path relative to /api/v2, starting with '/'. Example: "/addresses/0xabc.../counters". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| notes | No | ||
| pagination | No | ||
| instructions | No | ||
| data_description | No |