Skip to main content
Glama

mechacut

doc_text

PDF to text, pure stdlib: FlateDecode, TJ/Tj operators, ToUnicode CMaps (real producers included), latin-1 fidelity, honest verdicts — image-only says 'no text layer', encrypted says decryption is out of scope, never a confident garbage. Same bytes in, same text out, forever. Free under 32 KB, $0.001 above (x402 on Base).

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": {
      "pdf_b64": "<pdf_b64>"
    },
    "name": "doc_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
pdf_b64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/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 burden and does substantial work: it discloses determinism ('same bytes in, same text out, forever'), failure semantics for scanned and encrypted files, and a cost model ('free under 32 KB, $0.001 above, x402 on Base'). It does not state the return format (plain text vs. structured page output) or error/pagination behavior, so it stops short of full disclosure.

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 purpose is front-loaded, but the body is a single em-dash-chained run-on mixing technical internals, marketing phrasing ('honest verdicts', 'never a confident garbage', 'forever'), and pricing. The technical detail and the failure-mode clauses earn their place; the sloganeering and the x402 pricing sentence are lower value for tool selection.

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 tool with no annotations and no output schema, the description covers input assumptions, failure modes, determinism, and cost, which is a reasonable amount. It is still incomplete on the two things an agent most needs: what the returned text looks like and what 'page' does.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for two parameters, so the description must compensate and largely does not. It never mentions that pdf_b64 must be base64-encoded ('same bytes in' only gestures at it) and the optional 'page' parameter — the only way to select a single page — is never referenced at all.

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?

Opens with a concrete verb+resource pair, 'PDF to text', and the parenthetical 'pure stdlib: FlateDecode, TJ/Tj operators, ToUnicode CMaps' pins down exactly which PDF constructs are handled, which implicitly separates it from the html_text sibling. It never names html_text explicitly, so differentiation is inferred from the resource type rather than stated.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative, so the agent must infer that html_text handles HTML. What it does provide is conditional outcome guidance — image-only PDFs return 'no text layer' and encrypted PDFs return 'decryption is out of scope' — which effectively tells the caller when this tool will not produce text.

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.