Skip to main content
Glama

generate_claude_config

Create a CLAUDE.md configuration file to define project structure, languages, and specifications for Claude AI development tasks.

Instructions

Generates a CLAUDE.md file for Claude Projects/Tasks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameYesName of the project
languagesYesProgramming languages used
descriptionNoProject description

Implementation Reference

  • The core handler function that generates CLAUDE.md file content using the provided project name, languages, and optional description. It constructs a markdown template with tech stack, guidelines, and code review checklist.
    export function generateClaudeConfigHandler(args: any) {
        const { projectName, languages, description = "" } = args;
    
        const content = `# ${projectName}
    
    ${description}
    
    ## Tech Stack
    ${languages.map((l: string) => `- ${l}`).join("\n")}
    
    ## Guidelines
    1. Follow ${languages[0]} idioms and best practices
    2. Write clean, readable code
    3. Include proper error handling
    4. Document complex logic
    5. Write tests for critical paths
    
    ## Code Review Checklist
    - [ ] Code follows style guide
    - [ ] Tests are included
    - [ ] No security vulnerabilities
    - [ ] Performance considered
    - [ ] Documentation updated
    `;
    
        return {
            content: [{ type: "text", text: content }]
        };
    }
  • Zod schema defining the tool's input parameters: projectName (string), languages (array of strings), description (optional string).
    export const generateClaudeConfigSchema = {
        name: "generate_claude_config",
        description: "Generates a CLAUDE.md file for Claude Projects/Tasks.",
        inputSchema: z.object({
            projectName: z.string().describe("Name of the project"),
            languages: z.array(z.string()).describe("Programming languages used"),
            description: z.string().optional().describe("Project description")
        })
    };
  • src/index.ts:97-97 (registration)
    Registration of the tool in the main stdio server toolRegistry Map.
    ["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],
  • src/server.ts:108-108 (registration)
    Registration of the tool in the HTTP server toolRegistry Map.
    ["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool 'Generates' a file, implying a write operation, but doesn't specify where the file is created (e.g., current directory), whether it overwrites existing files, or what the output looks like. This leaves key behavioral traits unclear for a file-generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded and wastes no space, making it easy to parse quickly.

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?

For a tool that generates files, the description is incomplete given the lack of annotations and output schema. It doesn't explain the output (e.g., file content or success indicators), behavioral details like file location or overwrite behavior, or how it differs from similar sibling tools, leaving significant gaps in understanding.

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

Parameters3/5

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

The input schema has 100% description coverage, with clear documentation for all three parameters (projectName, languages, description). The description adds no additional parameter semantics beyond what's in the schema, so it meets the baseline of 3 for high schema coverage without compensating value.

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

Purpose4/5

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

The description clearly states the action ('Generates') and the resource ('a CLAUDE.md file for Claude Projects/Tasks'), making the purpose evident. However, it doesn't explicitly differentiate from sibling tools like generate_aider_config or generate_cursor_rules, which have similar naming patterns for generating configuration 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 provides no guidance on when to use this tool versus alternatives. With many sibling tools that generate configuration files (e.g., generate_aider_config, generate_cursor_rules), there's no indication of what makes this tool specific to 'CLAUDE.md' or when it should be chosen over others.

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/millsydotdev/Code-MCP'

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