Skip to main content
Glama

Archive, flag, or summarize documents

doc_annotate
Idempotent

Archive, unarchive, flag, or summarize documents and ideas by updating status and metadata only, without deleting content or closing anything.

Instructions

Manage non-content document status: archive/unarchive when user requests, flag obsolete/duplicate docs or ideas (sheet#heading) for user deletion (never delete directly), or summarize with an agent-only gist after reading.

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": {
      "action": "<action>",
      "docs": "<docs>"
    },
    "name": "doc_annotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoFor `flag`: explanation in the person's language
docsYesDocument ID(s), or `sheet#heading` idea IDs for `flag`
notesNoFor `summarize`: agent navigation/staleness notes (<=4,000 chars)
actionYesStatus/metadata operation
folderNoFor `archive`/`unarchive`: optionally file into this folder
reasonNoFor `flag`: why it is flagged
insteadNoReplacement doc/task ID (required for `duplicate_of`, `moved`, `superseded`)
summaryNoFor `summarize`: concise doc purpose (<=2,000 chars)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, non-open-world behavior, so the bar is lower. The description still adds real substance beyond them: flag is a proposal routed to a human ('never delete directly'), summarize is 'agent-only', and body must be written in the person's language.

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?

One front-loaded sentence with the resource and scope established first, then each action with its condition. The telegraphic packing ('summarize with an agent-only gist after reading') is dense but every clause carries information; nothing is wasted.

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 an 8-parameter multi-action tool with full schema coverage and no output schema, the description covers all four action modes, the safety constraint, and the audience for each artifact. Only the concrete outcome of `flag` (what the user sees, whether the doc stays readable) is left implicit.

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% and the schema already documents every parameter, including the conditional roles of body/reason/instead/folder/notes/summary. The description's mention of `sheet#heading` idea IDs and the summarize gist largely restates what the schema says, so it adds little param-level meaning beyond the baseline.

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+resource ('manage non-content document status') and enumerates the four concrete operations with their triggers. The phrase 'non-content' explicitly carves this out from the content-editing siblings like doc_edit, so an agent can route without opening a schema.

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?

'archive`/`unarchive` when user requests' and 'flag obsolete/duplicate docs... for user deletion (never delete directly)' give clear per-action triggers, plus a notable when-not (do not delete). It stops short of naming a concrete alternative tool for the user-deletion handoff or for content edits, so it's strong context rather than a full routing table.

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