Skip to main content
Glama

Create a new document

doc_create

Create a new Markdown document for lasting reference; the first line sets the title, and inline #tags classify it.

Instructions

Create a new document for lasting reference (tasks use task_create). Search first via workspace_search: update existing subjects in place. First line sets title; single newlines break lines inside paragraphs. Inline #tags tag the doc.

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": {
      "body": "<body>"
    },
    "name": "doc_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesFull Markdown document; first line is title, one line per paragraph (<=64,000 chars)
langNoBCP-47 tag (e.g. `es`, `en`, `pt-BR`) for `translation_of`
anywayNoAllow creating even if an existing doc shares the subject
folderNoExisting folder name, path, or ID (omit only for Ideas sheet or by request)
page_ofNoParent doc ID to attach as a subpage (1 level deep; inherits folder)
translation_ofNoSource doc ID when creating a translated version

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write, so the safety profile is largely covered. The description adds real behavioral context beyond that: deduplication risk and the search-first workflow, plus body formatting rules (first line is title, single newlines break lines) that affect the outcome. It stops short of saying what is returned or what permissions are required, so not 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short clauses, front-loaded with purpose and the negative routing clause, followed by formatting rules. No filler sentences and no repetition of the title.

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 6-parameter, 100%-covered schema with annotations and no output schema, the description covers purpose, deduplication, sibling routing, and body formatting. The only gap is response behavior (e.g., returned doc ID) and permission prerequisites, which are minor given the schema already documents all parameters.

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, but the description adds meaning the schema lacks: newline semantics inside paragraphs and inline `#tags` tagging for the required `body` parameter, plus an implied rationale for the duplicate-override flag. This is meaningful added interpretation rather than a restatement of field descriptions.

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 ('Create a new document') plus the scope qualifier 'for lasting reference', and explicitly distinguishes itself from the sibling task_create, which handles tasks instead. An agent can separate doc creation from task creation 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?

Gives an explicit precondition ('Search first via workspace_search') and the reason ('update existing subjects in place'), which tells the agent when not to create. It also routes the task use case to task_create, covering the main alternative.

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