Skip to main content
Glama

archive_query

Archive or delete queries in Dune Analytics to manage your workspace and remove outdated data. This tool helps organize your analytics environment by removing unnecessary queries.

Instructions

Archive/Delete a query. (Requires Paid Plan)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
query_idYes

Implementation Reference

  • MCP tool handler for 'archive_query', decorated with @mcp.tool(). Calls dune_service to perform the archiving and handles errors with user-friendly messages.
    @mcp.tool() def archive_query(query_id: int) -> str: """ Archive/Delete a query. (Requires Paid Plan) """ try: dune_service.archive_query(query_id) return f"Successfully archived Query {query_id}." except Exception as e: return f"Error archiving query: {str(e)}"
  • Helper method in DuneClient service class that proxies the archive_query call to the underlying Dune API client and handles logging.
    def archive_query(self, query_id: int) -> bool: """ Archives a query. Returns True on success. """ try: return self.client.archive_query(query_id) except Exception as e: logger.error(f"Error archiving query {query_id}: {e}") raise

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nice-bills/dune-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server