Skip to main content
Glama

Inspect item

gimp_inspect_item
Read-only

Inspect a GIMP item by ID to retrieve its kind, owning image, parent, position, and layer properties; returns NOT_FOUND if the item was deleted.

Instructions

Describe one item by id: kind (layer, group, text, mask, channel, path), owning image, parent and position, and its layer properties. Fails with NOT_FOUND once the item is deleted.

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": {
      "item": "<item>"
    },
    "name": "gimp_inspect_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesItem id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'.

Output Schema

NameRequiredDescriptionDefault
xNo
yNo
idYes
kindYes
maskNo
modeNo
nameYes
imageYes
locksNo
widthNo
heightNo
parentYesParent group id (layers) or owning layer id (masks).
opacityNo
visibleYes
childrenNoChild ids for groups, top-most first.
positionYesIndex within the parent, 0 = top-most.
has_alphaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedOutput schema / properties / kind / enum
      Previous value: -[
      -  "layer",
      -  "group",
      -  "text",
      -  "mask",
      -  "channel",
      -  "path"
      -]New value: +[
      +  "layer",
      +  "group",
      +  "text",
      +  "vector",
      +  "link",
      +  "mask",
      +  "channel",
      +  "path"
      +]
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, closed-world operation, so the safety profile is covered. The description adds genuine value beyond that by disclosing the error behavior ('Fails with NOT_FOUND once the item is deleted'), which tells an agent the id can go stale and that failure is expected rather than exceptional. It does not mention anything about cost, caching, or id lifetimes beyond deletion, keeping it at a 4.

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 sentences, no filler, and the core action is front-loaded ahead of the field list. The failure note is appended last where it belongs, and nothing duplicates the schema or annotations verbatim.

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?

An output schema exists, so the description need not document return values, and it still advertises the headline fields. For a single-parameter read tool with full annotation coverage, the remaining gap is only the absence of explicit routing against the sibling inspect tools. That is a small but real omission rather than a structural hole.

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 description coverage is 100% and the single parameter already carries the id format example 'item:5@a1b2c3d4'. The description restates 'by id' and enumerates the kinds an id may refer to, which adds modest meaning about valid inputs but no format or syntax detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

Specific verb and resource: 'Describe one item by id', followed by an enumeration of what is returned (kind, owning image, parent and position, layer properties). The kind list (layer, group, text, mask, channel, path) tells an agent which object types are in scope, which helps separate it from gimp_inspect_image and gimp_inspect_text. It stops short of naming those siblings explicitly, so the differentiation is inferential rather than stated.

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: you call this when you have an item id and want its details. There is no explicit statement about when to prefer it over gimp_inspect_image or gimp_inspect_text, nor any prerequisite or workflow context. The NOT_FOUND note is a failure mode, not guidance about when to use the tool.

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