Skip to main content
Glama

regenerate_forecast_narrative

Re-run ONLY the AI narration step against an existing completed forecast run. Costs 1-2 AI credits (no engine work). Returns the new narration; the old one is overwritten in the run record. Refuses when the run is not yet complete or when narration_enabled=false on the forecast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesUUID of a COMPLETED run. Use get_forecast_run with run_id='latest' first if you want the most recent.
forecast_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
narrationYesNarration payload (summary, highlights, risks, recommendations, methodology_note, credits_consumed, model_used, generated_at, fallback_reason). fallback_reason is null on success; one of 'insufficient_credits', 'llm_failed', 'disabled', 'org_disabled' when narration was skipped.

TDQS

A4.5/5.0
Behavior5/5

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

The description discloses cost (1-2 AI credits), side effect (overwrites old narration), return value (new narration), and failure preconditions (incomplete run, narration_enabled=false). This is exactly the kind of behavioral context that annotations do not provide, especially since all hints are false/uninformative. No contradiction with annotations.

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

Conciseness5/5

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

Three dense sentences, each adding critical information: purpose and scope, cost and side effect, and refusal conditions. No filler, front-loaded with the primary action. Efficient and well-structured.

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?

For a mutation tool with two required parameters, the description covers purpose, preconditions, cost, side effects, and return value. An output schema exists, so return format is handled elsewhere. No missing context that would prevent an agent from using it correctly.

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 coverage is 50% (run_id has description, forecast_id does not). The description adds context by tying both IDs to an 'existing completed forecast run' and highlighting that run_id must reference a completed run. However, it does not explicitly define forecast_id's role (e.g., the owning forecast), leaving some ambiguity. Partially compensates for the coverage gap but not fully.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Re-run ONLY the AI narration step against an existing completed forecast run.' This clearly distinguishes it from running the full forecast (e.g., run_forecast) and other siblings. The scope is precise and immediately understandable.

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

Usage Guidelines4/5

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

The description states when to use the tool (regenerate narration on an existing completed run) and explicitly identifies refusal conditions (run not complete, narration_enabled=false). It does not name an alternative tool, but the 'ONLY' phrasing and mention of 'no engine work' imply when not to use it (for full re-runs). Clear context with minor room for explicit sibling differentiation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.9/5.0
Disambiguation4/5

Tools are generally distinct by resource and action, but a few status polling tools (check_integration_status, get_analysis_status) could be confused without careful reading; descriptions clarify the difference.

Naming Consistency4/5

Most tools use a consistent verb_noun snake_case pattern, but there is minor variation (e.g., 'check' vs 'get' for status, and some compound nouns like 'request_oauth_integration_url').

Tool Count4/5

26 tools is slightly above the typical range but appropriate for a comprehensive BI platform covering data ingestion, analysis, forecasting, reports, dashboards, and account management; each tool has a clear purpose.

Completeness2/5

The tool surface is heavily read-oriented, lacking update and delete operations for most resources (data sources, dashboards, reports, forecasts). This leaves significant lifecycle management gaps for an agent.

Resources