Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by bmdy6

create_document

Create a new Markdown document for a new topic, starting in review status. Search for an existing document first and extend it with apply_change instead of creating a duplicate.

Instructions

Create one Markdown document; it always starts as review.

Before creating, search for an existing document on the same topic and extend it with apply_change instead; new files are for new topics only.

document_type:

  • article: one topic, merged from all sources, kept up to date in place;

  • reference: notes on one external source (link + key excerpts, never the full original);

  • research: a research conclusion worth keeping (not deferred/P2 notes);

  • guide: repeatable steps; decision: a choice and its reasons;

  • task (company): one task per file, content must contain ## 任务描述 ## 解决思考 ## 解决方法 ## 结果 ## 链接; created is the task date.

No status argument is accepted: a caller (including another agent) must not be able to create content that already claims to be human-confirmed. Confirming an existing document goes through apply_change.

created/updated are only for importing existing documents that must keep their original dates; new content leaves them unset.

replaces: when merging several notes into one topic article, list the old document paths here. They are deleted after the new file is written, their sources may be re-listed in sources, and the merged body must keep at least 70% of their combined length (drop duplicates, not ideas).

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": {
      "scope": "<scope>",
      "path": "<path>",
      "title": "<title>",
      "content": "<content>"
    },
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
tagsNo
scopeYes
titleYes
seriesNo
contentYes
createdNo
sourcesNo
updatedNo
replacesNo
document_typeNoarticle

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior1/5

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

The annotations declare destructiveHint=false, but the description says that paths listed in replaces 'are deleted after the new file is written.' Deleting existing documents is destructive behavior, so the description contradicts the annotation. This is a serious inconsistency for an agent assessing risk.

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 description is front-loaded with the core action and the search/apply_change alternative before listing document types and parameter-specific rules. It is dense but well structured; most sentences earn their place, though the nested formatting is somewhat long for a single tool description.

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?

Given 11 parameters, no schema descriptions, and an output schema, the definition is mostly complete: it covers creation policy, usage routing, document_type taxonomy, date import semantics, and replaces behavior. It is incomplete on scope, tags, series, and sources semantics, and the delete-on-replaces behavior conflicts with the annotation.

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 description coverage is 0%, so the description must carry the burden of explaining parameters. It adds substantial meaning for document_type, created, updated, replaces, and the absence of a status argument, including the 70% merge-length rule. It still leaves scope, tags, series, and sources only partially or not explained, which are meaningful gaps among 11 parameters.

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?

The description uses a specific verb and resource: 'Create one Markdown document.' It also states the initial state ('always starts as review') and distinguishes six document_type categories, making the tool clearly different from sibling tools such as apply_change or search.

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?

It gives explicit when-to-use guidance: search for an existing document on the same topic and extend it with apply_change instead; new files are only for new topics. It also explicitly explains that confirming an existing document goes through apply_change, so the agent has a clear alternative path.

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