Skip to main content
Glama

Price a block of context by its position

price_context_read

Price a block of context by where it enters a session. The API is stateless, so the whole transcript is re-sent on every inference step, and a token costs its size times the number of turns left after it arrives. Returns the carried token volume, the cost of the block in USD, what the same read would have cost entering 20 turns from the end, and the multiplier between the two. Use it to decide whether a large read should move later in a session or into a subagent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
read_multNoCache-read price multiplier against input price. Default 0.1.
entry_turnYesTurn number at which the block enters the context (t).
write_multNoCache-write price multiplier against input price. Default 1.25.
size_tokensYesSize of the block in tokens (S).
total_turnsYesTotal turns in the session (T). Must be at least entry_turn.
price_in_per_mtokNoInput price in USD per million tokens. Default 5.

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosure. It explicitly explains the stateless nature of the API, the token cost formula (size times number of turns left), and the return values. It stops short of explicitly stating it has no side effects, but the nature of a pricing calculation implies a non-destructive operation. The description is transparent about the model and outputs.

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 tightly structured: it states the purpose, explains the underlying model, lists the return values, and gives a concrete use case—all in four sentences. No wasted words. The critical information is front-loaded, and every sentence contributes to the agent's correct invocation.

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

Completeness5/5

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

For a tool with 6 parameters, 3 required, and no output schema, the description provides an unusually complete picture. It describes what the tool returns (carried token volume, cost in USD, comparative cost at 20 turns from the end, and the multiplier), explains the pricing formula, and gives an application scenario. Nothing essential is missing for an agent to call it correctly.

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?

Schema description coverage is 100%, so the schema already documents each parameter. The description adds value by explaining the cost model in relation to the parameters (e.g., 'a token costs its size times the number of turns left after it arrives'). This contextualizes size_tokens, entry_turn, and total_turns beyond their individual definitions. The description goes beyond simply restating schema details.

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?

The description opens with a specific verb+resource: 'Price a block of context by where it enters a session.' It clearly distinguishes this tool from siblings like assess_workspace or search_architecture, which are unrelated. The stateless context and pricing formula are explained succinctly, leaving no ambiguity about the tool's function.

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 description explicitly states a use case: 'Use it to decide whether a large read should move later in a session or into a subagent.' It does not mention alternatives or when not to use it, but given the sibling tools are not competitors, the guidance is adequate. It provides clear context for when this tool adds value.

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

A4.3/5.0
Disambiguation4/5

Most tools target clearly distinct functions: assessment, redaction checking, context pricing, capability requests, and search. The only potential confusion is between lookup_pattern and search_architecture, but their descriptions clearly differentiate scope — narrower pattern lookup versus full-text corpus search.

Naming Consistency5/5

All tool names follow a consistent lowercase snake_case verb_noun pattern: assess_workspace, check_redaction, lookup_pattern, price_context_read, request_capability, search_architecture. There is no mixing of naming conventions or vague verbs.

Tool Count5/5

Six tools is a well-scoped count for this server's purpose. Each tool represents a distinct capability within the agent workspace practice domain, and none feel redundant or superfluous.

Completeness4/5

The set covers the core workflows: maturity assessment, knowledge search, pattern lookup, context cost analysis, and feedback on missing capabilities. A minor gap is the lack of a dedicated tool to read or list full resources, though this is partially mitigated by the resources exposed under the architecture:// scheme.

Resources