Skip to main content
Glama

PDF Dark — Invert PDF Colors & Dark Mode

invert_pdf_base64

Invert colors of a base64-encoded PDF (up to 2 MB) directly into a downloadable dark-mode PDF. For larger files or photo-preserving conversion (keeping photos in original colors), use https://pdfdark.org/invert-pdf-colors.

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_base64": "<pdf_base64>"
    },
    "name": "invert_pdf_base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
themeNoDark background tint applied after inversion. Defaults to 'pure_invert'.
pdf_base64YesBase64-encoded input PDF bytes (max 2 MB decoded).

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?

No annotations are supplied, so the description carries the burden: it discloses the size limit and that the result is a 'downloadable' PDF, which implies a retrieval step. It does not say whether the return is base64 or a URL, whether text stays selectable, whether the operation is reversible, or any auth/rate behavior.

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?

Two sentences, zero filler: the capability and limit come first and the overflow path second. The URL is long but load-bearing.

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?

For a two-parameter conversion tool with no annotations and no output schema, the coverage is nearly sufficient: input format, size cap, and fallback are all present. The one missing piece is the shape of the return value, which the description only gestures at with 'downloadable'.

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?

Schema description coverage is 100%, so both pdf_base64 and the theme enum are already documented in structured form, including the default. The description adds only the size constraint, which the schema states as well, and says nothing about what the five theme values look like.

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?

The description names a specific verb ('Invert colors') and resource ('base64-encoded PDF'), states the input encoding and the 2 MB ceiling, and identifies the output as a dark-mode PDF. An agent can distinguish this from a generic PDF utility without inspecting 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 Guidelines4/5

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

It explicitly routes to an external URL for two conditions: files over 2 MB and photo-preserving conversion. That is genuine when-to-use guidance, though it offers no guidance on choosing among the sibling presets/settings tools or on which theme value to pick.

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.