Skip to main content
Glama

PDF Efforts

Convert PDF to grayscale

grayscale_pdf
Idempotent

Convert every colour in a PDF to shades of gray; text stays searchable.

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": {
      "file": "<file>"
    },
    "name": "grayscale_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is carried structurally; the description usefully adds that text remains searchable, which hints the output is not rasterized. However, it does not say whether a new file is produced rather than the original being replaced — an important ambiguity given readOnlyHint=false — nor anything about handling of non-PDF input.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the semicolon cleanly separates the operation from the key behavioral guarantee. Nothing is wasted and nothing essential is buried.

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

Completeness4/5

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

With an output schema present and a fully documented input, the description need not explain return values, and it covers purpose plus the searchable-text guarantee. The only meaningful gap is the fate of the original file and result naming, which the agent must infer from annotations.

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% and the nested file object documents each variant (url, base64, file_id with its 60-minute validity, filename) plus the refusal of private addresses. The description adds nothing about parameters, which is acceptable here because the schema fully carries that burden; 0-param-style baseline logic applies to a single fully documented input.

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?

States a specific verb and resource ('Convert every colour in a PDF to shades of gray') and adds a scoping detail that defines what the conversion does not do ('text stays searchable'). No sibling in the catalog performs grayscale conversion, and the wording makes the operation unmistakable 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The use case is implied by the operation itself, but there is no explicit when-to-use or when-not guidance, and no mention of alternatives or prerequisites. An agent can infer the intent but gets no routing help for cases like a PDF that also needs compression or optimization.

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