Skip to main content
Glama

link_annotation

Attach an existing annotation to a condition or detach it with an empty condition, so unattached notes can be tied to the correct finish or moved when needed.

Instructions

Attach an existing annotation to a condition, or detach it by passing an empty condition — the canvas's Attach/Detach control, reachable by an agent. Use it to tie up notes left unattached (list_annotations reports how many), or to move one to the finish it actually concerns. Attaching mints the tag on first use.

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": {
      "annotation_id": "<annotation_id>",
      "condition": "<condition>"
    },
    "name": "link_annotation"
  }
}

Input Schema

NameRequiredDescriptionDefault
conditionYesFinish tag to attach to; empty string detaches
annotation_idYesId from annotate or list_annotations

Output Schema

NameRequiredDescriptionDefault
idYes
noteYes
conditionYes
condition_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv0.1.6

TDQS

A3.9/5.0
Behavior3/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. It discloses one genuinely non-obvious side effect — "Attaching mints the tag on first use" — plus the detach-via-empty-string convention, but says nothing about idempotency, what happens when the condition doesn't resolve, or whether an already-linked annotation is overwritten.

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?

Two sentences, front-loaded with the primary action and the reverse mode, with no filler. The parenthetical "(list_annotations reports how many)" and "the canvas's Attach/Detach control" earn their place as routing anchors, though "mints the tag" is slightly informal for a spec.

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 two-parameter linkage tool with an output schema already covering return values, the description supplies the mode switch, the side effect, and the discovery path. Only failure/edge behavior (unknown annotation id, already-linked annotation) is left unaddressed.

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 coverage is 100% with only two required params, so the schema already documents both fields including the empty-string detach convention. The description adds only framing ("the finish it actually concerns") rather than new syntactic or value-level meaning, so the baseline of 3 applies.

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?

The description opens with a specific verb+resource pair ("Attach an existing annotation to a condition") and immediately covers the inverse mode ("detach it by passing an empty condition"). It is distinguishable from the sibling tools annotate, edit_annotation, and list_annotations because it operates on an existing annotation's linkage rather than creating or listing one.

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?

It gives concrete when-to-use scenarios: tidying notes left unattached and moving an annotation to the finish it actually concerns, and it points at list_annotations as the discovery step for unattached notes. It lacks an explicit when-not or a stated alternative for cases like re-tagging via edit_annotation, so it stops short of full routing guidance.

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