Skip to main content
Glama

Get page thumbnail of Docling document

get_page_thumbnail
Read-only

Generate a thumbnail image of a requested page from a document in the local cache, with adjustable width, to preview pages and identify content before processing.

Instructions

Generate a thumbnail image for the requested page of a document in the local cache.

Input Schema

NameRequiredDescriptionDefault
sizeNoThe width of the thumbnail in pixels
page_noNoThe number of the page starting at 1
document_keyYesThe unique identifier of the document in the local cache.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds that the thumbnail is derived from a local-cache document, but says nothing about whether the thumbnail is persisted/side-effecting, what format is returned, or any cost/size considerations—important for a 'generate' verb.

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?

A single front-loaded sentence with no filler. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description should explain what the thumbnail return looks like (image bytes, URL, base64, MIME type) and any prerequisites. It covers neither, leaving the agent guessing about the result shape.

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

Parameters3/5

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

Schema description coverage is 100%, with size, page_no, and document_key fully documented, so the schema carries the burden. The description only echoes 'requested page' without adding defaults, units, or format semantics beyond the schema.

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?

States a specific verb+resource: generating a thumbnail image for a requested page of a cached document. It's distinguishable from the anchor/text-reading siblings in the toolset, though it doesn't say how it relates to get_overview_of_document_anchors or other read tools.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this versus alternatives, and no stated precondition that the document must already be in the local cache (e.g., via check_document_in_local_cache or convert_document_into_docling_document). The phrase 'in the local cache' only hints at the requirement.

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