Skip to main content
Glama

Preview a PDF

preview_file
Read-onlyIdempotent

The first pages of a PDF as images, for FynePDF's result viewer. Not needed in conversation: use get_file for a link.

Input Schema

NameRequiredDescriptionDefault
pagesNo
file_idYes

Output Schema

NameRequiredDescriptionDefault
pagesYes
total_pagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered. The description adds only that output is rendered images of the 'first pages' — useful, but it says nothing about cost, latency, or how many pages render by default, and the return shape is covered by the output schema.

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 short sentences with zero padding, and the output description is front-loaded before the routing advice. Nothing here repeats the annotations or the title verbatim.

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?

The output schema and annotations cover return shape and safety, so the description's remaining job is the parameters, which it omits entirely. Adequate for routing, thin for actually invoking with a page count.

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%, so the description carries the burden, yet it never mentions the `pages` parameter, its 1-5 range, or the `file_id` prefix pattern. 'First pages' hints at a default but gives an agent no signal that the page count is requestable and capped at 5.

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?

Names the specific resource and output form ('first pages of a PDF as images') and scopes it to FynePDF's result viewer, which separates it from general file tools. It's a noun phrase rather than a verb-led sentence, but an agent can still tell what it returns without opening 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?

Explicitly states the negative case ('Not needed in conversation') and names the alternative ('use get_file for a link'), which is the routing information an agent needs. The positive trigger is only sketched as 'FynePDF's result viewer', so when an agent should actually call it is left partly implicit.

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.

Resources