Skip to main content
Glama

kaiten_documents_write

Destructive

Create, update, or remove Kaiten documents and document groups by selecting an operation and supplying the required fields. Use it to manage document content and structure through Kaiten's API.

Instructions

Select request.operation and provide its fields in request.args. documentGroups.createNewDocumentGroup: Create new document group (documentGroups); full API fields and JSON response. documentGroups.removeDocumentGroup: Remove document group (documentGroups); full API fields and JSON response. documentGroups.updateDocumentGroup: Update document group (documentGroups); full API fields and JSON response. documents.createNewDocument: Create new document (documents); full API fields and JSON response. documents.removeDocument: Remove document (documents); full API fields and JSON response. documents.updateDocument: Update document (documents); full API fields and JSON response.

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": {
      "request": "<request>"
    },
    "name": "kaiten_documents_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description only repeats create/remove/update and a vague 'full API fields and JSON response'; it does not explain what remove destroys, permissions/auth needs, reversibility, or side effects, so it adds little beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The operation list is front-loaded and easy to scan. However, the repeated phrase 'full API fields and JSON response' is redundant and uninformative across all six entries, so the text could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive multi-operation write tool with a complex nested request schema and zero schema-description coverage, the description is not complete: it does not guide field selection, required arguments, or operation-specific behavior. The output schema exists and annotations cover the safety profile, but the callable details are still thin.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description supplies only the top-level contract (request.operation plus request.args). It does not explain required body fields such as title, document_uid, document_group_uid, or sort_order, nor operation-specific constraints, despite a deeply nested schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a dispatcher pattern and enumerates six concrete verbs and resources (create/remove/update document group/document), so the agent can identify the available operations. It does not explicitly differentiate this write tool from kaiten_documents_read or other write siblings, and the opening sentence only explains request.operation/request.args rather than stating the overall purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the caller to choose request.operation and supply fields in request.args, and lists the six valid operations. However, it gives no when-to-use or when-not-to-use guidance, no prerequisites, and no routing advice against kaiten_documents_read or the other write tools.

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