Skip to main content
Glama

TokenMargin

Server Details

Zero-auth LLM API pricing, model cost comparison, and multi-turn agent loop cost simulator across 470+ models.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A3.7/5.0

Scored across 3 tools

Disambiguation4/5

The three tools target distinct stages: live pricing lookup, head-to-head model comparison, and agent-loop cost modeling. However, compare_models and calculate_agent_loop_cost both return monthly cost estimates, so an agent may briefly deliberate over which cost tool fits a given query.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern: calculate_agent_loop_cost, compare_models, and get_llm_pricing. There are no mixed conventions or vague standalone verbs.

Tool Count5/5

Three tools is appropriate for this narrow pricing and cost-analysis domain. Each tool maps to a clear operation—retrieve pricing, compare models, or compute agent-loop costs—with no filler.

Completeness4/5

The surface covers live pricing retrieval, two-model comparison, and autonomous agent-loop costing. Minor gaps remain around arbitrary non-agent workload costing or bulk multi-model comparison, but core workflows are served.

Available Tools

3 tools
calculate_agent_loop_costBInspect

Compute exact monthly LLM API spend and multi-turn context accumulation bloat for an autonomous coding or tool-use agent loop (1-20 turns).

Inputs: model (required), dau, turns, cacheHitPct, +3 more.

compare_modelsAInspect

Compare two LLM APIs head-to-head across monthly DAU volume and prompt cache hit %, returning monthly costs and 80/20 hybrid smart router savings.

Inputs: modelA (required), modelB (required), dau, cacheHitPct.

get_llm_pricingAInspect

Search and retrieve live 2026 per-1M token pricing (input, output, cached read), context window, TTFT latency, throughput (tok/s), and cheapest inference host from TokenMargin.dev.

Inputs: tier, limit, query.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources