Skip to main content
Glama

AI Agent Template MCP Server

by bswa006

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
before_generating_codeAI MUST use this prompt before generating any code
validate_my_suggestionAI should validate its own code before presenting to user
check_patternsAI checks if it is following project patterns correctly
prevent_hallucinationAI verifies all imports and methods exist before using them
security_self_checkAI checks its own code for security issues
workflow_guidanceGet workflow guidance for specific tasks
performance_checkTrack agent performance after completing a feature

Resources

Contextual data attached and managed by the client

NameDescription
AI Constraints & RulesCRITICAL: Rules and constraints AI must follow when generating code
Current Code PatternsREQUIRED: Patterns to match when generating new code
Hallucination Prevention GuideIMPORTANT: Common AI mistakes and how to avoid them
Naming ConventionsMANDATORY: Exact naming patterns to follow
Security RequirementsCRITICAL: Security patterns that must be followed
Valid API SignaturesREFERENCE: Correct API methods and signatures to use
Error Handling PatternsREQUIRED: How to handle errors, loading, and edge cases
Agent MemoryPersistent memory of patterns, successes, and learnings
Agent ContextReal-time context tracking for current development session
Pattern LibraryComprehensive library of code patterns for different scenarios
Workflow TemplatesStep-by-step workflows for common development tasks
Test PatternsTesting patterns and strategies for 80%+ coverage

Tools

Functions exposed to the LLM to take actions

NameDescription
check_before_suggesting

CRITICAL: AI must use this before suggesting any code to prevent hallucinations

validate_generated_code

Validate generated code for patterns, security, and best practices

get_pattern_for_task

Get the correct pattern to use for a specific task

check_security_compliance

Check code for security vulnerabilities and compliance

detect_existing_patterns

Analyze existing codebase to detect patterns and conventions

initialize_agent_workspace

Initialize AI agent workspace with template files and context

generate_tests_for_coverage

Generate intelligent tests to achieve 80%+ coverage

track_agent_performance

Track and analyze AI agent performance metrics

create_conversation_starters

Create conversation starters to help AI understand project context quickly

create_token_optimizer

Create tiered context files for token optimization with ROI tracking

create_ide_configs

Create IDE-specific configurations for Cursor, VS Code, and IntelliJ

setup_persistence_automation

Set up automated context updates with monitoring and validation

create_maintenance_workflows

Create team workflows for maintaining AI context quality over time

analyze_codebase_deeply

Perform comprehensive analysis of codebase to understand patterns, tech stack, and architecture

complete_setup_workflow

Complete MCP setup workflow: analyze codebase, create all context files, and configure automation

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/bswa006/mcp-context-manager'

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