Skip to main content
Glama

Print and Mail Company

Check PDF for printing

check_pdf_margins
Read-onlyIdempotent

Use this when the user has a PDF they want printed and posted and it should be checked first: verifies A4 page size and the required free margin on every side, and lists the pages that need changes. Accepts a public https URL or base64. The file is not stored and nothing is sent. Works without sign-in. To fix a failing PDF, upload it with upload_document and use fix_document_margins.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pdf_urlNo
pdf_base64NoThe PDF as base64, for files up to about 3 MB. Larger files: pass pdf_url, or use create_upload_link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / pdf_base64 / description
      Added value: +"The PDF as base64, for files up to about 3 MB. Larger files: pass pdf_url, or use create_upload_link."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds meaningful context: the file is not stored, nothing is sent, and it works without sign-in. It does not mention rate limits or how large a base64 payload error surfaces, which keeps it short of a 5.

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 trigger followed by capability, privacy, input forms, and the fix path; every sentence carries information. The first sentence is long and slightly run-on, costing a point.

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 no output schema the description still explains the return value ('lists the pages that need changes'), and it covers auth, privacy, input modes, and the fix workflow. A reader could still wonder what a passing check returns, which is the only notable gap.

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 only 50% (pdf_url is bare), and the description compensates by stating the URL must be public and https and that base64 is an alternative input, both of which are meaningful constraints beyond the schema. It does not add anything about the absent 'required' relationship between the two inputs.

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 action (verifies A4 page size and required free margins on every side) plus the return (lists pages needing changes), and explicitly names sibling tools (upload_document, fix_document_margins) so it is distinguishable without opening any 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 trigger condition ('when the user has a PDF they want printed and posted and it should be checked first') and an explicit alternative for the adjacent need ('To fix a failing PDF, upload it with upload_document and use fix_document_margins'). Nothing is left to inference.

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.