Skip to main content
Glama

Add to a WikiDrive document

wikidrive_add_to_doc
Idempotent

Append new Markdown text to an existing WikiDrive document at the end or under a specified heading, creating the section if missing, without altering existing content.

Instructions

Add text to one of the user's WikiDrive documents without changing anything already there: at the end of a section named by heading (a new section when that heading does not exist yet), or at the end of the document. Use it when the user asks to add to a document, or, when automatic documents are on, to add new knowledge from this work to a document an AI made that wikidrive_recall or wikidrive_search showed (why 'auto'); a document the user wrote needs why 'asked'. Send only the new text. Same content rules as wikidrive_create_doc. Documents that send every change to other people at once are not changed here. Afterwards tell the user the returned message in one line, in the user's language; it says how to undo.

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": {
      "prompt_id": "<prompt_id>",
      "text": "<text>",
      "why": "<why>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "wikidrive_add_to_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyYes'asked' when the user asked for this in this conversation; 'auto' under the user's automatic-documents setting (only for documents an AI made).
textYesOnly the new Markdown to add, in the user's language; never the whole document. Keep each heading at most 120 characters, so it can be named later.
headingNoOptional: the section to add to, by its heading text without the leading #s (e.g. 'Decisions'). A new ## section is made when there is none. Omit it to add at the end.
prompt_idYesThe document's prompt_id from wikidrive_recall, wikidrive_search, wikidrive_open or an earlier document message.
idempotency_keyYesA new random key (e.g. a UUID) for each new save; reuse it only to retry the same save after an unclear result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare non-read-only, non-destructive and idempotent, so the bar is lower, yet the description adds real behavior: existing content is never modified, live-shared documents are refused, and the response carries a message explaining how to undo. It also prescribes surfacing that returned message to the user in one line, which is behavior an agent could not infer from annotations.

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?

The core action and its constraint lead, followed by usage routing, content rules, and the post-call instruction. It is a single dense block with some restatement of schema content (idempotency key, heading limits), but no sentence is purely filler.

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 four-required-parameter mutation tool with no output schema, the description covers what gets written, where, what is preserved, which documents are off-limits, and what the return value contains plus how to relay it. Nothing an agent needs to call this correctly is missing.

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; the description still adds meaning by emphasizing 'send only the new text' and by clarifying the heading contract (section created when the named heading is absent, omit to append at the end). The why enum rationale is restated more situationally than the schema, though idempotency_key guidance is largely a repetition of the schema text.

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 and resource plus its defining constraint: append-only text ('without changing anything already there') at the end of a named section or at the end of the document. An agent can distinguish this from edit_doc or create_doc without opening another schema, because the non-destructive append semantics are stated outright.

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 explicit trigger conditions ('when the user asks to add to a document') and a second conditional path for automatic documents, including the rule that AI-made documents take why 'auto' while user-written documents take 'asked'. It also constrains scope by excluding documents that broadcast every change to other people.

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