get_agent
Retrieve comprehensive details for AI agents in the AIProx registry, including endpoints, pricing, payment methods, capabilities, and available models.
Instructions
Get full details for a specific agent in the AIProx registry by name. Returns endpoint, pricing, payment rail, capabilities, and models.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Agent name (e.g. lightningprox, solanaprox, lpxpoly) |
Implementation Reference
- src/index.ts:167-174 (handler)The implementation of the getAgent tool logic, which fetches agent details from the AIProx API.
async function getAgent(name: string): Promise<any> { const res = await fetch(`${AIPROX_URL}/api/agents/${name}`); if (!res.ok) { if (res.status === 404) throw new Error(`Agent '${name}' not found in registry`); throw new Error(`Failed to fetch agent: ${res.statusText}`); } return res.json(); } - src/index.ts:44-54 (registration)The MCP tool registration for 'get_agent'.
{ name: "get_agent", description: "Get full details for a specific agent in the AIProx registry by name. Returns endpoint, pricing, payment rail, capabilities, and models.", inputSchema: { type: "object", properties: { name: { type: "string", description: "Agent name (e.g. lightningprox, solanaprox, lpxpoly)", - src/index.ts:255-268 (handler)The tool handler switch case that invokes the getAgent function when 'get_agent' is called.
case "get_agent": { const { name: agentName } = args as any; const agent = await getAgent(agentName); return { content: [ { type: "text", text: `🤖 Agent: ${agentName}\n\n${formatAgent(agent)}\n\nAPI: curl ${AIPROX_URL}/api/agents/${agentName}`, }, ], }; }