Skip to main content
Glama

create_or_update_rule

Create or update project documentation rules to capture coding patterns, architectural decisions, and lessons learned during development work.

Instructions

Document new coding patterns or architectural decisions AS YOU DISCOVER THEM during work. Call this when: you solve a tricky problem, establish a new pattern, learn a gotcha, make an architectural decision, or implement something that should be standardized. Captures lessons learned, design patterns, and team conventions as searchable knowledge for future work. Don't wait until the end - document insights immediately while context is fresh.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNameYesDocumentation file name. Must end with .md. Example: "api-patterns.md"
titleYesDocument title for display and search
descriptionNoBrief summary of the document's purpose
keywordsNoSearch keywords. Include technologies, patterns, and concepts covered
alwaysApplyYestrue: applies to all code (global rule). false: applies only when relevant (contextual)
contentYesFull markdown content of the documentation

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/afterxleep/doc-bot'

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