Skip to main content
Glama
Image Annotator MCP Server

Image Annotator MCP Server

by vapvarun

get_image_dimensions

Retrieve an image's width, height, and format to calculate accurate annotation coordinates before placing markers and callouts.

Instructions

Get width, height, and format of an image. Essential for calculating annotation coordinates.

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": {
      "image_path": "<image_path>"
    },
    "name": "get_image_dimensions"
  }
}

Input Schema

NameRequiredDescriptionDefault
image_pathYesAbsolute path to the image

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. "Get" implies a non-destructive read, and naming the returned fields adds useful context beyond the schema, but failure modes (missing file, unsupported or corrupt format) and whether the file is read from local disk are unstated.

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 short sentences with the return values front-loaded and the practical motivation second. Nothing is redundant or padded.

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 single-parameter read tool with no output schema, the description usefully enumerates the returned fields and its role in the annotation workflow. The remaining gap is error/format handling, which is minor for a tool this simple.

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?

Only one parameter, and the schema documents it at 100% coverage ("Absolute path to the image"). The description adds no path syntax, format, or constraint detail beyond that, so the baseline 3 is appropriate when the schema fully explains the input.

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) and resource (image) plus the exact values returned: width, height, and format. That distinguishes it cleanly from sibling tools that mutate or draw on images (annotate_screenshot, blur_area, highlight_area). It stops short of explicitly naming a sibling to contrast with, so it lands at 4 rather than 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?

"Essential for calculating annotation coordinates" gives a real usage cue that ties the tool to the annotation workflow the siblings serve. However, it offers no when-not guidance, no prerequisites (does the file have to exist locally?), and no discussion of alternatives for obtaining image metadata.

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