Skip to main content
Glama

image

Render one PDF target as PNG to inspect LaTeX paper output: choose a page, bbox, source line range, or comment, with DPI, margin, and grayscale options.

Instructions

Render one PDF target as PNG. Choose exactly one of page (with optional bbox), source="file.tex:lstart-lend", or comment. Margin expands an exact bbox only while rendering. A multi-page source range renders the page with the most SyncTeX matches.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "image"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNo96 is enough to read text. 150 or more shows fine detail and costs more tokens.
bboxNo
pageNo
marginNo
sourceNo
commentNo
grayscaleNoSet false when colour itself is being checked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 add non-obvious behavior: margin widens an exact bbox only at render time, and a multi-page source range resolves to the page with the most SyncTeX matches rather than failing or rendering all pages. It does not state side effects, whether compilation is triggered, or the shape of the returned image.

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?

Four dense sentences, front-loaded with the core action and immediately followed by the selector constraint. Every sentence adds information; only the terse "Choose exactly one of" phrasing is slightly under-articulated.

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?

For a 7-parameter tool with no annotations and no output schema, the description covers selection and rendering nuance well but omits the default/zero-selector behavior (all parameters are optional), what the response contains, and any note on whether a prior compile is required.

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 only 29% of 7 parameters, yet the description explains the semantics of page, bbox, source (including the "file.tex:lstart-lend" form), comment, and margin's scoping. Remaining gaps are dpi and grayscale, both of which already carry schema descriptions, so the description largely compensates for the low coverage.

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?

The first sentence gives a specific verb and resource: render one PDF target as PNG. That resolves the ambiguity of the bare name "image" and is clearly distinguishable from siblings like compile, listen, and read_comments.

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?

"Choose exactly one of page (with optional bbox), source=..., or comment" explicitly tells the agent how to select the targeting mode and that the selectors are mutually exclusive. It stops short of stating what happens if zero selectors are supplied (none are required), and gives no guidance relative to sibling tools.

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