Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AI_MODELNoAI model to use for executionanthropic/claude-3-sonnet
LOG_LEVELNoLogging level (DEBUG, INFO, WARN, ERROR)
AI_TIMEOUTNoRequest timeout in ms60000
PROJECT_PATHYesPath to the project directory to analyze
ADR_DIRECTORYNoDirectory containing ADR filesdocs/adrs
AI_MAX_TOKENSNoResponse length limit4000
AI_TEMPERATURENoResponse consistency (0-1)0.1
EXECUTION_MODENoExecution mode: 'full' (AI execution) or 'prompt-only' (legacy)prompt-only
AI_CACHE_ENABLEDNoEnable response cachingtrue
OPENROUTER_API_KEYNoOpenRouter API key from https://openrouter.ai/keys (Required for AI execution)

Tools

Functions exposed to the LLM to take actions

NameDescription
search_tools

Search and discover available tools by category, keyword, or capability. Use this to find the right tool for a task without loading all tool schemas. Returns lightweight tool metadata by default; use includeSchema:true for full schemas.

analyze_project_ecosystem

Comprehensive recursive project ecosystem analysis with advanced prompting techniques (Knowledge Generation + Reflexion)

get_architectural_context

Get detailed architectural context for specific files or the entire project, automatically sets up ADR infrastructure if missing, and provides outcome-focused workflow for project success

generate_adrs_from_prd

Generate Architectural Decision Records from a Product Requirements Document with advanced prompting techniques (APE + Knowledge Generation)

compare_adr_progress

Compare TODO.md progress against ADRs and current environment to validate implementation status

analyze_content_security

Analyze content for sensitive information using AI-powered detection with optional memory integration for security pattern learning

generate_content_masking

Generate masking instructions for detected sensitive content

configure_custom_patterns

Configure custom sensitive patterns for a project

apply_basic_content_masking

Apply basic content masking (fallback when AI is not available)

validate_content_masking

Validate that content masking was applied correctly

manage_cache

Manage MCP resource cache (clear, stats, cleanup)

configure_output_masking

Configure content masking for all MCP outputs

suggest_adrs

Suggest architectural decisions with advanced prompting techniques (Knowledge Generation + Reflexion). TIP: Read @.mcp-server-context.md first for project history, patterns, and previous ADRs to ensure consistency.

generate_adr_from_decision

Generate a complete ADR from decision data. TIP: Reference @.mcp-server-context.md to align with existing architectural patterns and decisions.

generate_adr_bootstrap

Generate bootstrap.sh and validate_bootstrap.sh scripts to ensure deployed code follows ADR requirements. CRITICAL: Before generating scripts, use WebFetch to query the base code repository (e.g., https://github.com/validatedpatterns/common for OpenShift) and authoritative pattern documentation (e.g., https://play.validatedpatterns.io/). Merge the base repository code into your project and have bootstrap.sh call the pattern's scripts rather than generating everything from scratch. This ensures compliance with validated deployment patterns.

bootstrap_validation_loop

GUIDED EXECUTION MODE: This tool guides you through an interactive, step-by-step deployment validation workflow. It does NOT execute commands internally - instead, it tells YOU what commands to run and processes the results iteratively. Workflow: (1) First call with iteration=0: Detects platform (OpenShift/K8s/Docker), validates environment connection, and requests human approval for target platform. (2) Subsequent calls: After running each command and reporting back with output, the tool provides next steps. Environment Validation: Before deployment, the tool verifies connection to the target platform (e.g., oc status for OpenShift, kubectl cluster-info for K8s) and requires explicit human confirmation. Validated Patterns Integration: Automatically identifies base code repositories (e.g., validatedpatterns/common for OpenShift) and guides you to merge them into your project. Deployment Cleanup: Supports CI/CD-style workflows with deployment teardown/restart guidance. Call this tool iteratively, passing previous command output back each time.

discover_existing_adrs

Discover and catalog existing ADRs in the project

analyze_adr_timeline

Analyze ADR timeline with smart time tracking, adaptive thresholds, and actionable recommendations. Auto-detects project context (startup/growth/mature) and generates prioritized work queue based on staleness, implementation lag, and technical debt.

review_existing_adrs

Review existing ADRs against actual code implementation with cloud/DevOps expertise. TIP: After review, call get_server_context to update @.mcp-server-context.md with findings.

validate_adr

Validate an existing ADR against actual infrastructure reality using research-driven analysis. TIP: Compare findings against patterns in @.mcp-server-context.md for consistency checks.

validate_all_adrs

Validate all ADRs in a directory against actual infrastructure reality

incorporate_research

Incorporate research findings into architectural decisions

create_research_template

Create a research template file for documenting findings

request_action_confirmation

Request confirmation before applying research-based changes

generate_rules

Generate architectural rules from ADRs and code patterns

validate_rules

Validate code against architectural rules

create_rule_set

Create machine-readable rule set in JSON/YAML format

analyze_environment

Analyze environment context and provide optimization recommendations with optional memory integration for environment snapshot tracking

generate_research_questions

Generate context-aware research questions and create research tracking system

perform_research

Perform research using cascading sources: project files → knowledge graph → environment resources → web search (fallback)

search_codebase

Atomic tool for searching codebase files based on query patterns. Returns raw file matches with relevance scores. Extracted from ResearchOrchestrator per ADR-018.

llm_web_search

LLM-managed web search using Firecrawl for cross-platform support

llm_cloud_management

LLM-managed cloud provider operations with research-driven approach

llm_database_management

LLM-managed database operations with research-driven approach

analyze_deployment_progress

Analyze deployment progress and verify completion with outcome rules

check_ai_execution_status

Check AI execution configuration and status for debugging prompt-only mode issues

get_workflow_guidance

Get intelligent workflow guidance and tool recommendations based on your goals and project context to achieve expected outcomes efficiently

get_development_guidance

Get comprehensive development guidance that translates architectural decisions and workflow recommendations into specific coding tasks, implementation patterns, and development roadmap

list_roots

List available file system roots that can be accessed. Use this to discover what directories are available before reading files.

read_directory

List files and folders in a directory. Use this to explore the file structure within accessible roots.

read_file

Read contents of a file

write_file

Write content to a file

list_directory

List contents of a directory

generate_deployment_guidance

Generate deployment guidance and instructions from ADRs with environment-specific configurations

smart_git_push

AI-driven security-focused git push with credential detection, file filtering, and deployment metrics tracking. Tests should be run by calling AI and results provided.

deployment_readiness

Comprehensive deployment readiness validation with test failure tracking, deployment history analysis, and hard blocking for unsafe deployments. Integrates with smart_git_push for deployment gating.

troubleshoot_guided_workflow

Structured failure analysis and test plan generation with memory integration for troubleshooting session tracking and intelligent ADR/research suggestion capabilities - provide JSON failure info to get specific test commands

smart_score

Central coordination for project health scoring system - recalculate, sync, diagnose, optimize, and reset scores across all MCP tools

mcp_planning

Enhanced project planning and workflow management tool - phase-based project management, team resource allocation, progress tracking, risk analysis, and executive reporting

interactive_adr_planning

Interactive guided ADR planning and creation tool - walks users through structured decision-making process with research integration, option evaluation, and automatic ADR generation. TIP: Start by reading @.mcp-server-context.md to understand project context and previous decisions.

memory_loading

Advanced memory loading tool for the memory-centric architecture. Query, explore, and manage memory entities and relationships. Load ADRs into memory system and perform intelligent queries.

expand_analysis_section

Retrieve full analysis content from tiered responses. Expand entire analysis or specific sections stored in memory. Use this when a tool returns a summary with an expandable ID.

tool_chain_orchestrator

AI-powered dynamic tool sequencing - intelligently analyze user requests and generate structured tool execution plans

expand_memory

Phase 3: Retrieve and expand stored content from a tiered response using its expandable ID

query_conversation_history

Phase 3: Search and retrieve conversation sessions based on filters

get_conversation_snapshot

Phase 3: Get current conversation context snapshot for resumption or analysis

get_memory_stats

Phase 3: Get statistics about stored conversation memory

update_knowledge

ADR-018: Simple CRUD operations for knowledge graph. Add/remove entities (intents, ADRs, tools, code) and relationships. Use knowledge://graph resource to read current state (zero token cost).

get_server_context

Generate a comprehensive context file showing the server's current state, memory, and capabilities. Creates .mcp-server-context.md that can be @ referenced in conversations for instant LLM awareness

get_current_datetime

Get the current date and time in various formats. Useful for timestamping ADRs, research documents, and other architectural artifacts. Returns ISO 8601, human-readable, and ADR-specific date formats.

set_project_path

Dynamically set the active project path for the current session. Call this at the start of a session to switch between projects without restarting the server or modifying environment variables. All subsequent tool calls will use this path as the default.

load_prompt

Load a specific prompt or prompt section on-demand. Part of CE-MCP lazy loading system that reduces token usage by ~96% by loading prompts only when needed. Use this to retrieve prompt templates for ADR generation, analysis, deployment, and other operations.

Prompts

Interactive templates invoked by user choice

NameDescription
goal_specificationSpecify project goals and requirements for comprehensive analysis
action_confirmationConfirm actions before writing files to disk
ambiguity_resolutionResolve ambiguities in project analysis or requirements
custom_rule_definitionDefine custom architectural rules and validation criteria
baseline_analysisGenerate comprehensive baseline analysis for existing projects
secret_prevention_guidanceProactive guidance to prevent secret exposure in code and documentation
todo_task_generationGenerate comprehensive development task list from ADRs with cloud/DevOps expertise
todo_status_managementManage task status, priorities, and progress tracking
todo_dependency_analysisAnalyze task dependencies and critical path optimization
todo_estimationProvide accurate task estimation and timeline planning
technology_detection_promptGenerate technology detection analysis prompt
pattern_detection_promptGenerate architectural pattern detection prompt
comprehensive_analysis_promptGenerate comprehensive project analysis prompt
implicit_decision_detection_promptGenerate prompt for detecting implicit architectural decisions in code
code_change_analysis_promptGenerate prompt for analyzing code changes for architectural decisions
adr_template_promptGenerate ADR template prompt with specific format and context
deployment_task_identification_promptGenerate prompt for identifying deployment tasks
cicd_analysis_promptGenerate CI/CD pipeline analysis prompt
deployment_progress_calculation_promptGenerate deployment progress calculation prompt
completion_verification_promptGenerate completion verification prompt
environment_spec_analysis_promptGenerate environment specification analysis prompt
containerization_detection_promptGenerate containerization detection prompt
adr_environment_requirements_promptGenerate ADR environment requirements prompt
environment_compliance_promptGenerate environment compliance analysis prompt
research_topic_extraction_promptGenerate research topic extraction prompt
research_impact_evaluation_promptGenerate research impact evaluation prompt
adr_update_suggestion_promptGenerate ADR update suggestion prompt
problem_knowledge_correlation_promptGenerate problem-knowledge correlation prompt
relevant_adr_pattern_promptGenerate relevant ADR pattern identification prompt
context_aware_research_questions_promptGenerate context-aware research questions prompt
research_task_tracking_promptGenerate research task tracking prompt
rule_extraction_promptGenerate rule extraction prompt from code and ADRs
pattern_based_rule_promptGenerate pattern-based rule creation prompt
code_validation_promptGenerate code validation prompt against rules
rule_deviation_report_promptGenerate rule deviation report prompt
sensitive_content_detection_promptGenerate sensitive content detection prompt
content_masking_promptGenerate content masking strategy prompt
custom_pattern_configuration_promptGenerate custom security pattern configuration prompt
validated_pattern_selection_promptGenerate validated pattern selection guidance for LLMs
validated_pattern_integration_promptGenerate comprehensive pattern integration guide with base code repository instructions
validated_pattern_troubleshooting_promptGenerate pattern troubleshooting guide for deployment failures

Resources

Contextual data attached and managed by the client

NameDescription
Architectural Knowledge GraphComplete architectural knowledge graph with technologies, patterns, and relationships
Analysis ReportComprehensive project analysis report with metrics and recommendations
ADR ListList of all Architectural Decision Records with status and metadata
Todo ListCurrent project task list with status, priorities, and dependencies
Research IndexIndex of all research documents and findings with metadata
Rule CatalogCatalog of all architectural and validation rules from ADRs and code
Rule GenerationAI-powered rule generation from ADRs and code patterns. Supports query parameters: ?operation=generate|validate|create_set, ?source=adrs|patterns|both, ?knowledge=true|false, ?enhanced=true|false, ?format=json|yaml|both, ?comprehensive=true|false
Project StatusCurrent project status and health metrics aggregated from all sources
ADR by IDIndividual Architectural Decision Record by ID or title match
Research by TopicResearch documents filtered by topic with full content
Todo by Task IDIndividual task details by ID or title match with dependencies and history
Rule by IDIndividual architectural rule by ID or name match with violations and usage stats
Deployment StatusCurrent deployment state with health checks, build status, and readiness score
Environment AnalysisSystem environment details including platform, dependencies, and capabilities
Memory SnapshotsKnowledge graph snapshots with statistics, insights, and relationship data
Project MetricsCode metrics and quality scores including codebase stats, quality assessment, and git metrics
Technology by NameIndividual technology analysis by name with usage, relationships, and adoption status
Pattern by NameIndividual pattern analysis by name with quality metrics, relationships, and examples
Deployment HistoryHistorical deployment data with trends, failure analysis, and patterns. Supports query parameters: ?period=7d|30d|90d|1y|all, ?environment=production|staging|development|all, ?includeFailures=true|false, ?includeMetrics=true|false, ?format=summary|detailed
Code QualityComprehensive code quality assessment with metrics, issues, and recommendations. Supports query parameters: ?scope=full|changes|critical, ?includeMetrics=true|false, ?includeRecommendations=true|false, ?threshold=0-100, ?format=summary|detailed
Validated Patterns CatalogComplete catalog of validated deployment patterns for different platforms (OpenShift, Kubernetes, Docker, Node.js, Python, MCP, A2A) with bill of materials, deployment phases, validation checks, and authoritative sources
Validated Pattern by PlatformIndividual validated pattern by platform type (openshift, kubernetes, docker, nodejs, python, mcp, a2a) with complete bill of materials, deployment phases, validation checks, health checks, and authoritative sources for LLM research
Pattern Authoritative SourcesAuthoritative documentation and repository sources for a specific platform pattern, prioritized by importance with query instructions for LLMs
Pattern Base Code RepositoryBase code repository information for a platform pattern including URL, integration instructions, required files, and script entrypoint
Knowledge GraphRead-only knowledge graph structure with nodes (intents, ADRs, tools, code files) and edges (relationships). Zero token cost for querying graph state. Use update_knowledge tool to modify.

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/tosin2013/mcp-adr-analysis-server'

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