Skip to main content
Glama

stop_robot

Emergency stop a robot by providing its ID to ensure safety during critical situations.

Instructions

Emergency stop a robot

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
robot_idYesID of the robot to stop

Implementation Reference

  • The `stopRobot` handler method processes the tool request by sending an emergency stop command to the backend API.
    async stopRobot(args) {
      const response = await axios.post(
        `${API_BASE}/api-safety.php`,
        {
          action: 'emergency_stop',
          robot_id: args.robot_id,
        },
        { headers: { 'X-API-Key': API_KEY } }
      );
      
      return {
        content: [
          {
            type: 'text',
            text: `Robot ${args.robot_id} stopped successfully`,
          },
        ],
      };
    }
  • server.js:84-96 (registration)
    Definition of the `stop_robot` tool in the `ListToolsRequestSchema` handler.
      name: 'stop_robot',
      description: 'Emergency stop a robot',
      inputSchema: {
        type: 'object',
        properties: {
          robot_id: {
            type: 'string',
            description: 'ID of the robot to stop',
          },
        },
        required: ['robot_id'],
      },
    },
  • Request handler dispatch logic for the `stop_robot` tool.
    case 'stop_robot':
      return await this.stopRobot(args);

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/RedCiprianPater/mcp-server-robotics'

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