Skip to main content
Glama

annotate_schematic

Replace schematic annotations on design instances or pins/ports to flag info, warning, or error messages. Returns a viewer URL and count; overlays clear automatically when the design changes.

Instructions

Replace schematic annotations on instances or pins/ports. Returns the local viewer URL and count. Annotations clear when the design changes.

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": {
      "items": "<items>"
    },
    "name": "annotate_schematic"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesUp to 200 annotations: path (scope path), kind (instance or term), severity (info, warning, error), message (up to 2000 characters). Whole pins/ports only; [] clears overlays.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • addedInput schema / $defs
      Added value: +{
      +  "AnnotationTarget": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bit": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Bit"
      +      },
      +      "kind": {
      +        "default": "instance",
      +        "enum": [
      +          "instance",
      +          "term"
      +        ],
      +        "title": "Kind",
      +        "type": "string"
      +      },
      +      "message": {
      +        "default": "",
      +        "title": "Message",
      +        "type": "string"
      +      },
      +      "path": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Path",
      +        "type": "array"
      +      },
      +      "severity": {
      +        "default": "info",
      +        "enum": [
      +          "info",
      +          "warning",
      +          "error"
      +        ],
      +        "title": "Severity",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path"
      +    ],
      +    "title": "AnnotationTarget",
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / items / items / $ref
      Added value: +"#/$defs/AnnotationTarget"
    • removedInput schema / properties / items / items / additionalProperties
      Removed value: -true
    • removedInput schema / properties / items / items / type
      Removed value: -"object"
  2. Changed1 schema field changedv0.1.25
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "annotate_schematicOutput",
      +  "type": "object"
      +}
  3. Addedv0.1.9

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the bar is lower. The description still adds real behavioral value the annotations do not: annotations are ephemeral and 'clear when the design changes,' and the call returns a local viewer URL plus a count. That persistence caveat is exactly the kind of trait an agent cannot infer from structured fields.

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?

Three short sentences, mutation stated first, return value second, caveat last. Nothing is redundant and there is no filler.

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?

The tool is low-complexity (one array parameter) and ships an output schema, so return-value explanation is not strictly required. The description nonetheless covers the mutation semantics and the transient lifetime of annotations. The only gap is operational context such as whether a schematic must already be open or how the replacement interacts with the count returned.

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%, with the items array documenting path, kind, severity, message length limits, the 200-cap, and the empty-array clear semantics. The description's 'instances or pins/ports' merely restates the instance/term enum and adds no format or syntax detail beyond the schema. Baseline 3 applies.

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 opens with a specific verb and resource: 'Replace schematic annotations on instances or pins/ports.' That immediately tells an agent what object is being mutated and at what granularity. It stops short of 5 only because it never situates itself against the viewer/selection siblings (open_schematic, get_schematic_selection) that an agent might otherwise reach for.

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?

'Replace' implies this supersedes prior overlays rather than appending, and the schema note that '[] clears overlays' reinforces it. However, there is no explicit when-to-use or when-not guidance, no statement of prerequisites (e.g., must a schematic be open?), and no named alternative for read-only inspection of existing annotations.

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