company_select
Set the active company for managing recruitment processes on the Evaluar platform. Choose from available companies to work with specific organizational data.
Instructions
Select the active company to work with. Use company_list first to see available options.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | The ID of the company to select |
Implementation Reference
- src/tools/company.ts:56-76 (handler)The handler function that performs the logic for selecting a company.
export async function handleCompanySelect(args: { companyId: string }): Promise<string> { if (!isAuthenticated()) { return JSON.stringify({ success: false, error: "Not authenticated. Please login first using auth_login.", }); } try { const success = await selectCompany(args.companyId); return JSON.stringify({ success, message: success ? `Company ${args.companyId} selected successfully` : "Failed to select company", }); } catch (error) { return JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error", }); } } - src/tools/company.ts:41-54 (schema)The MCP tool definition (name, description, and input schema) for the 'company_select' tool.
export const companySelectTool = { name: "company_select", description: "Select the active company to work with. Use company_list first to see available options.", inputSchema: { type: "object" as const, properties: { companyId: { type: "string", description: "The ID of the company to select", }, }, required: ["companyId"], }, }; - src/index.ts:59-60 (registration)The registration/dispatch logic in the main file where 'company_select' is handled.
case "company_select": result = await handleCompanySelect(args as { companyId: string });