Skip to main content
Glama

ask_question

Answer business questions with guarded, read-only SQL against the tested model, returning the SQL, the resulting rows, and their source lineage.

Instructions

Answer a business question with guarded, read-only SQL over the tested model. The answer includes the SQL, the rows and where they came from.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "question": "<question>"
    },
    "name": "ask_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYes
project_idYes

Output Schema

NameRequiredDescriptionDefault
sqlYes
rowsYes
chartYes
blockedYes
columnsYes
messageYes
evidenceYes
questionYes
reason_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does disclose two meaningful traits: the SQL is 'guarded, read-only', and the response returns the SQL, rows and provenance. It leaves unresolved what 'guarded' enforces (row limits, timeouts, denied operations), what happens on an unanswerable question, and whether the query is executed or merely proposed — all important for an agent deciding to rely on the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core action front-loaded and the return content following. Nothing is padded, though the phrase 'where they came from' is vaguer than a plain statement about provenance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-shape explanation is largely redundant, yet the description still spends words on it while leaving the required project_id unexplained and the meaning of 'guarded' / 'tested model' unstated. For a two-required-parameter tool with no annotations, that is a moderate but real gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it only partially does: 'business question' maps loosely to the question parameter. The required project_id is never explained — an agent cannot tell whether it identifies the semantic model, the warehouse connection, or the output scope.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('Answer a business question with ... SQL over the tested model') and signals the read-only, guarded nature of the query. It distinguishes itself from siblings like export_sql or profile_tables by outcome (question in, SQL plus rows out), though it never names another tool to contrast with explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer it should call this when it has a business question rather than a known SQL statement, and that the model is already 'tested'. There is no explicit when-not guidance, no mention of prerequisites such as an approved/loaded project, and no routing to alternatives like export_sql for raw SQL retrieval.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.