Skip to main content
Glama

ask

Answer natural-language analytics questions, translate supported ones into validated SQL, apply a default day window, and save question text to project history.

Instructions

Answer a natural-language analytics question and store its text in project history. Common questions use a deterministic planner; a configured API-side AI provider may receive the question, schema, project identifier, and dates for validated SQL. Unsupported questions return an explicit fallback. Avoid sensitive question text. days sets the default window (1..366); recognized date phrases may override it.

Input Schema

NameRequiredDescriptionDefault
daysNo
questionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, openWorldHint=true), and the description goes further by disclosing the data flow: question text, schema, project ID, and dates may be sent to a configured AI provider, and the question is persisted to project history. It also adds a useful privacy advisory (avoid sensitive question text). This is solid added context beyond structured fields.

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?

Front-loaded with purpose, then mechanism, then the privacy constraint and parameter note. Sentences are dense but each adds distinct information with no filler; slightly wordier than strictly necessary.

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

Completeness5/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 values need no explanation. The description covers purpose, execution paths, fallback behavior, privacy, and the one non-obvious parameter, which is sufficient for a two-parameter question tool.

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?

Schema description coverage is 0%, so the description carries the burden. It usefully explains days (default window 1..366, overridable by recognized date phrases), but says nothing about the question parameter beyond the general purpose, leaving half the parameters implicit.

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 names a specific verb and resource (answer a natural-language analytics question, store its text in project history), which is clearly distinct from metric-reporting siblings like query_metrics and run_query. It does not explicitly name or route against those siblings, so it falls short of full sibling differentiation.

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?

It implies when the tool applies (natural-language questions, with a deterministic planner for common ones and an explicit fallback for unsupported ones), but never states when to prefer it over siblings such as run_query or query_metrics. Usage context is implied rather than guided.

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