Skip to main content
Glama

get_agent_info

Retrieve details about your current agent account on the NWO Robotics platform to manage robot control, sensor monitoring, and autonomous payment settings.

Instructions

Get information about the current agent account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'getAgentInfo' method handles the 'get_agent_info' tool request by fetching agent data from the API and returning it.
    async getAgentInfo() {
      const response = await axios.get(
        `${API_BASE}/api-agent-balance.php`,
        {
          headers: {
            'X-API-Key': API_KEY,
            'X-Agent-ID': AGENT_ID,
          },
        }
      );
      
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(response.data.agent, null, 2),
          },
        ],
      };
    }
    
    async run() {
  • server.js:164-171 (registration)
    The 'get_agent_info' tool is defined in the list of available tools provided to the MCP server.
    {
      name: 'get_agent_info',
      description: 'Get information about the current agent account',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • The tool call handler routes 'get_agent_info' requests to the 'getAgentInfo' method.
    case 'get_agent_info':
      return await this.getAgentInfo();

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