Skip to main content
Glama

generate_cline_config

Generate a .clinerules configuration file for Cline/Roo Code projects to define project structure and supported programming languages.

Instructions

Generates a .clinerules file for Cline/Roo Code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameYes
languagesYes

Implementation Reference

  • The main handler function that implements the tool logic, generating markdown content for a .clinerules file based on projectName and languages.
    export function generateClineConfigHandler(args: any) {
        const { projectName, languages } = args;
        const content = `# ${projectName} - Cline Rules\n\n## Project Stack\n${languages.join(", ")}\n\n## Instructions\n- Follow ${languages[0]} best practices\n- Write clean, tested code\n- Handle errors appropriately\n`;
        return { content: [{ type: "text", text: content }] };
    }
  • The Zod schema defining the tool's metadata and input validation schema (projectName: string, languages: array of strings).
    export const generateClineConfigSchema = {
        name: "generate_cline_config",
        description: "Generates a .clinerules file for Cline/Roo Code.",
        inputSchema: z.object({
            projectName: z.string(),
            languages: z.array(z.string())
        })
    };
  • src/index.ts:100-100 (registration)
    Registration of the tool in the main toolRegistry Map used by the stdio MCP server.
    ["generate_cline_config", { schema: generateClineConfigSchema, handler: generateClineConfigHandler }],
  • src/server.ts:111-111 (registration)
    Registration of the tool in the toolRegistry Map used by the HTTP MCP server.
    ["generate_cline_config", { schema: generateClineConfigSchema, handler: generateClineConfigHandler }],
  • src/index.ts:29-31 (registration)
    Import statement bringing in the schema and handler from aiconfigs.ts (note: .js extension likely due to build config).
        generateClineConfigSchema, generateClineConfigHandler,
        generateCopilotConfigSchema, generateCopilotConfigHandler
    } from "./tools/aiconfigs.js";
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but doesn't describe important behaviors: whether it overwrites existing files, what permissions are needed, what the output format looks like, or any side effects. 'Generates' implies creation but lacks detail about the generation process or result characteristics.

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 extremely concise at just one sentence with zero wasted words. It's front-loaded with the core purpose and uses efficient language. Every word earns its place in communicating the basic function.

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 with 2 parameters, 0% schema coverage, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the tool produces, how parameters are used, or behavioral considerations. While concise, it lacks the detail needed for effective tool selection and invocation given the complexity of configuration generation.

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%, so the description must compensate but provides no parameter information. It doesn't explain what 'projectName' should contain, what 'languages' array expects, or how these parameters affect the generated configuration. The two required parameters remain completely undocumented beyond their schema definitions.

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 verb ('Generates') and resource ('.clinerules file for Cline/Roo Code'), making the purpose understandable. It distinguishes from most siblings by focusing on configuration file generation rather than code analysis or other tasks. However, it doesn't explicitly differentiate from similar config generation tools like generate_aider_config or generate_claude_config.

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?

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention prerequisites, context for generation, or when this specific config file is needed compared to other config generation tools in the sibling list. Users must infer usage from the tool name alone.

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