Skip to main content
Glama

annotate

Place revision clouds, highlights, text, callouts, arrows, bubbles, and scaled dimensions on plan sheets; attach notes to finish tags for scope-aware markup, not quantities.

Instructions

Place an annotation on a sheet — a note ABOUT the work, never a measurement of it. Types: cloud and highlight take rect:[[x0,y0],[x1,y1]] (a revision cloud around an area, a highlight box over it), text takes at:[x,y], callout takes at:[x,y] plus target:[x,y] (the point its leader aims at), arrow takes from:[x,y] and to:[x,y] (tail and head — plank/seam direction, the markup flooring drawings use most; #150), bubble takes at:[x,y] plus optional r (a keynote/detail circle carrying centered text), dimension takes from:[x,y] and to:[x,y] (its two measured endpoints) and labels itself with the length between them at the sheet's scale — drawn as a dimension line with end ticks and the measurement centered. A dimension states a REAL length, so it is the one annotation the scale gate applies to: on an unscaled sheet it refuses exactly like the measure tools (set_scale first) rather than dressing a px figure up as feet. It still touches no quantity — a dimension is a note about a distance, not a takeoff line item.

Pass condition to attach the note to a finish tag, which is what makes it part of that SCOPE rather than a floating remark: it then wears the condition's colour on the canvas and in the marked-set PDF, and travels with it into the report. The tag is minted on first touch like measure_polygon, so you can annotate CPT-1 before anything is traced for it. Omit condition for a note about the sheet itself. Write {{qty}} in the text to quote the linked condition's live measured quantity (multiplier applied, no waste): "x{{qty}} fixtures" reads "x6 EA fixtures" on the sheet and follows every later count; the stored text keeps the field, and list_annotations reports text_resolved.

No review gate: the pencil-not-ink rule exists to stop an agent inventing geometry, and a cloud reading "verify substrate" is not geometry. It touches no quantity. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

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": {
      "sheet": "<sheet>",
      "type": "<type>"
    },
    "name": "annotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
rNoBubble radius (image px); omitted → the canvas default (2% of sheet width)
atNoAnchor point (image px) — text, callout, and bubble (the circle's center)
toNoArrow head / dimension end (image px)
fromNoArrow tail / dimension start (image px)
rectNoCorners (image px) — cloud and highlight
textNoThe note. A cloud with no text still reads as 'look here'; a bubble's text draws centered in the circle; a dimension appends it after the measured length
typeYescloud/highlight need rect; text/callout/bubble need at; callout also needs target; arrow and dimension need from + to
sheetYesSheet name or number, as sheet_info reports it
targetNoWhat a callout's leader line points at (image px)
conditionNoFinish tag to attach this note to, e.g. 'CPT-1' (minted on first use). Omit for an unattached sheet note

Output Schema

NameRequiredDescriptionDefault
idYes
noteYes
textYes
typeYes
sheetYes
conditionYes
length_lfNoDimension only: the measured length (real feet) the annotation will label itself with
condition_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / at / additionalItems
      Added value: +false
    • removedInput schema / properties / from / $ref
      Removed value: -"#/properties/at"
    • addedInput schema / properties / from / additionalItems
      Added value: +false
    • addedInput schema / properties / from / items
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / from / maxItems
      Added value: +2
    • addedInput schema / properties / from / minItems
      Added value: +2
    • addedInput schema / properties / from / type
      Added value: +"array"
    • addedInput schema / properties / rect / additionalItems
      Added value: +false
    • changedInput schema / properties / rect / items
      Previous value: -[
      -  {
      -    "$ref": "#/properties/at"
      -  },
      -  {
      -    "$ref": "#/properties/at"
      -  }
      -]New value: +[
      +  {
      +    "additionalItems": false,
      +    "items": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "number"
      +      }
      +    ],
      +    "maxItems": 2,
      +    "minItems": 2,
      +    "type": "array"
      +  },
      +  {
      +    "additionalItems": false,
      +    "items": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "number"
      +      }
      +    ],
      +    "maxItems": 2,
      +    "minItems": 2,
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / target / $ref
      Removed value: -"#/properties/at"
    • addedInput schema / properties / target / additionalItems
      Added value: +false
    • addedInput schema / properties / target / items
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / target / maxItems
      Added value: +2
    • addedInput schema / properties / target / minItems
      Added value: +2
    • addedInput schema / properties / target / type
      Added value: +"array"
    • removedInput schema / properties / to / $ref
      Removed value: -"#/properties/at"
    • addedInput schema / properties / to / additionalItems
      Added value: +false
    • addedInput schema / properties / to / items
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / to / maxItems
      Added value: +2
    • addedInput schema / properties / to / minItems
      Added value: +2
    • addedInput schema / properties / to / type
      Added value: +"array"
  2. Changed6 schema fields changedv0.1.11
    • changedInput schema / properties / from / description
      Previous value: -"Arrow tail (image px)"New value: +"Arrow tail / dimension start (image px)"
    • changedInput schema / properties / text / description
      Previous value: -"The note. A cloud with no text still reads as 'look here'; a bubble's text draws centered in the circle"New value: +"The note. A cloud with no text still reads as 'look here'; a bubble's text draws centered in the circle; a dimension appends it after the measured length"
    • changedInput schema / properties / to / description
      Previous value: -"Arrow head — what it points at (image px)"New value: +"Arrow head / dimension end (image px)"
    • changedInput schema / properties / type / description
      Previous value: -"cloud/highlight need rect; text/callout/bubble need at; callout also needs target; arrow needs from + to"New value: +"cloud/highlight need rect; text/callout/bubble need at; callout also needs target; arrow and dimension need from + to"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "cloud",
      -  "text",
      -  "callout",
      -  "highlight",
      -  "arrow",
      -  "bubble"
      -]New value: +[
      +  "cloud",
      +  "text",
      +  "callout",
      +  "highlight",
      +  "arrow",
      +  "bubble",
      +  "dimension"
      +]
    • addedOutput schema / properties / length_lf
      Added value: +{
      +  "description": "Dimension only: the measured length (real feet) the annotation will label itself with",
      +  "type": "number"
      +}
  3. Changed7 schema fields changedv0.1.9
    • changedInput schema / properties / at / description
      Previous value: -"Anchor point (image px) — text and callout"New value: +"Anchor point (image px) — text, callout, and bubble (the circle's center)"
    • addedInput schema / properties / from
      Added value: +{
      +  "$ref": "#/properties/at",
      +  "description": "Arrow tail (image px)"
      +}
    • addedInput schema / properties / r
      Added value: +{
      +  "description": "Bubble radius (image px); omitted → the canvas default (2% of sheet width)",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"The note. A cloud with no text still reads as 'look here'"New value: +"The note. A cloud with no text still reads as 'look here'; a bubble's text draws centered in the circle"
    • addedInput schema / properties / to
      Added value: +{
      +  "$ref": "#/properties/at",
      +  "description": "Arrow head — what it points at (image px)"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"cloud/highlight need rect; text/callout need at; callout also needs target"New value: +"cloud/highlight need rect; text/callout/bubble need at; callout also needs target; arrow needs from + to"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "cloud",
      -  "text",
      -  "callout",
      -  "highlight"
      -]New value: +[
      +  "cloud",
      +  "text",
      +  "callout",
      +  "highlight",
      +  "arrow",
      +  "bubble"
      +]
  4. Addedv0.1.6

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does: it discloses the scale gate for dimensions only, the absence of a review gate ('the pencil-not-ink rule exists to stop an agent inventing geometry'), condition minting on first touch, colour propagation to canvas and marked-set PDF, and the live {{qty}} substitution with text_resolved in list_annotations. The coordinate-space contract (image px at render scale 2.0, origin top-left, y down) is exactly the kind of operational detail an agent cannot 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?

Dense but organized: purpose first, then type geometry, then condition attachment, then the gate/coordinate contract. It loses a point for mild repetition ('It touches no quantity' appears twice) and for asides like '#150' and 'the markup flooring drawings use most' that add flavor but not instruction.

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?

For a 10-parameter tool with an output schema, the description covers everything an agent needs to call it correctly: type-dependent required geometry, the scale prerequisite, behavior with and without a condition, and the exact coordinate convention. Return values are left to the output schema, as appropriate.

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?

Schema coverage is 100%, so baseline is 3; the description earns an extra point by adding semantics the schema cannot express — the {{qty}} template syntax inside text, condition minting on first use, and the fact that target is the point a callout's leader aims at while bubble's at is the circle center. It stops short of 5 since most per-parameter meaning is already in the schema descriptions.

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?

Opens with a specific verb and resource ('Place an annotation on a sheet') and immediately draws the boundary against siblings: a note ABOUT the work, 'never a measurement of it.' The seven-type enumeration (cloud, text, callout, highlight, arrow, bubble, dimension) makes it unambiguous versus measure_line, measure_polygon, or place_count.

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?

Gives per-type selection guidance tied to geometry (rect for cloud/highlight, at for text/callout/bubble, from+to for arrow/dimension) and states the conditional behaviors explicitly: 'on an unscaled sheet it refuses exactly like the measure tools (set_scale first).' It also says when to omit condition ('Omit condition for a note about the sheet itself'), which is a clear when-not.

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