Skip to main content
Glama

mechacut

agent_costdiff

The PRICE OF THE UPDATE: two pasted MCP tools/list readings in, the token bill between them out. Same canon, same estimator as /agent/context-tax (ceil of chars/4, published floor, error declared) so the subtraction means something: classes ADDED/REMOVED/CHANGED/SAME by name, per-tool delta in chars and tokens, percentage of the BEFORE-side estimate (None for an added tool — nothing was paid before; -100.00 for a removed one), and a CHANGED tool carries its moved_fields SIGNED per contract field (the r/mcp case: same 27 tools, 8497->22k tokens, the schema detail alone). Global delta is ceil(after_total/4) - ceil(before_total/4), never the sum of per-tool ceilings — both numbers travel and the divergence is stated, not hidden. Window verdict FITS/OVERFLOWS_WINDOW on EACH side with a closed transition name: FITS_TO_OVERFLOWS is the story testdino told about Playwright MCP 0.0.41->0.0.85 (+78%, unannounced). Delta rides EVERY turn (Irolla); dollars only if you pass your own decimal price — sign included, a listing that shrank saves real money. Movers sorted |delta_chars| desc, ties = name ascending (a diff has no shared pasted order — the rule is declared), top 100 detailed, the rest folded. Both sides validated with the sister's refusals: 5000-entry ceiling, duplicate and empty names refused (shadowing). Flags: EMPTY_BEFORE/AFTER/BOTH (empty listings are a state, not an error), DISJOINT_LISTINGS (a replacement, not an update), NO_CHANGES. Never fetches, never launches: pasted listings only. Sisters: mcp-surface says WHAT changed, context-tax says HOW MUCH one listing costs — this one says the price in between. Free under 32 KB, x402 above.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tools_before": "<tools_before>",
      "tools_after": "<tools_after>"
    },
    "name": "agent_costdiff"
  }
}

Input Schema

NameRequiredDescriptionDefault
turnsNoturns the definitions ride — the delta is billed per turn too, default 1
windowNoyour context window in tokens, default 200000 (the cited scale, verdict on each side)
tools_afterYesthe newer pasted tools/list reading
tools_beforeYesthe older pasted tools/list reading
input_per_mtokNoYOUR price per million input tokens, decimal string — an argument, never a stored table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and largely pays it: it declares the estimator (ceil of chars/4), the global-delta rule (ceil(after/4) - ceil(before/4), not a sum of per-tool ceilings, with divergence stated), the sort tie-break rule, top-100 detailed with the rest folded, validation refusals (5000-entry ceiling, duplicate/empty names), the flag vocabulary (EMPTY_*, DISJOINT_LISTINGS, NO_CHANGES), and pricing (free under 32 KB, x402 above). It also states it has no side effects ("never fetches, never launches").

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core value proposition is correctly front-loaded in the first clause, but the remainder is one dense run-on paragraph whose contract details (sort rule, top-100 folding, validation) sit behind decorative asides like "the story testdino told about Playwright MCP 0.0.41->0.0.85" and "(Irolla)". The information is nearly all contract-relevant, so the fault is packing and readability rather than padding.

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?

Five parameters, no annotations, no output schema — so the description must explain returns, and it does in unusual detail: classification into ADDED/REMOVED/CHANGED/SAME, per-tool delta in chars and tokens, the percentage convention including None and -100.00 cases, and moved_fields signed per contract field. Limits, flags and pricing are all present, leaving no material gap for an agent before calling.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning the schema does not: turns means the delta is billed per turn ("Delta rides EVERY turn"), window produces a per-side FITS/OVERFLOWS_WINDOW verdict with named transitions, and input_per_mtok is explicitly your own argument, never a stored table, with sign preserved. It adds modest value on the two required listing parameters beyond "older/newer".

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?

"Two pasted MCP tools/list readings in, the token bill between them out" states a specific verb, input and output in one line, and the closing sibling sentence explicitly contrasts it with agent_mcpsurface (what changed) and agent_contexttax (cost of one listing). An agent can place it among the offered siblings without opening the schema.

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 sisters sentence is real routing guidance: use mcpsurface for WHAT changed, contexttax for one listing's cost, this tool for the price between two. It also declares the input precondition ("pasted listings only", "Never fetches"). It stops short of an explicit "do not use when X" rule or a statement that both listings must cover the same tool surface, though the DISJOINT_LISTINGS flag implies that constraint.

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.