Skip to main content
Glama

locus_annotate

Attach arbitrary labels and optional notes to indexed chunks so you can mark importance, status, or review state for later retrieval.

Instructions

Attach a label and optional note to a chunk. Labels are arbitrary strings: 'important', 'outdated', 'reviewed', etc. Multiple labels per chunk are supported.

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": {
      "chunk_id": "<chunk_id>",
      "label": "<label>"
    },
    "name": "locus_annotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
labelYes
chunk_idYes
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose one useful trait — "Multiple labels per chunk are supported", implying additive rather than replacing semantics — but says nothing about whether re-applying the same label is idempotent, whether an existing note is overwritten, whether the change persists to disk, or what is returned.

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?

Three short sentences with the core action front-loaded and no filler; the label examples earn their space by clarifying the accepted value space. Slightly more of the budget could have gone to the undocumented store_path instead of a second label example.

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

Completeness3/5

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

The tool is conceptually simple and has no output schema, so the description need not explain return values. However, with zero annotation coverage and zero schema coverage on 4 parameters, an agent still lacks guidance on store_path scoping and on overwrite/idempotency behavior before calling it.

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?

Schema description coverage is 0% across 4 parameters, so the description must compensate and largely does not. It adds real meaning for label (arbitrary strings, with concrete examples) and mentions the note is optional, but chunk_id and especially store_path (defaulting to ".locus") are entirely unexplained.

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?

"Attach a label and optional note to a chunk" gives a specific verb (attach) and resource (label/note on a chunk), which is clearly distinct from read-side siblings like locus_get_annotations or locus_chunks_with_label. It stops short of naming or contrasting any sibling explicitly, so it is clear but not differentiating.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to annotate versus when to use locus_mark_relevant, locus_mark_irrelevant, or locus_promote, all of which could plausibly be confused with labeling. The reader must infer the use case (tagging chunks for later filtering by label) from the label examples alone.

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