Skip to main content
Glama

project_shutdown_instance

Shutdown a specific project instance by providing its project identifier to terminate operations and release resources.

Instructions

Shutdown specific project instance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject identifier to shutdown

Implementation Reference

  • MCP tool handler registration for 'project_shutdown_instance': validates input, calls projectManager.shutdownProjectInstance(projectId), and formats markdown response with success/error messages.
    server.tool(
      "project_shutdown_instance",
      "Shutdown specific project instance",
      {
        projectId: z.string().describe("Project identifier to shutdown")
      },
      async ({ projectId }) => {
        try {
          const result = await projectManager.shutdownProjectInstance(projectId);
          
          return {
            content: [
              {
                type: "text",
                text: result.success ? 
                  `šŸ”š **Istanza Terminata**\n\nāœ… ${result.message}` :
                  `āŒ **Errore Terminazione**\n\n${result.message}`
              }
            ]
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `āŒ **Errore:** ${error instanceof Error ? error.message : String(error)}`
              }
            ]
          };
        }
      }
    );
  • Input schema using Zod: requires 'projectId' as string with description.
    {
      projectId: z.string().describe("Project identifier to shutdown")
    },
  • Core shutdown logic in ProjectInstanceManager: retrieves instance, calls controller.shutdown(), deactivates and removes from map, returns success/error.
    public async shutdownProjectInstance(projectId: string): Promise<{
      success: boolean;
      message: string;
    }> {
      const instance = this.projectInstances.get(projectId);
      
      if (!instance) {
        return {
          success: false,
          message: `Project instance ${projectId} not found`
        };
      }
    
      try {
        await instance.controller.shutdown();
        instance.isActive = false;
        this.projectInstances.delete(projectId);
        
        console.error(`šŸ”š Project ${instance.config.name} instance shutdown completed`);
        
        return {
          success: true,
          message: `Project ${instance.config.name} instance shutdown successfully`
        };
      } catch (error) {
        return {
          success: false,
          message: `Error shutting down ${instance.config.name}: ${error instanceof Error ? error.message : String(error)}`
        };
      }
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the action ('shutdown') but doesn't disclose critical behavioral traits: whether this is destructive, requires specific permissions, has side effects, or what happens to the instance (e.g., termination vs. suspension). For a mutation tool with zero annotation coverage, this is a significant gap.

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 with zero waste. It's front-loaded and appropriately sized for a simple tool, earning full marks for conciseness.

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 with potential side effects), lack of annotations, and no output schema, the description is incomplete. It doesn't address what 'shutdown' entails, success/failure indicators, or error conditions, leaving the agent under-informed for safe invocation.

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 description adds no parameter semantics beyond what the schema provides. With 100% schema description coverage (the 'projectId' parameter is fully documented in the schema), the baseline is 3. The description doesn't compensate with additional context like format examples or constraints.

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 'Shutdown specific project instance' clearly states the action (shutdown) and target (specific project instance), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'project_close' or 'instance_cleanup', which might have overlapping functionality, preventing a perfect score.

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 siblings like 'project_close', 'instance_cleanup', and 'project_start_instance', there's no indication of context, prerequisites, or exclusions, leaving the agent to guess based on tool names 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/multiluca2020/visum-thinker-mcp-server'

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