Skip to main content
Glama
teamstove

OCD - Organized Context Datastore (MCP)

by teamstove

ocd_mutate_context

Create, update, delete, or move multiple Markdown context entries in one batch call. Specify paths rooted at a context ID to apply changes across the hierarchical datastore.

Instructions

[OCD] コンテキストを変更 (create/update/delete/move 一括実行)

全ての書き込み操作を単一のツールで実行可能。 複数の操作を配列で渡すことで一括処理できます。

  • cwd: 作業ディレクトリ(設定探索の起点)

重要: path は Context Root の id で始まる完全なパスを指定してください。 例: "knowledge-base/new-doc", "src/plugins/MyPlugin/README"

操作タイプ

type

必須フィールド

オプション

create

path, title, summary, content

attrs

update

path

title, summary, attrs, contentUpdates

delete

path

-

move

path, to

-

title + summary の書き方

「ひとつづきのサマリ」として連結して読める形式で記述する

  • title: 見出し部分(10-50文字)

  • summary: 詳細部分(50-300文字)

  • 両者の内容重複は禁止

  • path から想像できる以上の情報を含める

例:

title: "OAuth2.0認証フロー実装"
summary: "Google/GitHub連携対応。JWT発行、リフレッシュトークン管理、セッション有効期限7日。2FAはオプション対応"

contentUpdates の操作タイプ

whole_replace - コンテンツ全置換

{ type: 'whole_replace', content: '新しいコンテンツ全体' }

replace - 部分置換(search / replacement / isRegex / flags)

search: '$', replacement: '\n\n追記内容', isRegex: true, flags: 'm'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYes作業ディレクトリ(設定探索の起点)
operationsYes変更操作の配列
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It explains path formatting, operation types, and title/summary rules, which are helpful. However, it does not disclose side effects, transactional behavior, permanence, or how the tool interacts with the separate ocd_commit sibling. For a mutation tool, this missing info is a notable gap.

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 long but well-structured with headers, a table, and examples. The main purpose is front-loaded in the first line. Every section provides necessary operational detail, though it could be slightly trimmed without losing value. Overall it is efficient for the complexity it covers.

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

Completeness3/5

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

The tool is complex with 4 operation types and nested contentUpdates, and the description covers these thoroughly. However, it omits what the tool returns, error behavior, and how it relates to the ocd_commit sibling (e.g., are changes staged or immediately applied?). These omissions are significant given the lack of output schema and annotations.

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

Parameters5/5

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

Schema coverage is 100% with descriptions for all parameters. The description adds substantial meaning beyond the schema: the operation type table clarifies required/optional fields, the path prefix rule is critical, the title/summary composition rules with examples are provided, and contentUpdates operation types are explained in detail. This significantly enhances correct parameter usage.

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 opens with 'コンテキストを変更 (create/update/delete/move 一括実行)' which explicitly states the tool changes context and can execute multiple mutation operations in batch. It clearly distinguishes itself from sibling read/search/list tools by being the dedicated write tool.

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

Usage Guidelines4/5

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

The description states '全ての書き込み操作を単一のツールで実行可能' (all write operations can be executed in this single tool), strongly implying this is the tool to use for any context mutation. It provides detailed operational constraints like path must start with Context Root id and required fields per operation type, but does not explicitly mention alternatives or when not to use. Sibling tools are read/commit focused, making the usage context clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/teamstove/organized-context-datastore-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server