Skip to main content
Glama

inspect_image

Reads local image metadata including dimensions, format, aspect ratio, DPI, color space, alpha channel, file size, and EXIF camera details to verify files before editing or export.

Instructions

Read local image dimensions, format, aspect ratio, DPI, color space, alpha channel, file size, and EXIF camera metadata.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "imagePath": "<imagePath>"
    },
    "name": "inspect_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imagePathYesAbsolute or relative path to the local image file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and "Read" plus a pure metadata field list implies a non-mutating, side-effect-free operation. It does not state error behavior (missing file, non-image file), whether large files are a concern, or anything about the response shape beyond naming the fields.

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?

One sentence, front-loaded with the verb and the highest-value outputs first, and every listed field is meaningful to a caller deciding if this tool answers their question. Zero filler.

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?

For a one-parameter inspection tool with no output schema, the enumerated field list effectively documents the return value, which is the main completeness risk here. What remains uncovered is failure behavior and whether unsupported formats error or return partial data — minor for this complexity level.

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?

Single parameter with 100% schema description coverage, so the baseline is 3. The description's "local" wording reinforces that the path must resolve to a local file, but adds no syntax, format, or relative-vs-absolute detail beyond what the schema already documents.

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 ("Read") against a specific resource ("local image") and enumerates exactly what is extracted: dimensions, format, aspect ratio, DPI, color space, alpha, file size, EXIF. That field list distinguishes it cleanly from siblings like upscale_pixel_art or prepare_for_web, which transform rather than inspect.

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?

Usage is implied by the field enumeration and the "local" qualifier, which signals this is metadata inspection of an on-disk file rather than remote URLs. However, it never states when to choose this over diagnose_image_quality or calculate_print_size, nor any prerequisites or exclusions.

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