Skip to main content
Glama

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
NameRequiredDescriptionDefault
nameYesAgent name (e.g. lightningprox, solanaprox, lpxpoly)

Implementation Reference

  • 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)",
  • 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}`,
          },
        ],
      };
    }

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/unixlamadev-spec/aiprox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server