Skip to main content
Glama

crop_pdf

Обрезает страницы PDF. Без box — убирает белые поля автоматически. file_url: публичный URL PDF-файла. box: область [x0, y0, x1, y1] долями видимой страницы (0–1, от левого верхнего угла), например [0, 0, 1, 0.5] — верхняя половина. Содержимое за краем остаётся в файле — для скрытия данных используйте redact_pdf. pages: номера страниц (с 1) или "all".

Input Schema

NameRequiredDescriptionDefault
boxNo
pagesNoall
file_urlYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the non-destructive semantics ('содержимое за краем остаётся в файле') and the default behavior when box is absent. It does not mention permission/auth requirements, rate limits, or whether the output is a new file vs in-place edit.

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?

Front-loaded with the core action and default, then one line per parameter. Efficient and scannable; the box example is worth its length, though the redact_pdf aside could be folded more tightly.

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?

An output schema exists, so return values need no explanation. Given a 3-param mutation tool with no annotations, the description covers defaults, coordinate semantics, and the destructive-vs-non-destructive distinction well; only auth/permission context and output-format expectations are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must supply all meaning — and it does: file_url is a public URL, box is [x0,y0,x1,y1] in 0–1 fractions of the visible page with top-left origin and a concrete example, and pages is 1-based numbers or 'all'. This fully compensates for the empty schema descriptions.

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 ('Обрезает страницы PDF') and immediately defines the default mode ('без box — убирает белые поля автоматически'). It also names the sibling it is not (redact_pdf) for the data-hiding case, so an agent can distinguish it from the ~50 siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit when-to-use branch: omit 'box' to auto-trim white margins, supply 'box' for a specific region. It also names an explicit when-not and the correct alternative — 'для скрытия данных используйте redact_pdf' — which is the most likely misuse of a crop tool.

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.