Skip to main content
Glama

Fmind Freelance AI Architect Website

Compare MCP context costs

compare_mcp_context_cost
Read-only

Count the tool-definition tokens that measured MCP servers (GitHub default toolset, Filesystem, Memory, Playwright) add to every model request, then price them as standard input for the managed APIs in the hosting snapshot. Omit servers for all four. Returns tokens per request and month, context share and USD per 1,000 requests and per 30-day month for each model, dated sources, limitations and a shareable page URL. Reference tokens, not provider billing. See /agents#mcp-context.

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

Input Schema

NameRequiredDescriptionDefault
serversNoDistinct server ids; omit for all.
requests_per_dayNoModel requests per day; count every call in agent loops.

Output Schema

NameRequiredDescriptionDefault
toolsYes
modelsYes
serversYes
limitationsYes
scenario_urlYes
days_per_monthYes
requests_per_dayYes
tokens_per_monthYes
prices_checked_onYes
tokens_per_requestYes
snapshot_verified_onYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed21 schema fields changed
    • removedInput schema / properties / parameters
      Removed value: -{
      -  "additionalProperties": {
      -    "maxLength": 128,
      -    "type": "string"
      -  },
      -  "description": "Calculator URL parameters as strings; empty object returns defaults and bounds.",
      -  "maxProperties": 32,
      -  "propertyNames": {
      -    "maxLength": 64
      -  },
      -  "title": "Parameters",
      -  "type": "object"
      -}
    • addedInput schema / properties / requests_per_day
      Added value: +{
      +  "default": 1000,
      +  "description": "Model requests per day; count every call in agent loops.",
      +  "maximum": 10000000,
      +  "minimum": 1,
      +  "title": "Requests Per Day",
      +  "type": "integer"
      +}
    • addedInput schema / properties / servers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "enum": [
      +          "github",
      +          "filesystem",
      +          "memory",
      +          "playwright"
      +        ],
      +        "type": "string"
      +      },
      +      "maxItems": 4,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Distinct server ids; omit for all.",
      +  "title": "Servers"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "parameters"
      -]
    • addedOutput schema / $defs / ModelCost
      Added value: +{
      +  "properties": {
      +    "context_percent": {
      +      "title": "Context Percent",
      +      "type": "number"
      +    },
      +    "input_per_million": {
      +      "title": "Input Per Million",
      +      "type": "number"
      +    },
      +    "input_token_limit": {
      +      "title": "Input Token Limit",
      +      "type": "integer"
      +    },
      +    "month_usd": {
      +      "title": "Month Usd",
      +      "type": "number"
      +    },
      +    "name": {
      +      "title": "Name",
      +      "type": "string"
      +    },
      +    "needs_review": {
      +      "title": "Needs Review",
      +      "type": "boolean"
      +    },
      +    "per_thousand_requests_usd": {
      +      "title": "Per Thousand Requests Usd",
      +      "type": "number"
      +    },
      +    "source_url": {
      +      "title": "Source Url",
      +      "type": "string"
      +    },
      +    "verified_on": {
      +      "title": "Verified On",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "input_per_million",
      +    "input_token_limit",
      +    "context_percent",
      +    "per_thousand_requests_usd",
      +    "month_usd",
      +    "source_url",
      +    "verified_on",
      +    "needs_review"
      +  ],
      +  "title": "ModelCost",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / ModelSnapshot
      Removed value: -{
      -  "properties": {
      -    "cache_minimum": {
      -      "title": "Cache Minimum",
      -      "type": "integer"
      -    },
      -    "cache_price": {
      -      "title": "Cache Price",
      -      "type": "number"
      -    },
      -    "cache_url": {
      -      "title": "Cache Url",
      -      "type": "string"
      -    },
      -    "context_tokens": {
      -      "title": "Context Tokens",
      -      "type": "integer"
      -    },
      -    "id": {
      -      "title": "Id",
      -      "type": "string"
      -    },
      -    "input_price": {
      -      "title": "Input Price",
      -      "type": "number"
      -    },
      -    "model_url": {
      -      "title": "Model Url",
      -      "type": "string"
      -    },
      -    "name": {
      -      "title": "Name",
      -      "type": "string"
      -    },
      -    "note": {
      -      "title": "Note",
      -      "type": "string"
      -    },
      -    "price_url": {
      -      "title": "Price Url",
      -      "type": "string"
      -    },
      -    "verified_on": {
      -      "title": "Verified On",
      -      "type": "string"
      -    },
      -    "write_multiplier": {
      -      "title": "Write Multiplier",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "id",
      -    "name",
      -    "context_tokens",
      -    "input_price",
      -    "cache_price",
      -    "write_multiplier",
      -    "cache_minimum",
      -    "verified_on",
      -    "price_url",
      -    "model_url",
      -    "cache_url",
      -    "note"
      -  ],
      -  "title": "ModelSnapshot",
      -  "type": "object"
      -}
    • removedOutput schema / $defs / NumberField
      Removed value: -{
      -  "properties": {
      -    "default": {
      -      "title": "Default",
      -      "type": "number"
      -    },
      -    "help": {
      -      "title": "Help",
      -      "type": "string"
      -    },
      -    "key": {
      -      "title": "Key",
      -      "type": "string"
      -    },
      -    "label": {
      -      "title": "Label",
      -      "type": "string"
      -    },
      -    "maximum": {
      -      "title": "Maximum",
      -      "type": "number"
      -    },
      -    "minimum": {
      -      "title": "Minimum",
      -      "type": "number"
      -    },
      -    "whole": {
      -      "default": false,
      -      "title": "Whole",
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "key",
      -    "label",
      -    "default",
      -    "minimum",
      -    "maximum",
      -    "help"
      -  ],
      -  "title": "NumberField",
      -  "type": "object"
      -}
    • removedOutput schema / $defs / Strategy
      Removed value: -{
      -  "properties": {
      -    "cache_eligible": {
      -      "title": "Cache Eligible",
      -      "type": "boolean"
      -    },
      -    "cached_average_request_usd": {
      -      "title": "Cached Average Request Usd",
      -      "type": "number"
      -    },
      -    "cached_day_usd": {
      -      "title": "Cached Day Usd",
      -      "type": "number"
      -    },
      -    "cached_month_usd": {
      -      "title": "Cached Month Usd",
      -      "type": "number"
      -    },
      -    "cached_saved_month_usd": {
      -      "title": "Cached Saved Month Usd",
      -      "type": "number"
      -    },
      -    "cached_session_usd": {
      -      "title": "Cached Session Usd",
      -      "type": "number"
      -    },
      -    "context_percent": {
      -      "title": "Context Percent",
      -      "type": "number"
      -    },
      -    "day_usd": {
      -      "title": "Day Usd",
      -      "type": "number"
      -    },
      -    "fits": {
      -      "title": "Fits",
      -      "type": "boolean"
      -    },
      -    "id": {
      -      "title": "Id",
      -      "type": "string"
      -    },
      -    "label": {
      -      "title": "Label",
      -      "type": "string"
      -    },
      -    "month_usd": {
      -      "title": "Month Usd",
      -      "type": "number"
      -    },
      -    "request_usd": {
      -      "title": "Request Usd",
      -      "type": "number"
      -    },
      -    "saved_month_usd": {
      -      "title": "Saved Month Usd",
      -      "type": "number"
      -    },
      -    "session_usd": {
      -      "title": "Session Usd",
      -      "type": "number"
      -    },
      -    "tokens_request": {
      -      "title": "Tokens Request",
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "id",
      -    "label",
      -    "tokens_request",
      -    "context_percent",
      -    "fits",
      -    "cache_eligible",
      -    "request_usd",
      -    "cached_average_request_usd",
      -    "session_usd",
      -    "day_usd",
      -    "month_usd",
      -    "cached_session_usd",
      -    "cached_day_usd",
      -    "cached_month_usd",
      -    "saved_month_usd",
      -    "cached_saved_month_usd"
      -  ],
      -  "title": "Strategy",
      -  "type": "object"
      -}
    • addedOutput schema / properties / days_per_month
      Added value: +{
      +  "title": "Days Per Month",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / fields
      Removed value: -{
      -  "items": {
      -    "$ref": "#/$defs/NumberField"
      -  },
      -  "title": "Fields",
      -  "type": "array"
      -}
    • changedOutput schema / properties / models / items / $ref
      Previous value: -"#/$defs/ModelSnapshot"New value: +"#/$defs/ModelCost"
    • removedOutput schema / properties / parameters
      Removed value: -{
      -  "additionalProperties": {
      -    "type": "string"
      -  },
      -  "title": "Parameters",
      -  "type": "object"
      -}
    • addedOutput schema / properties / prices_checked_on
      Added value: +{
      +  "title": "Prices Checked On",
      +  "type": "string"
      +}
    • addedOutput schema / properties / requests_per_day
      Added value: +{
      +  "title": "Requests Per Day",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / snapshot_date
      Removed value: -{
      -  "title": "Snapshot Date",
      -  "type": "string"
      -}
    • addedOutput schema / properties / snapshot_verified_on
      Added value: +{
      +  "title": "Snapshot Verified On",
      +  "type": "string"
      +}
    • removedOutput schema / properties / strategies
      Removed value: -{
      -  "items": {
      -    "$ref": "#/$defs/Strategy"
      -  },
      -  "title": "Strategies",
      -  "type": "array"
      -}
    • addedOutput schema / properties / tokens_per_month
      Added value: +{
      +  "title": "Tokens Per Month",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / tokens_per_request
      Added value: +{
      +  "title": "Tokens Per Request",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / tools
      Added value: +{
      +  "title": "Tools",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "scenario_url",
      -  "parameters",
      -  "strategies",
      -  "servers",
      -  "models",
      -  "fields",
      -  "snapshot_date",
      -  "limitations"
      -]New value: +[
      +  "servers",
      +  "requests_per_day",
      +  "days_per_month",
      +  "tools",
      +  "tokens_per_request",
      +  "tokens_per_month",
      +  "models",
      +  "scenario_url",
      +  "snapshot_verified_on",
      +  "prices_checked_on",
      +  "limitations"
      +]
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's main contribution is the output profile (tokens per request/month, context share, USD per 1,000 requests and per 30-day month, dated sources, limitations, shareable URL). The caveat that figures are reference tokens rather than provider billing is genuinely valuable context an agent could not infer from the schema or annotations.

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?

Front-loaded with the action and tightly packed: what is counted, what is priced, the default, the return surface, and the caveat. Dense but nearly every clause carries information; the trailing "/agents#mcp-context" pointer is cheap and useful.

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?

An output schema exists, yet the description still summarizes the return payload enough for an agent to know the shape, and annotations cover the safety profile. The only real omission is positioning against compare_llm_hosting, which is a plausible source of tool-selection error.

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% and both parameters carry their own descriptions, including the enum set for servers and the per-day request semantics. The description restates the omit-for-all default without adding syntax or modeling detail beyond the schema, so baseline 3 applies.

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?

States a precise verb+resource: counts tool-definition tokens added by measured MCP servers (enumerated: GitHub, Filesystem, Memory, Playwright) and prices them as standard input for managed APIs in the hosting snapshot. The scope is narrow and self-contained, and it is clearly distinguishable from compare_llm_hosting, which compares hosting options rather than MCP context overhead.

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?

"Omit servers for all four" gives the default behavior and "Reference tokens, not provider billing" warns about interpretation, but neither tells the agent when to pick this over compare_llm_hosting or what questions it answers well. Usage is implied by the purpose sentence rather than stated with exclusions or alternatives.

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