Skip to main content
Glama

pt_canvas_info

Returns visible canvas dimensions, zoom, device count, and device bounds so you can pick valid x/y coordinates before adding, moving, or annotating devices.

Instructions

Size of PT's visible logical view and where the devices are, so you know which x/y range to use before pt_add_device / pt_move_device / pt_add_note.

Returns view [width, height] in canvas px (depends on the screen and the window: 1512x599 on a 14" MacBook, about 1900x700 on a maximised 1920x1080), zoom (0 = 100 %), the device count and their bbox [x0, y0, x1, y1]. x/y of a device is the top-left corner of its icon (about 50x40 px, labels below): keep x within [40, width-90] and y within [40, height-90] so everything is visible.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pt_canvas_info"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses return fields (view width/height, zoom, device count, bbox), explains that dimensions vary by screen/window with concrete examples, defines x/y as the icon's top-left corner, and gives safe coordinate padding bounds. It does not discuss permissions or side effects, though none are expected for an info call.

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?

Front-loaded with purpose and then return details. The concrete resolution examples are helpful but slightly expand the description; overall it is dense and mostly waste-free.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the 0-param schema and an existing output schema, the description still supplies essential coordinate-system and safe-bounds context that the output schema alone may not convey. It is complete for calling this info tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero input parameters, so the baseline is 4. The description adds no parameter meaning because none exist; its coordinate guidance applies to output values and downstream tools, not to this tool's inputs.

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 the specific resource (PT's visible logical view) and what it reports (size and device positions), and names the downstream tools pt_add_device, pt_move_device, and pt_add_note. This clearly distinguishes it from those mutation siblings.

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

Usage Guidelines4/5

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

Explicitly says to use it before pt_add_device / pt_move_device / pt_add_note to know the x/y range. A when-not case is not spelled out, but the primary usage context is clear.

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