auth_login
Authenticate users with username and password to access Evaluar recruitment platform features, returning authentication status and token information.
Instructions
Authenticate with Evaluar using username and password. Returns success status and masked token info.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Email address for Evaluar account | |
| password | Yes | Password for Evaluar account |
Implementation Reference
- src/tools/auth.ts:22-37 (handler)The handler function for the auth_login tool, which performs the actual login via the API client.
export async function handleAuthLogin(args: { username: string; password: string }): Promise<string> { try { const tokenData = await login(args.username, args.password); return JSON.stringify({ success: true, message: "Login successful", expiresIn: tokenData.expires_in, tokenType: tokenData.token_type, }); } catch (error) { return JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error", }); } } - src/tools/auth.ts:3-20 (schema)The schema definition for the auth_login tool, specifying name, description, and input parameters.
export const authLoginTool = { name: "auth_login", description: "Authenticate with Evaluar using username and password. Returns success status and masked token info.", inputSchema: { type: "object" as const, properties: { username: { type: "string", description: "Email address for Evaluar account", }, password: { type: "string", description: "Password for Evaluar account", }, }, required: ["username", "password"], }, };