Skip to main content
Glama

Canvas Inspect Layout

aimixer_canvas_inspect_layout
Read-onlyIdempotent

Use when you need positions, collisions and warnings for long-strip frame arrangements (recommended grid: ceil(sqrt(N)) columns). Computed from saved graph coordinates (no rendering): per selected frame returns the frame rectangle, the cards whose center lies inside it with approximate bounds, overlapping pairs, cards sticking out of the frame and minimum gaps. Sizes are the editor defaults, not measured pixels. To see the real UI use the widget app tools or aimixer_canvas_view_session. Legacy renderer-only arguments are accepted for cached clients and return renderer_retired instead of fake DOM/screenshot data. Read-only: never changes the saved project.

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": {
      "project_id": "<project_id>",
      "frame_ids": "<frame_ids>"
    },
    "name": "aimixer_canvas_inspect_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
min_zoomNo
frame_idsYes
project_idYes
expected_revNo
viewport_widthNo
viewport_heightNo
screenshot_frame_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses that results are derived from saved coordinates with no rendering, that sizes are editor defaults rather than measured pixels, and that stale renderer arguments fail with a specific status rather than fabricating output. It also confirms mutations are impossible, closing the loop on the mutation question an agent would otherwise have to infer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded: use case first, then output contents, then the rendering caveat, then the legacy-argument warning. Slightly dense as a single block, and the closing 'Read-only: never changes the saved project' restates what destructiveHint=false and readOnlyHint=true already declare.

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 read-only inspection tool with an output schema and full annotations, the description is nearly sufficient — it explains the coordinate basis, the meaning of sizes, and the failure mode for stale arguments. The one gap an agent could stumble on is expected_rev, whose purpose in a non-mutating call is left unexplained.

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 0% across 7 parameters, so the description must carry the load. It covers frame selection and explains collectively that the renderer-only arguments (screenshot_frame_id, viewport_*, min_zoom) are legacy and inert, but it never maps names to that explanation and gives no meaning at all for expected_rev or project_id, leaving the most consequential parameter undocumented.

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 resource and output set: per selected frame it returns the frame rectangle, contained cards with approximate bounds, overlapping pairs, out-of-frame cards, and minimum gaps — all computed from saved graph coordinates. It also explicitly separates itself from rendering-oriented siblings by naming aimixer_canvas_view_session for real UI inspection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with the selecting condition ('Use when you need positions, collisions and warnings for long-strip frame arrangements') and names the alternative for the adjacent need ('To see the real UI use the widget app tools or aimixer_canvas_view_session'). It also gives an explicit do-not-expect case: legacy renderer-only arguments return renderer_retired instead of DOM/screenshot data.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources