Skip to main content
Glama

preview

Read-only

Render an inline image of the active Excalidraw canvas to inspect diagrams before export, with controls for scale, format, padding, background, and max dimension.

Instructions

Render an inline image preview of the active Excalidraw canvas.

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": "preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNo
formatNopng
paddingNo
backgroundNo
max_dimensionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "png",
      +  "enum": [
      +    "png",
      +    "jpeg"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / max_dimension
      Added value: +{
      +  "default": 1568,
      +  "maximum": 4096,
      +  "minimum": 50,
      +  "type": "integer"
      +}
  2. First observedv0.2.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds that the render targets the *active* canvas and is returned inline, which is useful scoping context, but it says nothing about the returned payload (image content vs. URL), cost, or how rendering behaves on large canvases.

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?

A single well-formed sentence with the resource front-loaded and no filler. It is efficient, though the brevity is part of why the parameter and usage gaps exist.

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

Completeness2/5

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

For a tool with five tunable rendering parameters and no output schema, the description should at minimum convey that the result is image data and what the parameters control. With no annotation detail on return shape and no parameter explanation, an agent cannot call this confidently beyond the defaults.

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

Parameters2/5

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

Five parameters with 0% schema description coverage: the schema gives only types, defaults, ranges, and one enum. The description adds no meaning for scale, padding, background, max_dimension, or format, so an agent must guess what each knob does to the output. This is the definition's largest gap.

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?

The description pairs a specific verb ("Render") with a specific resource ("an inline image preview of the active Excalidraw canvas"), so the agent knows exactly what it gets back. It does not differentiate itself from siblings such as inspect_scene, which could plausibly be used to reason about canvas content, so it stops short of a 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?

Usage is only implied: the word "preview" and "inline image" suggest calling it when a visual check of the canvas is wanted. There is no explicit statement of when to prefer this over a structural read like inspect_scene, nor any precondition or exclusion.

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