Skip to main content
Glama

guard_patterns

Enforce code quality standards by scanning files for forbidden AST patterns (bare-except, debugger, eval) and custom rules from .ai-patterns.json, blocking non-compliant commits.

Instructions

AST rules: no bare-except/debugger/eval. Custom via .ai-patterns.json. Pre-commit gate with dependency_gatekeeper.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile to check (relative to workspace_dir)
rulesetNoOptional ruleset path relative to workspace_dir (default: .ai-patterns.json + built-in)
workspace_dirYesREQUIRED: project root (abs). reindex first if new.

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/wulun811/LiuHe'

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