Connect Dune to Your AI Agent

Bring the query definition and its result rows into a focused analysis.

6 tools API key

Try a Dune Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo Skill Dune

Explain a saved query result

Use the SQL definition and stored rows to explain the requested metrics.

/oo Dune: Inspect Dune query [query ID] and its latest stored result. Explain [metrics or question], include the execution time and identify any sampling or partial-result limits.

Run a parameterized saved query

Execute the chosen query and analyze its completed rows.

/oo Dune: Execute Dune saved query [query ID] with parameters [values] and performance tier [tier]. Check execution status and summarize [requested metrics] from the completed result, or provide the execution ID if it is still running.

Start Working with Dune

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect Dune

    Connect with a Dune API key.

    Connect Dune →
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →

Choose Your Agent

  • Provide a saved query ID and any parameter values required by that query.
  • Stored results may be older than the current data. New executions are asynchronous and use Dune account credits according to your account terms.

Dune Tools

Read query SQL and parameters, retrieve the latest stored result or start a saved query execution. AI can explain metrics and trends in the selected rows while keeping execution timing and partial-result limits visible.

Saved queries and stored results

Inspect owned queries, SQL definitions and latest stored rows.

Query execution

Start a saved query and retrieve its status and results.

6 tools

List Queries

List queries owned by the Dune account associated with the API key.

dune.list_queries

Get Query

Get SQL, parameters, ownership, and state for a Dune query.

dune.get_query

Execute Query

Execute a saved Dune query and return an execution ID for status polling and result retrieval.

dune.execute_query

Get Latest Query Result

Get the latest stored JSON result for a Dune query without starting a new execution.

dune.get_latest_query_result

Get Execution Status

Get the current state and metadata for a Dune query execution.

dune.get_execution_status

Get Execution Result

Get the JSON result and metadata for a Dune execution.

dune.get_execution_result

Frequently Asked Questions

How do I request a fresh result?

Ask to execute the saved query with its parameter values, then retrieve that execution’s result. Reading the latest stored result does not start a new run.

What should an analysis cite?

Include the query ID, execution timing, selected columns and any sampling or truncation limits so readers can assess the scope of the findings.

Can this run arbitrary new SQL?

The available execution operation runs a saved query by ID. Create or edit the query in Dune before requesting an execution here.

Connect Dune

About Dune ↗