Skip to main content
Glama

register_agent

Register an AI agent with NWO Robotics by providing a wallet address, agent name, and capabilities to enable robot control and IoT device management.

Instructions

Self-register as a new AI agent (if not already registered)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_addressYesEthereum wallet address (0x...)
agent_nameYesName for this agent
capabilitiesNoList of capabilities (vision, navigation, manipulation, iot)

Implementation Reference

  • The handler function that executes the logic for 'register_agent', calling the external API to register the agent.
    async registerAgent(args) {
      const response = await axios.post(
        `${API_BASE}/api-agent-register.php`,
        {
          wallet_address: args.wallet_address,
          agent_name: args.agent_name,
          capabilities: args.capabilities || ['vision', 'navigation'],
        }
      );
      
      const data = response.data;
      return {
        content: [
          {
            type: 'text',
            text: `Agent registered!\n` +
                  `Agent ID: ${data.agent_id}\n` +
                  `API Key: ${data.api_key_prefix}...\n` +
                  `Tier: ${data.tier}\n` +
                  `Monthly Quota: ${data.monthly_quota}\n\n` +
                  `IMPORTANT: Save your API key securely!`,
          },
        ],
      };
    }
  • The schema definition for the 'register_agent' tool, defining inputs and description.
      name: 'register_agent',
      description: 'Self-register as a new AI agent (if not already registered)',
      inputSchema: {
        type: 'object',
        properties: {
          wallet_address: {
            type: 'string',
            description: 'Ethereum wallet address (0x...)',
          },
          agent_name: {
            type: 'string',
            description: 'Name for this agent',
          },
          capabilities: {
            type: 'array',
            items: { type: 'string' },
            description: 'List of capabilities (vision, navigation, manipulation, iot)',
          },
        },
        required: ['wallet_address', 'agent_name'],
      },
    },
  • server.js:197-198 (registration)
    The registration of the 'register_agent' tool within the main tool handler switch statement.
    case 'register_agent':
      return await this.registerAgent(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