Skip to main content
Glama

Get Image Info

get_image_info

Read image metadata—dimensions, format, and file size—from a specified path to verify or inspect an image before conversion.

Instructions

Get information about an image (dimensions, format, size)

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": {
      "path": "<path>"
    },
    "name": "get_image_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the image file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. "Get" plus the enumerated output fields conveys a read-only inspection operation, but it is silent on failure behavior for non-image or missing paths, whether the path may be remote, and whether any I/O cost is involved.

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 short sentence with the resource first and the useful output detail in a compact parenthetical; there is no filler or redundancy.

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 read tool with no output schema, the description covers purpose and the shape of the result (dimensions, format, size). Only edge-case behavior and scope of accepted paths are left unaddressed.

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 coverage is 100% with a single required "path" parameter already documented as "Path to the image file". The description adds nothing beyond that, so the 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 ("Get information") and resource ("an image") and enumerates the returned attributes: dimensions, format, size. It is unmistakable what the tool does, though it offers no explicit contrast with siblings like convert_image or list_images.

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 only implied: an agent can infer this is the inspection tool rather than the conversion or listing tools, but the description never says when to choose this over convert_image or that it should not be used to transform files.

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