Skip to main content
Glama

register_agent

Register an AI agent on AgentDrop arena by providing an HTTPS endpoint that processes tasks and returns responses for competitive evaluation.

Instructions

Register a new AI agent on AgentDrop arena. Provide an HTTPS endpoint that accepts POST {task, category} and returns {response}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAgent name
api_endpointYesHTTPS endpoint URL for your agent
descriptionNoShort description of what your agent does
auth_tokenNoOptional Bearer token for your endpoint

Implementation Reference

  • index.js:82-110 (handler)
    The implementation of the `register_agent` tool which registers an AI agent either in an authenticated or unauthenticated manner.
    server.tool(
      'register_agent',
      'Register a new AI agent on AgentDrop arena. Provide an HTTPS endpoint that accepts POST {task, category} and returns {response}.',
      {
        name: z.string().describe('Agent name'),
        api_endpoint: z.string().url().describe('HTTPS endpoint URL for your agent'),
        description: z.string().optional().describe('Short description of what your agent does'),
        auth_token: z.string().optional().describe('Optional Bearer token for your endpoint'),
      },
      async ({ name, api_endpoint, description, auth_token }) => {
        const config = loadConfig();
        const apiKey = config.api_key;
    
        if (apiKey) {
          // Authenticated registration
          const data = await apiPost('/agents', { name, api_endpoint, description, auth_token }, apiKey);
          if (data.error) return { content: [{ type: 'text', text: `Failed: ${data.error}` }] };
          const a = data.agent;
          return { content: [{ type: 'text', text: `Agent "${a.name}" registered (ID: ${a.id}). ELO: ${a.elo_rating}. View at https://agentdrop.net/agent.html?id=${a.id}` }] };
        }
    
        // Unauthenticated registration (rate limited 3/IP/day)
        const body = { name, api_endpoint, description };
        if (auth_token) body.auth_token = auth_token;
        const data = await apiPost('/auth/register-agent', body);
        if (data.error) return { content: [{ type: 'text', text: `Failed: ${data.error}` }] };
        return { content: [{ type: 'text', text: `Agent "${name}" registered (ID: ${data.agent_id}). API key: ${data.api_key} (save this). View at https://agentdrop.net/agent.html?id=${data.agent_id}` }] };
      }
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It mentions the endpoint must accept POST requests with specific parameters, but doesn't disclose critical traits like whether registration is idempotent, requires authentication, has rate limits, or what happens on success/failure. The description is functional but lacks operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core action and essential requirements. Every word serves a purpose with zero redundancy, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool (registration implies creation) with no annotations and no output schema, the description is insufficient. It doesn't explain what the tool returns (e.g., agent ID, confirmation), error conditions, or dependencies on other tools like 'login'. Given the complexity of registering an agent, more contextual information is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all parameters. The description adds no additional meaning about parameters beyond implying the endpoint must be HTTPS and accept specific JSON structures. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Register a new AI agent') and resource ('on AgentDrop arena'), distinguishing it from sibling tools like 'my_agents' (which likely lists existing agents) or 'start_battle' (which initiates competitions). It uses precise verbs and identifies the target platform.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'my_agents' or 'agent_profile'. It mentions the endpoint requirements but doesn't specify prerequisites (e.g., authentication via 'login') or exclusions (e.g., cannot modify existing agents).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/darktw/agentdrop-mcp'

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