Skip to main content
Glama

Privi Agent Survival & Premium

LLM token cost simulator

privi_pro_model_cost_estimate
Read-only

Calculate provider-agnostic model cost from provided token rates. PAID ONLY: 5 prepaid credits; production billing required.

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": {
      "input_tokens": "<input_tokens>",
      "output_tokens": "<output_tokens>",
      "input_rate_million": "<input_rate_million>",
      "output_rate_million": "<output_rate_million>"
    },
    "name": "privi_pro_model_cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_tokensYes
output_tokensYes
input_rate_millionYes
output_rate_millionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, and the description is consistent with that by framing the tool as a pure calculation. Beyond the annotations it adds genuinely useful context an agent could not otherwise see: the call is PAID ONLY and consumes 5 prepaid credits with production billing required. It omits the return format, but the safety and gating profile is well covered.

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 short sentences, front-loaded with the core action before the billing constraint, with no filler. 'PAID ONLY' and 'production billing required' overlap slightly, but the total length is well matched to the tool's simplicity.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter calculation tool with zero schema documentation and no output schema, the description should at minimum clarify the arithmetic being performed and the units involved. It states the billing gate well but leaves the agent unable to predict what the tool returns or how the four inputs combine.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 and largely fails it. It never explains what input_tokens versus output_tokens mean, how the *_rate_million values relate to them, or what unit the result is in; only the vague phrase 'provided token rates' gestures at the rate parameters. The '_million' suffix in the names is the only unit hint available.

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 gives a specific verb and resource: 'Calculate provider-agnostic model cost from provided token rates.' That is clearly a read-only cost computation, and the title reinforces it as a simulator. It does not, however, distinguish this from the sibling 'privi_token_cost', which an agent could easily confuse it with.

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?

There is no statement of when to use this versus the sibling cost tools (privi_token_cost, privi_pro_usage_cost_breakdown), nor any prerequisites beyond the billing note. The phrase 'from provided token rates' hints that the caller supplies rates rather than looking them up, but that inference is left implicit.

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