Skip to main content
Glama

extract_config_patterns

Analyzes config files to detect patterns like database, API, and logging, generates documentation, and optionally enhances with AI for security analysis, best practices, and migration suggestions.

Instructions

Extract configuration patterns from config files (C3.4) with optional AI enhancement. Analyzes config files, detects patterns (database, API, logging, etc.), generates documentation, and optionally enhances with AI insights (security analysis, best practices, migration suggestions). Supports 9 formats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryYes
outputNooutput/codebase/config_patterns
max_filesNo
enhanceNo
enhance_localNo
ai_modeNonone
jsonNo
markdownNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description partially discloses behavior: it analyzes files, generates documentation, and can enhance with AI insights. However, it doesn't explain what exactly happens with AI enhancement (e.g., external calls), output destinations, or potential side effects.

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 concise (two sentences) and front-loads the main purpose. However, it could be better structured with bullet points for clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description fails to cover the behavior of many optional parameters (e.g., what happens when 'enhance' is true vs false, or the difference between 'enhance_local' and 'ai_mode'). The tool has 8 parameters, but the description only hints at a few.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not individually explain any of the 8 parameters. Only vague references to AI enhancement hint at 'enhance' and 'ai_mode' parameters. Key parameters like 'directory', 'output', 'max_files', 'json', and 'markdown' are left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly defines the tool's function: extracting configuration patterns from config files, detecting specific patterns (database, API, logging, etc.), generating documentation, and optionally enhancing with AI. It distinguishes itself from sibling tools like 'detect_patterns' by being config-specific and mentioning 9 supported formats.

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 implies usage for configuration pattern analysis but does not explicitly state when to use or when not to use this tool over alternatives. No comparison with siblings like 'detect_patterns' or 'extract_test_examples' is provided.

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/yusufkaraaslan/Skill_Seekers'

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