Skip to main content
Glama
teamstove

OCD - Organized Context Datastore (MCP)

by teamstove

ocd_get_contexts

Retrieve hierarchical context nodes from a shared Markdown datastore using glob patterns and jq filters. Access project knowledge with optional content inclusion based on working directory.

Instructions

[OCD] Organized Context Datastore - 階層構造を持つコンテキストを LLM と人間が共同で読み書きする MCP サーバー。

パターンとフィルタでコンテキストを取得します。

パラメータ

  • patterns: glob パターン配列 (例: ['project/**', 'docs/*'])

  • filter: jq フィルタ式 (例: '.attrs.status == "draft"')

  • includeContent: コンテンツを含めるか (default: true)

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

jq フィルタ例

  • attrs でフィルタ: '.attrs.status == "draft"'

  • 未完了TODOがあるもの: '.todos | any(.completed == false)'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYes作業ディレクトリ(設定探索の起点)
filterNojq フィルタ式 (例: '.categories | any(. == "feature-spec")')
patternsYesContext Root の rootPath で始まる glob パターン配列 (例: ["knowledge-base/**", "src/plugins/*"])
includeContentNoコンテンツを含めるか (default: true)
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. It discloses the includeContent default and cwd usage for config discovery, but does not explicitly state read-only behavior, return format, or potential side effects. As a 'get' tool, read-only is implied, but lacking explicit disclosure and output details limits transparency.

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 well-organized with a brief intro, parameter list, and jq filter examples. It is moderately sized and front-loaded, though some content (the jq examples) is example-oriented and could be trimmed without losing core meaning.

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?

With no output schema, the description should explain what the tool returns, but it does not describe the response structure or content. It covers parameter usage thoroughly but omits return value semantics, leaving agents uncertain about what to expect when calling the tool.

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%, providing baseline 3. The description adds value by giving concrete examples for patterns (['project/**', 'docs/*']) and filter ('.attrs.status == "draft"') and clarifying the default for includeContent. This enriches the parameter semantics beyond the 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 states 'パターンとフィルタでコンテキストを取得します' (retrieves contexts with patterns and filters), which clearly identifies the operation as a retrieval using specific mechanisms. This distinguishes it from siblings like ocd_get_context_tree (tree retrieval) and ocd_search_contexts (search), though it doesn't explicitly name them.

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?

The description implies usage through examples of patterns and filters, but does not explicitly state when to use this tool versus alternatives. No exclusions or alternative recommendations are provided, leaving the agent to infer the appropriate context from the description and tool name.

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