Skip to main content
Glama

Sign In with Email + Password

auth_login

Authenticate an Unseen account with email and password, or register a new one when register is true, and return a bearer token plus user details for authorized API calls.

Instructions

Authenticate an existing Unseen account using email and password (or create one if register: true), returning { token: 'utok_...', user } for use in Authorization: Bearer <token> or authToken.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional display name when registering.
emailYesThe user's email address.
passwordYesAccount password (min 8 characters).
registerNoSet to true to register a new Email + Password account if it does not exist yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=false and destructiveHint=false; the description goes beyond them by disclosing the side effect (account creation when `register: true`) and the exact token shape prefix `utok_`. It does not cover failure behavior (wrong password, duplicate email) or rate limits, which would be needed for a 5.

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?

A single dense sentence that front-loads the core action, then the conditional branch, then the return value. No wasted words and nothing important buried.

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

Completeness4/5

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

With no output schema, the description usefully inlines the return shape (`{ token: 'utok_...', user }`) and how to attach the token, which is exactly what an agent needs for the next call. Error paths and token lifetime are the only notable omissions.

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 coverage is 100%, so all four parameters are already documented in the input schema, and the description mostly restates the `register` behavior found there. The `name` parameter is not mentioned at all in the description. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Authenticate an existing Unseen account using email and password') and adds the registration variant, so the agent knows exactly what the tool does. It does not explicitly contrast itself with the auth_request_otp/auth_verify_otp siblings, which is the one missing differentiator.

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

Usage Guidelines4/5

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

Clearly frames the two modes: log in with existing credentials, or pass `register: true` to create an account. It also explains what to do with the result ('use in Authorization: Bearer <token> or authToken'). It stops short of saying when to prefer this over the OTP siblings.

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