Skip to main content
Glama

estimate_markdown_tokens

Compare raw HTML with Markdown responses or clean HTML-to-Markdown conversion for any URL, then estimate exact byte and token savings plus LLM input cost reduction per 10,000 agent fetches.

Instructions

Compare raw HTML vs native Accept: text/markdown (or clean HTML-to-Markdown conversion) for any URL, estimating exact byte/token savings and LLM input cost reduction per 10,000 agent fetches.

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": {
      "url": "<url>"
    },
    "name": "estimate_markdown_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget public website URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/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 does disclose that the tool fetches the target URL and reports exact byte/token savings and per-10,000-fetch cost figures, which implies network access and read-only estimation, but it says nothing about timeouts, failure modes for sites without native markdown support, or what assumptions underlie the cost model.

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?

One front-loaded sentence with no filler; the comparison and the output are stated first. The parenthetical '(or clean HTML-to-Markdown conversion)' is the only slight density cost, but it carries real meaning about how savings are modeled.

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

Completeness3/5

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

For a one-parameter tool with no annotations and no output schema, the description does a reasonable job sketching the return values and the comparison being made. It nonetheless omits how the comparison is performed (live fetch vs. fallback conversion), what the output structure looks like, and any caveats about URLs lacking native markdown support, leaving gaps an agent would want covered.

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?

There is a single parameter (url) with 100% schema description coverage, so the schema already documents it as a 'Target public website URL'. The description's phrase 'for any URL' adds no syntax, format, or constraint detail beyond that, so baseline 3 applies.

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 names a specific action (compare raw HTML against markdown delivery) on a specific resource (any URL), and states the computed output (byte/token savings and LLM cost reduction). It is clear what the tool produces, though it never explicitly distinguishes itself from the sibling audit/cascade tools.

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?

Usage is only implied: an agent can infer it should call this when it wants to quantify markdown-conversion savings before switching an agent pipeline. There is no explicit when-to-use rule, no exclusions (e.g., when the URL does not support Accept: text/markdown), and no pointer to the sibling readiness or cascade tools.

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