Skip to main content
Glama
profit-lens

profit-lens

13-week cash forecast

forecast_cash_13_weeks
Read-onlyIdempotent

Projects a 13-week cash flow forecast from sales, ad spend, costs, opex, and inventory purchases, flagging cash lows, buffer breaches, and stockouts; supports ad-spend and growth what-ifs.

Instructions

Direct-method weekly cash forecast (default 13 weeks): cash in from sales, ad spend, variable costs, fixed opex and inventory purchases (open POs plus simulated reorders), with the cash low point, weeks below the minimum cash buffer and projected stockouts. Supports what-if scenarios on ad spend and growth.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "forecast_cash_13_weeks"
  }
}

Input Schema

NameRequiredDescriptionDefault
weeksNo
startingCashNoOverride the opening cash balance (USD).
weeklyGrowthPctNoScenario: week-over-week demand growth in percent.
adSpendChangePctNoScenario: change paid media budget vs the current run-rate, in percent (e.g. -25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add modeling context, which it does: it names the specific outputs (cash low point, weeks below minimum buffer, projected stockouts) and discloses that reorders are simulated rather than committed. It does not say anything about computation cost or determinism beyond what idempotentHint implies.

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?

A single dense sentence that front-loads the method and horizon, followed by a short scenario sentence. The parenthetical component list is compact and informative, though the run-on structure takes some parsing.

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?

There is no output schema, but the description compensates by naming the key return metrics (low point, weeks below buffer, stockouts). All parameters are optional with sensible defaults, so the definition is complete enough to call correctly; only the shape/format of the response remains unspecified.

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 75%, so the schema already documents startingCash, weeklyGrowthPct and adSpendChangePct with their semantics. The description reinforces the 'what-if scenario' framing and the 13-week default, but adds no meaning beyond the schema text, and it never mentions the startingCash override. Baseline 3 is appropriate.

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 states a specific method and resource ('Direct-method weekly cash forecast') and enumerates the modeled inflows and outflows (sales, ad spend, variable costs, fixed opex, inventory purchases from open POs plus simulated reorders). This clearly separates it from the sibling analytics tools, which report historical P&L, margins, or reorder alerts rather than projecting cash.

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?

The closing sentence ('Supports what-if scenarios on ad spend and growth') implies when the tool is useful, but there is no explicit when-to-use vs when-not framing and no named alternative among the siblings. An agent must infer that this is the scenario/projection tool rather than being told so.

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