Skip to main content
Glama

calculate_roi

Calculate ROI for AI implementations with payback period, NPV, and sensitivity analysis to assess financial viability and confidence based on input quality.

Instructions

Calculate return on investment for AI implementations with sensitivity analysis. Provides payback period, NPV, and confidence levels based on input quality.

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": {
      "current_metrics": "<current_metrics>",
      "target_improvement_percent": "<target_improvement_percent>",
      "implementation_cost_usd": "<implementation_cost_usd>"
    },
    "name": "calculate_roi"
  }
}

Input Schema

NameRequiredDescriptionDefault
current_metricsYes
time_horizon_monthsNoAnalysis time horizon in months (default: 24)
implementation_cost_usdYesTotal implementation cost in USD
ongoing_monthly_cost_usdNoOngoing monthly maintenance/license cost in USD
target_improvement_percentYesExpected improvement percentage (1-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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. It usefully discloses outputs (payback period, NPV, confidence levels) and the fact that results are sensitivity-adjusted by input quality, but it never states that this is a side-effect-free computation, what assumptions underlie the model, or how confidence degrades with sparse inputs.

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 sentences, both earning their place, with the core action front-loaded and outputs listed second. Minor vagueness in 'based on input quality' is the only soft spot.

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?

No output schema exists, so the description's enumeration of return values is genuinely useful. However, for a five-parameter nested computation with no annotations, it omits the deterministic/pure nature of the tool, modeling assumptions, and how missing optional costs are handled — a meaningful gap for correct invocation interpretation.

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 80%, so the schema already documents parameter meaning and defaults. The description adds only an indirect link between 'input quality' and confidence levels; it does not clarify units, interactions, or which inputs most affect sensitivity, which would have been the value-add above the schema.

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?

Specific verb plus resource ('Calculate return on investment') scoped to AI implementations, with a named method ('sensitivity analysis'). It is clearly distinguishable from the readiness/pilot/bottleneck siblings, though it does not explicitly contrast itself with them.

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

Usage Guidelines2/5

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

The description states what is computed but gives no when-to-use conditions, prerequisites, or exclusions. An agent is left to infer from the business framing whether this is the right tool versus, say, assess_ai_readiness when the user asks about viability.

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