Skip to main content
Glama
contextstream

ContextStream MCP Server

Generate ContextStream rules

generate_rules

Create AI rule files for code editors to configure ContextStream's persistent memory and code intelligence features within development projects.

Instructions

Generate AI rule files for editors (Cursor, Cline, Kilo Code, Roo Code, Claude Code, Aider). Defaults to the current project folder; no folder_path required when run from a project. Supported editors: codex, cursor, cline, kilo, roo, claude, aider, antigravity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_pathNoAbsolute path to the project folder (defaults to IDE root/cwd)
editorsNoWhich editors to generate rules for. Defaults to all.
workspace_nameNoWorkspace name to include in rules
workspace_idNoWorkspace ID to include in rules
project_nameNoProject name to include in rules
additional_rulesNoAdditional project-specific rules to append
modeNoRule verbosity: bootstrap (~15 lines, recommended), minimal (~80 lines), full (~600 lines)bootstrap
overwrite_existingNoOverwrite ContextStream block in existing rule files (default: true). User content outside the block is preserved.
apply_globalNoAlso write global rule files for supported editors
install_hooksNoInstall Claude Code hooks to enforce ContextStream-first search. Defaults to true for Claude users. Set to false to skip.
include_pre_compactNoInclude PreCompact hook for automatic state saving before context compaction. Defaults to true.
dry_runNoIf true, return content without writing files
Behavior3/5

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

The description adds some behavioral context beyond annotations: it mentions default behavior (current project folder) and lists supported editors. However, annotations already declare non-destructive and non-read-only operations, so the description doesn't add significant safety or mutation details. It lacks information on file creation impacts, error handling, or performance considerations that would enhance transparency for this multi-parameter tool.

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 appropriately concise with two sentences: the first states the core purpose and supported editors, the second provides default behavior guidance. Both sentences earn their place by delivering essential information without redundancy. The structure is front-loaded with the main action, though it could be slightly more polished.

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?

Given the tool's complexity (12 parameters, no output schema) and rich annotations, the description is adequate but has gaps. It covers the what (generate rule files) and some how (default folder, editor list), but doesn't explain the relationship between parameters like 'mode' options or what 'ContextStream' entails. For a tool with many configuration options, more context about typical use cases or output expectations would improve completeness.

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

Parameters3/5

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

With 100% schema description coverage, the input schema fully documents all 12 parameters. The description adds minimal parameter semantics by mentioning the default folder behavior and listing supported editors (which aligns with the 'editors' parameter enum). This provides some context but doesn't significantly enhance understanding beyond what the schema already provides, meeting the baseline for high schema coverage.

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 clearly states the tool's purpose: 'Generate AI rule files for editors' with a specific list of supported editors. It distinguishes this tool from siblings by focusing on rule generation rather than other operations like context management, search, or workspace handling. However, it doesn't explicitly differentiate from potential similar tools like 'init' or 'project' that might also involve setup activities.

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 provides some usage context by stating 'Defaults to the current project folder; no folder_path required when run from a project,' which gives practical guidance. However, it doesn't explicitly state when to use this tool versus alternatives like 'init' or 'project' from the sibling list, nor does it provide exclusion criteria or mention prerequisites beyond the default behavior.

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/contextstream/mcp-server'

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