Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_repair

Read-onlyIdempotent

Attempt to recover a damaged or corrupted PDF

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "pdf_repair"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileBase64YesThe input file as a base64 string, without a data: prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The word 'Attempt' adds a genuinely useful caveat that the operation is best-effort and may fail, but the description does not say what happens on failure (error vs. partially recovered file) or how the repaired output is returned.

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?

A single front-loaded sentence with no filler, which is efficient for a one-parameter tool. It is arguably under-specified rather than overly verbose, but nothing in the sentence is wasted.

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?

The tool is simple (one param, no nested objects), and annotations plus schema cover most of what an agent needs. With no output schema, though, the description leaves the return value unspecified — an agent cannot tell whether it receives a base64 repaired file, a status flag, or an error when recovery fails.

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?

There is a single parameter with 100% schema description coverage, including the important encoding detail that the base64 string must omit a data: prefix. Per the rubric, one fully documented param sets the baseline at 4, and the description neither adds nor contradicts anything.

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 gives a specific verb ('recover') and resource ('PDF') plus the triggering condition ('damaged or corrupted'), which cleanly separates it from the pdf_compress/pdf_merge/pdf_organize siblings and aligns with pptx_repair's counterpart role. It stops short of naming the sibling relationship explicitly, but the purpose is unambiguous.

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?

The phrase 'damaged or corrupted' implies the when-to-use condition, which is adequate for a single-purpose repair tool. However, there is no guidance on when not to use it (e.g. use pdf_parse_fillable_form for form issues) and no prerequisites such as file size limits or whether the input must be a genuine PDF.

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.

Resources