Skip to main content
Glama

verify_image

Checks whether a downloaded image is a valid JPEG file, helping confirm scans are intact and usable before processing.

Instructions

Verify that a downloaded image is a valid JPEG

Input Schema

NameRequiredDescriptionDefault
pathYesPath to image file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It never says what happens on failure (exception vs. boolean), whether it reads only headers or fully decodes the file, or whether it requires the file to already exist on disk.

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 padding or redundancy. Every word (verify, downloaded, JPEG) carries information.

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 one-parameter check with no output schema, the description should state the success/failure signal so an agent knows whether to branch on a return value or catch an error. That, plus the JPEG-only scope question, is the remaining gap; otherwise the tool is simple enough that little more is needed.

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?

One parameter with 100% schema description coverage, so the schema already documents the path argument. The description adds only the implication that the path points at a previously downloaded image, no format or validation detail beyond that. Baseline 3 applies.

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 (verify), a specific resource (downloaded image), and the concrete check performed (valid JPEG). That distinguishes it from the sibling tools, which are all page/book retrieval or OCR-prep operations. It does not say whether non-JPEG formats are in scope, keeping it short of a 5.

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

Usage Guidelines3/5

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

"Downloaded image" implies the workflow position (a check after download_page/download_range), but there is no explicit when-to-use, when-not-to-use, or named alternative. Usage is inferable rather than stated.

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