Skip to main content
Glama

add_document

Create a new document in a workspace, optionally in a folder. Use it for notes or guides—not tasklist tasks; slides and canvases require guide calls and specific title suffixes.

Instructions

Create a new document in a workspace, optionally in a specific folder. NOTE: Do NOT use this for tasks in tasklists - use add_task instead. FOR SLIDES: IMPORTANT - Before creating a slide presentation, you MUST first call get_slides_guide. The title MUST end with ".slides.md" (e.g., "My Presentation.slides.md"). FOR CANVAS: Before creating a canvas, call get_canvas_guide. The title MUST end with ".canvas.md" (e.g., "Architecture Diagram.canvas.md"). Do NOT provide content for canvas files — the system generates it.

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": {
      "workspace": "<workspace>",
      "title": "<title>"
    },
    "name": "add_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoDocument tags
emojiNoEmoji to display next to the document in the sidebar (e.g., "📄", "📝", "💡", "🔍", "📚", "🎯")
titleYesDocument title. For slides, end with ".slides.md". For canvas, end with ".canvas.md" (e.g., "Diagram.canvas.md"). The system sanitizes the title into a filename.
aiNoteNoNote about the creation of this document
folderNoFolder path within documents directory (e.g., "projects/2024" or "notes"). Creates folder if it doesn't exist.
aiModelNoAI model that created this document (e.g., "Claude 3.5 Sonnet")
contentNoDocument content (markdown)
workspaceYesWorkspace path/name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the non-obvious behaviors: title must carry a variant-specific suffix, the system generates canvas content so the caller must not supply it, and slide/canvas creation requires a prior guide call. It stops short of saying what the call returns (no output schema exists) or what permissions/conflicts apply, which keeps it off a 5.

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?

Front-loaded with the general case, then variant-specific rules in labeled blocks, so an agent can stop reading once it knows its variant. Slightly heavy on capitalization and repetition of the suffix rules already in the schema, but nothing is 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?

For an 8-parameter creation tool with no annotations and no output schema, the description covers the tricky paths (tasks, slides, canvas) thoroughly. The remaining gap is the return value and whether the created document is returned by id or path, which an agent would need for follow-up calls.

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 the baseline is 3 and the schema already documents the title suffixes. The description still adds operative meaning beyond the schema by giving concrete title examples and by making the content constraint ('Do NOT provide content for canvas files') an explicit instruction rather than a field description.

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 ('Create a new document in a workspace, optionally in a specific folder') and then explicitly distinguishes itself from add_task, so an agent can route between the two without opening either schema.

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?

Explicit when-not-to-use ('Do NOT use this for tasks in tasklists - use add_task instead') plus mandatory prerequisites for two variants ('MUST first call get_slides_guide', 'call get_canvas_guide'). Both named alternatives are siblings, and the conditions that select them are stated.

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