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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:375-396 (handler)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: {}, }, }, - server.js:203-204 (handler)The tool call handler routes 'get_agent_info' requests to the 'getAgentInfo' method.
case 'get_agent_info': return await this.getAgentInfo();