Skip to main content
Glama
gcorroto

SVN MCP Server

by gcorroto

svn_cleanup

Clean up interrupted operations in a Subversion working copy to resolve conflicts and restore functionality.

Instructions

Limpiar working copy de operaciones interrumpidas

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRuta específica a limpiar

Implementation Reference

  • Core implementation of the svn_cleanup tool logic in SvnService class. Validates optional path, constructs 'svn cleanup' command arguments, executes the command using executeSvnCommand utility, processes output, and returns structured response.
    async cleanup(path?: string): Promise<SvnResponse<string>> {
      try {
        const args = ['cleanup'];
        
        if (path) {
          if (!validatePath(path)) {
            throw new SvnError(`Invalid path: ${path}`);
          }
          args.push(normalizePath(path));
        }
    
        const response = await executeSvnCommand(this.config, args);
    
        return {
          success: true,
          data: cleanOutput(response.data as string),
          command: response.command,
          workingDirectory: response.workingDirectory,
          executionTime: response.executionTime
        };
    
      } catch (error: any) {
        throw new SvnError(`Failed to cleanup: ${error.message}`);
      }
    }
  • index.ts:513-538 (registration)
    MCP server registration of the 'svn_cleanup' tool, including Zod input schema for optional 'path' parameter, thin handler wrapper that delegates to SvnService.cleanup(), formats the response as formatted Markdown text, and handles errors.
    server.tool(
      "svn_cleanup",
      "Limpiar working copy de operaciones interrumpidas",
      {
        path: z.string().optional().describe("Ruta específica a limpiar")
      },
      async (args) => {
        try {
          const result = await getSvnService().cleanup(args.path);
          
          const cleanupText = `🧹 **Cleanup Completado**\n\n` +
            `**Ruta:** ${args.path || 'Directorio actual'}\n` +
            `**Comando:** ${result.command}\n` +
            `**Tiempo de Ejecución:** ${formatDuration(result.executionTime || 0)}\n\n` +
            `**Resultado:**\n\`\`\`\n${result.data}\n\`\`\``;
    
          return {
            content: [{ type: "text", text: cleanupText }],
          };
        } catch (error: any) {
          return {
            content: [{ type: "text", text: `❌ **Error:** ${error.message}` }],
          };
        }
      }
    );
  • Zod input schema definition for the svn_cleanup tool: optional string 'path' parameter with description.
    {
      path: z.string().optional().describe("Ruta específica a limpiar")
    },
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 mentions cleaning interrupted operations but doesn't detail what this entails (e.g., whether it's destructive, requires specific permissions, or has side effects like removing temporary files). For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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 a single, efficient sentence in Spanish that directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, though it could benefit from slightly more detail given the lack of annotations and output schema.

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's complexity (a mutation operation for cleaning interrupted SVN operations), the absence of annotations and output schema, and the description's limited behavioral details, the description is incomplete. It doesn't explain what 'cleaning' entails, potential impacts, or return values, leaving the agent with insufficient context for safe and effective use.

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 1 parameter with 100% description coverage ('Ruta específica a limpiar'), so the schema already documents the parameter meaning. The description adds no additional semantic context beyond what the schema provides, resulting in a baseline score of 3 as the schema handles the heavy lifting.

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

Purpose3/5

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

The description states the purpose ('Limpiar working copy de operaciones interrumpidas') which translates to 'Clean working copy of interrupted operations', providing a specific verb ('clean') and resource ('working copy'). However, it doesn't clearly distinguish from siblings like 'svn_revert' or 'svn_status' which might handle similar cleanup scenarios, leaving the differentiation vague.

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 explicit guidance on when to use this tool versus alternatives like 'svn_revert' or 'svn_status' is provided. The description implies usage for interrupted operations but doesn't specify contexts, exclusions, or prerequisites, offering minimal direction for selection among sibling tools.

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/gcorroto/mcp-svn'

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