Skip to main content
Glama

ask_business_question

Converts plain-English business questions into safe DuckDB SQL, executes read-only queries, and returns executive summaries, key findings, and chart recommendations.

Instructions

Answer a plain-English business question using the full analytics pipeline.

Runs semantic resolution, safe DuckDB SQL generation, query execution, and returns an executive summary, key findings, and a chart recommendation.

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": {
      "question": "<question>"
    },
    "name": "ask_business_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does usefully disclose the internal stages (semantic resolution, SQL generation, execution) and notes the SQL is 'safe DuckDB,' which tells the agent the underlying engine and that query generation is guarded. However, it says nothing about latency or cost of a multi-stage LLM pipeline, permissions/data scope, or failure modes, which are material for a tool that executes queries.

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?

The purpose is front-loaded in the first sentence and the pipeline/return details follow in a compact second block. Every clause conveys distinct information with no filler. Minor deduction for the awkward line-broken formatting, which fragments what would otherwise be a tight two-sentence definition.

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

Completeness4/5

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

An output schema exists, so the description need not detail return values, and it still helpfully names the headline outputs (executive summary, key findings, chart recommendation). For a single-parameter tool this is nearly complete; the main gap is any note on execution cost or latency for a pipeline that runs SQL.

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

Parameters3/5

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

There is one required parameter with 0% schema description coverage, so the description must compensate. It does add meaning by specifying the question should be plain-English and business-oriented, which constrains phrasing. It gives no guidance on granularity, specificity, or example formulations, so the compensation is only partial.

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?

The description states a specific verb and resource ('Answer a plain-English business question') and scopes it as the 'full analytics pipeline,' which implicitly separates it from the sibling tools generate_sql_only and execute_analytics_sql. It also enumerates the pipeline stages it runs, so an agent knows this is the end-to-end option rather than a single step. It stops short of naming the siblings 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: the phrase 'full analytics pipeline' suggests this is the tool to pick when the agent wants question-in/answer-out rather than raw SQL. There is no explicit statement of when to prefer generate_sql_only or execute_analytics_sql, nor any exclusion or prerequisite. An agent must infer the routing decision from the pipeline wording.

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