Skip to main content
Glama
yarmijosp94

Evaluar MCP Server

by yarmijosp94

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
NameRequiredDescriptionDefault
companyIdYesThe ID of the company to select

Implementation Reference

  • 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",
        });
      }
    }
  • 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 });

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/yarmijosp94/evaluar-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server