Skip to main content
Glama

manage_projects

List and analyze indexed projects in the RAG MCP Server to manage semantic code search and knowledge graph relationships.

Instructions

Gérer et lister les projets indexés

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoAction à effectuerlist
project_pathNoChemin du projet pour les statistiques (requis pour 'stats')

Implementation Reference

  • Main execution handler for the 'manage_projects' tool. Handles 'list' action to list all indexed projects using getProjects(), and 'stats' action to get statistics for a specific project using getProjectStatistics().
    export const manageProjectsHandler: ToolHandler = async (args) => {
      const action = args.action || "list";
    
      try {
        if (action === "stats") {
          if (!args.project_path || typeof args.project_path !== 'string') {
            throw new Error("The 'project_path' parameter is required for 'stats' action");
          }
          
          const stats = await getProjectStatistics(args.project_path);
          return { content: [{ type: "text", text: JSON.stringify(stats, null, 2) }] };
        } else {
          const projects = await getProjects();
          return { content: [{ type: "text", text: JSON.stringify(projects, null, 2) }] };
        }
      } catch (error) {
        console.error("Error in manage_projects tool:", error);
        throw error;
      }
    };
  • Tool definition including name, description, and input schema for 'manage_projects'. Defines parameters: action ('list' or 'stats'), and optional project_path for stats.
    export const manageProjectsTool: ToolDefinition = {
      name: "manage_projects",
      description: "Gérer et lister les projets indexés",
      inputSchema: {
        type: "object",
        properties: {
          action: {
            type: "string",
            description: "Action à effectuer",
            enum: ["list", "stats"],
            default: "list"
          },
          project_path: {
            type: "string",
            description: "Chemin du projet pour les statistiques (requis pour 'stats')"
          }
        }
      },
    };
  • Explicit registration of the manage_projects tool and handler into the central toolRegistry.
    // Enregistrer manage_projects
    try {
        toolRegistry.register(manageProjectsTool, manageProjectsHandler);
        console.log(`✅ Outil enregistré: ${manageProjectsTool.name}`);
    }
    catch (error) {
        console.error(`❌ Erreur lors de l'enregistrement de ${manageProjectsTool.name}:`, error);
    }
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 can 'manage' projects, implying potential write operations, but doesn't specify what management entails (e.g., creation, deletion, modification) or any behavioral traits like permissions, side effects, or response format. This leaves significant gaps in understanding how the tool behaves beyond basic parameter handling.

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 French phrase ('Gérer et lister les projets indexés') that is front-loaded and wastes no words. It could be slightly more structured by separating the two functions, but it remains appropriately concise without unnecessary elaboration.

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 (managing and listing projects with two parameters) and the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'manage' involves, how results are returned, or any prerequisites, leaving the agent with insufficient context to use the tool effectively beyond basic parameter passing.

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, clearly documenting both parameters with enums and defaults. The description adds no additional meaning beyond the schema, such as explaining the context of 'indexed projects' or detailing the 'stats' action. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, but no extra value is contributed.

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 'Gérer et lister les projets indexés' states the tool manages and lists indexed projects, which provides a general purpose but lacks specificity. It mentions two actions (manage and list) but doesn't clarify what 'manage' entails or how it differs from sibling tools like 'update_project'. The purpose is somewhat vague rather than clearly distinguishing this tool's unique function.

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 on when to use this tool versus alternatives. The description doesn't indicate scenarios for choosing 'manage_projects' over sibling tools such as 'update_project' for modifications or 'read_graph' for data retrieval. Without any context on usage timing or exclusions, the agent must infer from the tool name and parameters 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/ali-48/rag-mcp-server'

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