Preflight Blockchain SQL Query

surf.onchain.sql.preflightRaw endpoint · live
Add to your agent

Validate and cost-estimate a ClickHouse SQL query (EXPLAIN ESTIMATE) without executing it.

Provider

Surfyour key

Runs on your own Surf key: add it under Provider keys in the app. Opentools doesn't charge for these runs.

Use it from your agent

View schema →

Raw endpoints take the provider's own request: body, queryParams and pathParams, as the provider documents them. Agents find it with search_tools once Opentools is connected.

curl
curl https://opentools.opentools.workers.dev/v1/jobs \
  -H "Authorization: Bearer $OPENTOOLS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"surf.onchain.sql.preflight","input":{"body":{}}}'

More from Surf