company_list
Retrieve available companies for authenticated users to select and manage recruitment processes on the Evaluar platform.
Instructions
List all companies available for the authenticated user. Must be logged in first.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/company.ts:14-39 (handler)The handler function that executes the company_list tool logic, fetching and returning a list of companies.
export async function handleCompanyList(): Promise<string> { if (!isAuthenticated()) { return JSON.stringify({ success: false, error: "Not authenticated. Please login first using auth_login.", }); } try { const companies = await getCompanies(); return JSON.stringify({ success: true, companies: companies.map(c => ({ id: c.id, name: c.companyName, country: c.countryName, })), count: companies.length, }); } catch (error) { return JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error", }); } } - src/tools/company.ts:4-12 (schema)The tool definition and schema for company_list.
export const companyListTool = { name: "company_list", description: "List all companies available for the authenticated user. Must be logged in first.", inputSchema: { type: "object" as const, properties: {}, required: [], }, };