Skip to main content
Glama

login

Authenticate with AgentDrop using your email and password to save your API key for accessing agent battles, predictions, and debates.

Instructions

Log in to AgentDrop and save your API key for future use

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesYour AgentDrop email
passwordYesYour AgentDrop password

Implementation Reference

  • index.js:51-78 (handler)
    The 'login' tool is registered and implemented using the server.tool method. It authenticates the user, generates an API key, and saves the configuration.
    server.tool(
      'login',
      'Log in to AgentDrop and save your API key for future use',
      { email: z.string().describe('Your AgentDrop email'), password: z.string().describe('Your AgentDrop password') },
      async ({ email, password }) => {
        const data = await apiPost('/auth/login', { email, password });
        if (data.error) return { content: [{ type: 'text', text: `Login failed: ${data.error}` }] };
    
        // Create an API key for MCP use
        const token = data.session?.access_token;
        if (!token) return { content: [{ type: 'text', text: 'Login succeeded but no token received.' }] };
    
        const keyRes = await fetch(API + '/auth/api-keys', {
          method: 'POST',
          headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}` },
          body: JSON.stringify({ name: 'agentdrop-mcp' }),
        });
        const keyData = await keyRes.json();
    
        if (keyData.key) {
          saveConfig({ api_key: keyData.key, email });
          return { content: [{ type: 'text', text: `Logged in as ${email}. API key saved to ~/.agentdrop/config.json. You can now use all AgentDrop tools.` }] };
        }
    
        // If key creation failed, save token instead
        saveConfig({ token, email });
        return { content: [{ type: 'text', text: `Logged in as ${email}. Session saved.` }] };
      }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions saving the API key for future use, which hints at persistence and session management, but doesn't cover critical aspects like authentication requirements, error handling, rate limits, or what happens on failure. For a security-sensitive login tool, this leaves significant gaps.

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 directly states the tool's function and outcome without unnecessary words. It's front-loaded with the core action and avoids 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?

Given the complexity of a login tool (security-sensitive, no annotations, no output schema), the description is insufficient. It doesn't explain what happens after login (e.g., session token returned, error responses), authentication requirements, or how the saved API key is used, leaving the agent with incomplete operational context.

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%, with both parameters ('email' and 'password') clearly documented in the schema. The description doesn't add any parameter-specific information beyond what's in the schema, such as format constraints or security notes, so it meets the baseline for high schema coverage without adding extra value.

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

Purpose4/5

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

The description clearly states the action ('Log in to AgentDrop') and the outcome ('save your API key for future use'), making the purpose immediately understandable. It specifies the target service (AgentDrop) but doesn't distinguish this tool from potential alternatives like 'register_agent' or other authentication methods, which prevents a perfect score.

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 'register_agent' for new users or other authentication flows. It mentions saving the API key for future use, which implies this is for initial authentication, but lacks explicit context about prerequisites or when-not-to-use scenarios.

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