Skip to main content
Glama

Spendplane — AI Privacy, Redaction & Cost Routing

Estimate AI Cost & Hybrid Routing Savings

estimate_ai_workload_cost
Read-onlyIdempotent

Calculate estimated monthly AI inference cost and local/budget/premium routing mix based on workload volume, routing preference (budget, balanced, deadline), and project template.

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": "estimate_ai_workload_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateNoWorkload template type (default: agentic).
avg_input_tokensNoAverage input/prompt tokens per request (default: 1200).
monthly_requestsNoExpected API requests per month (default: 50000).
avg_output_tokensNoAverage output/completion tokens per request (default: 400).
routing_preferenceNoRouting strategy: budget (lowest cost), balanced, or deadline (speed/premium).
hardware_profile_idNoOptional local hardware profile key (e.g. apple-m2-pro, nvidia-rtx-4090).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this as read-only, idempotent, non-destructive, and closed-world. The description adds that the result is an estimate and that it produces a local/budget/premium routing mix, but it does not disclose assumptions, output format, or how the estimate is derived.

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?

The description is a single, front-loaded sentence with no filler. It states the core calculation and the main inputs efficiently.

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?

For a six-parameter read-only estimator with no output schema, the description covers the purpose and inputs but does not explain what the returned cost or routing mix looks like. It is adequate but leaves an agent guessing about the response structure.

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 100%, so the schema already documents all six parameters and their defaults. The description echoes the routing preference and template concepts but adds no syntax, format, or interaction detail beyond what the schema provides.

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 uses a specific verb (Calculate) and resource (estimated monthly AI inference cost and routing mix), and it names the key inputs. It is clear enough to distinguish from a pure pricing comparison, but it does not explicitly contrast itself with the sibling compare_llm_pricing tool.

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 description implies usage by listing workload volume, routing preference, and project template, but it gives no explicit when-to-use or when-not-to-use guidance and does not name an alternative for price comparison or other estimation scenarios.

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.

Resources