Skip to main content
Glama

get_pdf_page_image

Read-only

Renders a specific PDF page from the Campus as a PNG image so you can view diagrams, charts, formulas, and slides that text extraction misses. Specify the page number and optional zoom scale.

Instructions

Devuelve una página de un PDF del Campus como imagen PNG, para ver los diagramas, gráficos, fórmulas y diapositivas que read_file no puede capturar como texto. Indicá la página (read_file informa el total de páginas). Es solo lectura y se procesa localmente.

Input Schema

NameRequiredDescriptionDefault
urlYesURL del PDF en el Campus (…/mod/resource/view.php?id=… o …/pluginfile.php/…)
pageYesNúmero de página, desde 1
scaleNoZoom de la imagen (por defecto 1,5; el ancho máximo es 2000 px)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful context that processing happens locally and that the output is a PNG image, though it does not discuss failure modes such as out-of-range pages.

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 tightly written sentences with no waste. The core purpose is front-loaded, followed immediately by the key usage condition and alternative.

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?

The description covers the essential behavior for a PDF-page renderer: output format, source context, usage condition, read-only nature, and local processing. It is nearly complete, with only minor gaps around error behavior or output dimensions that the schema partly addresses via scale.

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 coverage is 100%, so the schema already documents url, page, and scale with examples and bounds. The description adds cross-tool meaning by explaining that read_file reports the total page count, which helps the agent choose a valid page number.

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: returns one PDF page from the Campus as a PNG image, and explicitly covers visual content that read_file cannot capture as text. This clearly distinguishes it from the sibling read_file tool.

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?

Names the alternative (read_file) and the exact condition for using this tool: diagrams, charts, formulas, and slides that read_file cannot capture as text. It also explains how to know which page to request by referencing read_file's reported total page count.

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