Skip to main content
Glama

extract_config_patterns

Extract configuration patterns from config files, detect types like database or API, generate documentation, and optionally use AI for security analysis 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 provided, the description carries the full burden of behavioral disclosure. It explains the core actions—analyzing, detecting patterns, generating documentation, and AI enhancement—which gives a baseline understanding. However, it fails to state potential side effects, such as whether the AI mode calls external APIs or if the tool modifies source files, leaving important gaps.

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 at three sentences, front-loading the primary purpose. It efficiently conveys the core functionality and optional enhancement. However, the phrase 'Supports 9 formats' is vague and could be more specific, and the 'C3.4' reference is unclear.

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?

Given the tool has 8 parameters, no schema description coverage, and an output schema that is not detailed in the description, the text is insufficient for complete understanding. It does not explain parameters, return values, or usage scenarios. The agent is left guessing about input requirements and output structure.

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

Parameters1/5

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

Schema description coverage is 0%, and the description adds no information about any of the 8 parameters. It does not explain the directory requirement, the output path default, the ai_mode options, or the boolean flags. The agent must rely solely on the schema, which lacks descriptions and enums.

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 states it extracts configuration patterns from config files, detects specific pattern types (database, API, logging), generates documentation, and offers optional AI enhancement. The verb 'extract' and resource 'config patterns' are specific, and the listing of pattern types and formats provides clarity. It distinguishes from siblings like 'detect_patterns' by focusing on config files.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lacks guidance on when to use this tool versus alternatives like 'detect_patterns' or 'extract_test_examples'. It mentions optional AI enhancement but does not specify when to enable it. No context on whether it's a read-only operation or if it modifies the codebase, and no prerequisites are noted.

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