Skip to main content
Glama

pt_clear_annotations

Removes canvas annotations (text notes and drawings) without changing devices or links, so you can clean up a topology's visual notes while preserving the network.

Instructions

Removes the canvas annotations: text notes and drawings.

It does NOT touch devices or links, only the graphic elements.

PT leaves orphan note ids that it never releases — with no text and that it refuses to delete. They are not a failure: the canvas is visually clean anyway, and they are reported separately as stale_ids.

Parameters:

  • kind: "all" (default) removes notes and drawings; "notes" only the notes.

Example: pt_clear_annotations()

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_clear_annotations"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoall

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.3/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden. It does well on one behavioral point: it pre-empts a confusing outcome by explaining that orphan note ids persist and surface as `stale_ids`, and that this is not a failure. It does not, however, state whether removal is permanent/undoable or what permissions or canvas state are required for a destructive operation.

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?

Front-loaded with the action and scope, followed by the exclusion, the caveat, and parameter semantics in a logical order. The trailing no-argument example is redundant but costs a single line, and the stale_ids note earns its space by preventing a misread of results.

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-optional-parameter tool with an output schema (which covers the `stale_ids` return), the description supplies purpose, scope boundary, parameter values, and a behavioral caveat. The remaining gap is the lack of any statement about reversibility or preconditions for a destructive clear.

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

Parameters5/5

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

Schema coverage is 0% and the schema exposes only a bare string with no enum, so the description must supply all meaning. It does exactly that by enumerating both accepted values ('all' removes notes and drawings; 'notes' only notes) and flagging the default, fully compensating for the empty schema.

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 verb (removes) and a precisely scoped resource (canvas annotations: text notes and drawings), then immediately delimits scope by declaring it does not touch devices or links. An agent can tell exactly what is and is not affected without consulting 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?

Usage context is clear from the explicit exclusion ('only the graphic elements'), which tells the agent when this tool is the wrong choice — i.e., when devices or links need clearing. No named alternative tool or explicit when-to-use trigger is given, so it stops short of a 5.

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