MCP tool
estimate
Estimate a query's costRead-only
Dry-run one SELECT on one SQL source without executing it: bytes scanned, cost in USD, budget left, the credential that would be used, and the SQL exactly as it will run after guardrails (one read-only SELECT, LIMIT injected, tables checked against the catalog). Free and read-only: nothing runs and nothing is billed. Write the SQL in the dialect describe names for the table: BigQuery GoogleSQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax, `project.dataset.table` in backticks), PostgreSQL (https://www.postgresql.org/docs/current/sql-select.html) or Trino SQL on Amazon Athena (https://docs.aws.amazon.com/athena/latest/ug/select.html). A query on a fetch-only table (files, APIs) answers not_queryable with how to get the data instead.
Parameters
sqlstringrequired- One SELECT statement.
sourcestringoptional- Connection name, only needed if a table name exists on several sources.
Input schema (JSON)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"source": {
"default": null,
"description": "Connection name, only needed if a table name exists on several sources.",
"type": [
"string",
"null"
]
},
"sql": {
"description": "One SELECT statement.",
"type": "string"
}
},
"required": [
"sql"
],
"type": "object"
}