Skip to main content
Glama

Estimate cost and latency

mcpEstimate
Read-only

Estimate how long parsing takes and whether it uses AI, before you parse. filepath: a sample id from mcpFormats, such as "sample_pdf" or "sample_docx_tables". The estimate depends only on the format. No sign-in needed.

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": {
      "filepath": "<filepath>",
      "outputFormat": "<outputFormat>"
    },
    "name": "mcpEstimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
filepathYes
outputFormatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and non-destructive, so the safety profile is covered. The description usefully adds 'No sign-in needed' and that the result depends only on the format, i.e. a cheap, side-effect-free probe. However, 'depends only on the format' sits oddly against idempotentHint=false, and nothing is said about the shape or precision of the returned estimate.

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?

The purpose is front-loaded in the first sentence, and the supporting notes on filepath and auth are short and relevant. Line breaks fall mid-sentence, giving it a slightly ragged, note-like feel rather than a tightened structure.

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 two-parameter, read-only estimation tool with no output schema, the description covers purpose, usage timing, input source and auth requirements adequately. It falls short on outputFormat semantics and on what the returned estimate contains, which matters because there is no output schema to fall back on.

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?

At 0% schema description coverage the description must carry the parameter burden. It explains filepath well, tying it to mcpFormats sample ids with two concrete examples. But outputFormat is required and never mentioned, leaving the agent to guess whether the estimate depends on filepath's format or this parameter.

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 states a specific verb and resource: estimate parse duration and whether AI is involved, positioned as a pre-flight check before parsing. That clearly separates it from mcpParse. The only wrinkle is that the title promises 'cost' while the body only speaks of time and AI usage, a small mismatch that keeps it from a 5.

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?

'before you parse' gives a clear temporal cue for when to call this instead of mcpParse. It also notes that the estimate depends only on the format, which tells the agent it need not supply document content. There is no explicit when-not guidance or named alternative beyond the mcpFormats pointer for sample ids.

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.