process_assign_position
Associate a position with an existing eTalent recruitment process on the Evaluar platform using position, agency, and department IDs.
Instructions
Associate a position with an existing eTalent process. Get position details from position_search first.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| processId | Yes | The ID of the process (from process_create) | |
| positionId | Yes | The ID of the position (from position_search) | |
| agencyId | Yes | The agency ID (from position_search) | |
| departmentId | Yes | The department ID (from position_search) |
Implementation Reference
- src/tools/process.ts:89-111 (handler)The handler function for the process_assign_position tool, which authenticates the request and calls the API to assign the position.
export async function handleProcessAssignPosition(args: AssignPositionPayload): Promise<string> { if (!isAuthenticated()) { return JSON.stringify({ success: false, error: "Not authenticated. Please login first using auth_login.", }); } try { await assignPositionToProcess(args); return JSON.stringify({ success: true, message: "Position assigned to process successfully. Use process_launch to start the process.", processId: args.processId, positionId: args.positionId, }); } catch (error) { return JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error", }); } } - src/tools/process.ts:62-87 (schema)The tool schema definition for process_assign_position.
export const processAssignPositionTool = { name: "process_assign_position", description: "Associate a position with an existing eTalent process. Get position details from position_search first.", inputSchema: { type: "object" as const, properties: { processId: { type: "string", description: "The ID of the process (from process_create)", }, positionId: { type: "string", description: "The ID of the position (from position_search)", }, agencyId: { type: "string", description: "The agency ID (from position_search)", }, departmentId: { type: "string", description: "The department ID (from position_search)", }, }, required: ["processId", "positionId", "agencyId", "departmentId"], }, };