Skip to main content
Glama
tobiasGuta

PrecisionPDF-MCP

by tobiasGuta

apply_highlight

Adds a reviewed exact-match highlight to a PDF page after checking its source fingerprint, writing a new annotated copy without altering the original.

Instructions

Apply a proposed exact-match highlight with a checked source fingerprint.

New output must not exist. For subsequent updates, the input and output may be the same *-annotated.pdf file when overwrite_annotated_copy is true. Do NOT call without showing the proposal to the user for review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes
pageYes
colorNoyellow
opacityNo
occurrenceNo
exact_quoteYes
output_fileYes
expected_fingerprintYes
overwrite_annotated_copyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose meaningful behavior: a precondition that the output must not exist, an overwrite path that permits input and output to be the same annotated PDF, and a human-review gate. It still doesn't say what happens on a fingerprint mismatch or what the call returns, which are notable gaps for a mutation tool.

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?

Three short sentences, each doing work, with the core action front-loaded and the constraints following. No filler or restatement of the tool name. Slightly dense phrasing but appropriately sized.

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?

With no output schema, no annotations, and 5 required parameters, the description covers the safety and workflow essentials but leaves key operational questions unanswered: how the fingerprint is verified/mismatch handling, and the meanings of the required quote/page params. Adequate for the happy path, incomplete for correct invocation in edge cases.

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% across 9 parameters, so the description must compensate but largely doesn't. It touches only expected_fingerprint (the 'checked' fingerprint), file/output_file, and overwrite_annotated_copy; page, exact_quote, color, opacity, and occurrence are left entirely undocumented in both schema and prose.

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+resource: applying a proposed exact-match highlight with a verified source fingerprint. This clearly differentiates it from the propose_* siblings (proposal step) and the apply_annotation_* siblings (updates/removals), even though it never names the sibling it pairs with. 'Exact-match' and 'checked source fingerprint' are concrete scoping details an agent can act on.

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 states two explicit usage constraints: the output must not already exist, and the tool must not be called without showing the proposal to the user first. The overwrite_annotated_copy case is described for subsequent updates. What's missing is an explicit pointer to propose_highlight as the required preceding step, so the workflow is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.