Skip to main content
Glama

Inspect GIF

inspect_gif

Inspect a local GIF file to get its size, dimensions, frame count, and animation status before compressing or adjusting it.

Instructions

Inspect a local GIF file and return its size, dimensions, frame count, and animation status.

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": {
      "input_path": "<input_path>"
    },
    "name": "inspect_gif"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_pathYesAbsolute or working-directory-relative path to a GIF file.

Output Schema

NameRequiredDescriptionDefault
widthYes
heightYes
size_mbYes
animatedYes
input_pathYes
size_bytesYes
frame_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the target must be a local file and what information is returned, which signals a read-only inspection, but says nothing about failure behavior for non-GIF or missing paths, file-size limits, or whether the file is read in full.

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 the verb first and the returned fields enumerated; 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 one-parameter read tool with an output schema, the definition is nearly sufficient, and it even names the return fields. The remaining gap is edge-case behavior (invalid path, non-GIF input), which is not covered anywhere.

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% and there is only one parameter, so the schema already fully documents input_path including its relative-or-absolute semantics. The description's mention of "local GIF file" adds no meaning the schema does not already carry.

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 ("Inspect") and resource ("a local GIF file") and enumerates the exact outputs (size, dimensions, frame count, animation status). It implicitly separates from the compress_* siblings by being a read-only inspection, but never names or contrasts them, so sibling differentiation is left to inference.

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?

There is no explicit when-to-use or when-not-to-use guidance. Usage is only implied by the predict-then-compress workflow suggested by the sibling names; an agent must infer that this is a pre-check tool.

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

Deploy Server

Other Tools