← Tools Reference

Dune

Dune integration (Data, Developer Tools). Imported from open-connector.

API key5 toolshttps://api.dune.com/api/v1
GET
dune_list_queries
List queries owned by the Dune account associated with the API key.

/queries

2 parameters
ParamTypeRequiredDescription
limitintegeroptionalNumber of queries to return. Dune defaults to 20.
offsetintegeroptionalNumber of queries to skip. Dune defaults to 0.
GET
dune_get_query
Get SQL, parameters, ownership, and state for a Dune query.

/query/{queryId}

1 parameter
ParamTypeRequiredDescription
queryIdintegerrequiredUnique numeric ID of a Dune query.
GET
dune_get_latest_query_result
Get the latest stored JSON result for a Dune query without starting a new execution.

/query/{queryId}/results

9 parameters
ParamTypeRequiredDescription
queryIdintegerrequiredUnique numeric ID of a Dune query.
limitintegeroptionalMaximum number of result rows to return. Cannot be combined with sampleCount.
offsetintegeroptionalZero-based row offset used for pagination. Cannot be combined with sampleCount.
columnsstringoptionalComma-separated column names to return.
filtersstringoptionalDune result filter expression. Cannot be combined with sampleCount.
sortBystringoptionalDune result ordering expression, such as `volume desc` or `project asc, volume …
sampleCountintegeroptionalNumber of rows to sample uniformly. Cannot be combined with limit, offset, or f…
allowPartialResultsbooleanoptionalReturn a stored partial result when the full result was truncated.
ignoreMaxCreditsPerRequestbooleanoptionalBypass Dune's configured maximum credits per request. This may increase cost.
GET
dune_get_execution_status
Get the current state and metadata for a Dune query execution.

/execution/{executionId}/status

1 parameter
ParamTypeRequiredDescription
executionIdstringrequiredUnique ID of a Dune query execution.
GET
dune_get_execution_result
Get the JSON result and metadata for a Dune execution.

/execution/{executionId}/results

9 parameters
ParamTypeRequiredDescription
executionIdstringrequiredUnique ID of a Dune query execution.
limitintegeroptionalMaximum number of result rows to return. Cannot be combined with sampleCount.
offsetintegeroptionalZero-based row offset used for pagination. Cannot be combined with sampleCount.
columnsstringoptionalComma-separated column names to return.
filtersstringoptionalDune result filter expression. Cannot be combined with sampleCount.
sortBystringoptionalDune result ordering expression, such as `volume desc` or `project asc, volume …
sampleCountintegeroptionalNumber of rows to sample uniformly. Cannot be combined with limit, offset, or f…
allowPartialResultsbooleanoptionalReturn a stored partial result when the full result was truncated.
ignoreMaxCreditsPerRequestbooleanoptionalBypass Dune's configured maximum credits per request. This may increase cost.