Skip to main content
Glama

execute_robot_task

Control robots using natural language commands to perform tasks like movement and object manipulation. Send Vision-Language-Action instructions to automate robotic operations.

Instructions

Send a Vision-Language-Action command to a robot

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
robot_idYesID of the robot to control
instructionYesNatural language instruction (e.g., "Move to loading dock")
coordinatesNoOptional target coordinates

Implementation Reference

  • The handler function `executeRobotTask` which sends a POST request to the robotics API to execute a task.
    async executeRobotTask(args) {
      const response = await axios.post(
        `${API_BASE}/api-robotics.php`,
        {
          action: 'execute_task',
          robot_id: args.robot_id,
          instruction: args.instruction,
          coordinates: args.coordinates,
        },
        { headers: { 'X-API-Key': API_KEY } }
      );
      
      return {
        content: [
          {
            type: 'text',
            text: `Task executed: ${response.data.status || 'success'}`,
          },
        ],
      };
    }
  • The schema definition for `execute_robot_task` which defines required inputs (robot_id, instruction).
    name: 'execute_robot_task',
    description: 'Send a Vision-Language-Action command to a robot',
    inputSchema: {
      type: 'object',
      properties: {
        robot_id: {
          type: 'string',
          description: 'ID of the robot to control',
        },
        instruction: {
          type: 'string',
          description: 'Natural language instruction (e.g., "Move to loading dock")',
        },
        coordinates: {
          type: 'object',
          properties: {
            x: { type: 'number' },
            y: { type: 'number' },
          },
          description: 'Optional target coordinates',
        },
      },
      required: ['robot_id', 'instruction'],
    },
  • server.js:185-186 (registration)
    The tool registration logic where the `execute_robot_task` call is routed to the handler.
    case 'execute_robot_task':
      return await this.executeRobotTask(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