Skip to main content
Glama
agxhub

doc-redactor

by agxhub

extract_image

Extracts a specified embedded image from a PDF as PNG for logo redaction templates, using xref from prior redact_scan.

Instructions

从 PDF 提取指定嵌入图像保存为 PNG(用于制作 logo 脱敏模板:先 redact_scan 拿到图像 xref 清单,再提取可疑 logo 作为模板)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xrefYes
pdf_pathYes
output_pathYes
Install Server

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses the output format (PNG) and the xref-based selection mechanism, but does not mention overwrite behavior, error cases, or file-access assumptions.

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?

The description is a single dense sentence that front-loads the core action and then adds only the necessary workflow context. Every part earns its place.

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 simple 3-parameter extraction tool, the description covers the workflow, source format, selection key, and output format. Minor gaps like overwrite behavior and invalid-xref handling are not critical for basic invocation.

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 description coverage is 0%, but the description compensates by mapping pdf_path to the source PDF, xref to the redact_scan-provided image reference, and output_path to the PNG output. This adds meaningful context beyond the bare parameter names.

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 operation—extract a specified embedded image from a PDF and save it as PNG—and clearly situates it within a workflow distinct from siblings like redact_scan and redact_apply.

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 explains when to use the tool: after redact_scan provides an image xref list, extract suspicious logos as templates. It does not explicitly list when-not-to-use cases or compare with alternatives, so it falls just short of a 5.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agxhub/doc-redactor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server