Skip to main content
Glama

ai_token_arbitrage

Calculate multi-model LLM API token inference costs, prompt caching economics (up to 90% discount), batch discounts, and cost disparity across Claude 3.5 Sonnet, GPT-4o, DeepSeek V3/R1, and Gemini 1.5 Pro/Flash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isBatchNoWhether asynchronous batch API 50% discount applies
promptTokensNoInput prompt token count per API request
cacheHitRatioNoPrompt cache hit ratio (0.0 to 1.0 or 0 to 100%)
completionTokensNoOutput completion token count per API request

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The description discloses useful calculation behavior: prompt caching up to 90%, batch discounts, and cost comparison across named models. However, with no annotations, it carries the full burden and does not state whether it is purely read-only, what output shape it returns, or what pricing data and assumptions it relies on.

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?

One dense sentence, front-loaded with the action and object, and every phrase adds specific detail such as discount rates and model coverage without repetition or filler.

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?

For a four-parameter calculator with no required inputs and a fully described schema, the description is nearly complete: it specifies the computation domain, applicable discounts, and model coverage. The only notable gap is the absence of an explicit output description, but the phrase 'cost disparity' conveys the comparison intent.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes all four parameters, so the baseline is 3. The description adds value by tying parameters to caching discounts and batch discounts, and by naming the model set the cost disparity calculation covers, which contextualizes promptTokens, completionTokens, cacheHitRatio, and isBatch.

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?

Description opens with the verb 'Calculate' and a specific resource: multi-model LLM API token inference costs. It further enumerates caching discounts, batch discounts, and the exact model set, making it clearly distinguishable from siblings like cloud_egress_finops.

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?

No guidance is given for when to prefer this tool over alternatives, and no prerequisites or when-not-to-use conditions are stated. The intended use case of comparing LLM token costs across models is only inferred from the name and terms like 'arbitrage'; there is no explicit trigger or context.

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

B3.4/5.0
Disambiguation4/5

Most tools are clearly separated by domain and target calculation, such as rocket_deltav versus projectile_motion or black_scholes versus compound_wealth. A few pairs like home_loan_emi/mortgage_piti and contractor_parity/billable_floor could be initially confused, but the descriptions resolve the intended use cases.

Naming Consistency4/5

All tool names are lowercase snake_case and generally follow a topic-plus-suffix pattern, which is readable and consistent. The pattern is not a strict verb_noun convention, and acronym-heavy names like feie_nomad_tracker, scorp_optimizer, and casio_991_solve introduce stylistic variance.

Tool Count3/5

At exactly 25 tools, this is at the heavy but still usable end of the scale. The broad spread across tax, finance, engineering, physics, math, and cloud cost makes the server feel more like several domain calculators merged into one service.

Completeness4/5

Each tool is a self-contained calculation with no missing follow-up operations, so there are no obvious dead ends for the workflows it targets. The main gaps are minor adjacent calculators—such as NPV, depreciation, or broader statistical inference—that agents could work around or obtain elsewhere.

Resources