Skip to main content
Glama
pich

ai-economics-mcp

by pich

context_window

Determine token usage and per-request cost for content against a context window, with formula and interpretation for pre-run AI workload sizing.

Instructions

Context Window: How many tokens is this content, does it fit the window, and what does carrying it cost per request? All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/context-window. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitNowords | pages | chars | loc (default pages)
priceNo$ per 1M input tokens (default 3)
amountNoquantity (default 50)
windowNocontext size in tokens (default 128000)

Schema Changelog

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

  1. First observedv1.0.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It explains that all parameters are optional, that defaults mirror an interactive calculator, and that the response includes result, formula, interpretation, and a cite_as sentence. This gives agents a solid understanding of behavior and response contents.

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 compact and front-loaded with the core purpose. Every sentence contributes useful information: the questions answered, the default behavior, the reference calculator, and the response contents.

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?

The description covers purpose, defaults, response contents, and provides a reference link. It is sufficient for a low-risk optional-parameter calculator, though it could be stronger if it distinguished this tool from closely related siblings like token_cost.

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 every parameter and default. The description reaffirms that all parameters are optional and points to the calculator defaults, but it adds little meaning beyond the schema.

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 clearly states what the tool computes: token count, whether content fits the window, and per-request cost. It frames the purpose as concrete questions rather than a tautology, though it does not explicitly differentiate itself from sibling cost/token tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The opening questions provide clear context for when to use the tool. It does not name alternatives or state exclusions, but the intended use case is evident from the questions and parameter descriptions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pich/ai-economics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server