Skip to main content
Glama

teamtailor_get_candidate

Retrieve detailed information about a specific candidate using their unique ID through integration with the Teamtailor API, enabling efficient candidate management.

Instructions

Get a single candidate by their id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
candidateIdYes

Implementation Reference

  • MCP tool handler function that retrieves the candidate via TeamtailorClient and returns it as JSON text content.
    async ({ candidateId }) => { const candidate = await client.getCandidate(candidateId); return { content: [ { type: "text", text: JSON.stringify(candidate), } ] } }
  • Input validation schema using Zod for the candidateId parameter.
    { candidateId: z.number(), },
  • src/server.ts:46-64 (registration)
    Registration of the 'teamtailor_get_candidate' tool with the MCP server, including description, schema, and handler.
    server.tool( "teamtailor_get_candidate", "Get a single candidate by their id.", { candidateId: z.number(), }, async ({ candidateId }) => { const candidate = await client.getCandidate(candidateId); return { content: [ { type: "text", text: JSON.stringify(candidate), } ] } } );
  • TeamtailorClient method that performs the API request to fetch a single candidate by ID.
    async getCandidate( id: number, ): Promise<Candidate> { const url = new URL(`${this.baseUrl}/candidates/${id}`); const body = await this.request<{ data: Candidate }>(url); return body.data; }
  • Type definition for the Candidate object returned by the Teamtailor API.
    export interface Candidate { id: string; type: 'candidates'; attributes: { createdAt?: string; // date updatedAt?: string; // date email?: string; connected?: boolean; 'consent-future-jobs-at'?: string; // date, read only 'consent-given-future-jobs'?: boolean; // write only 'facebook-id'?: string; 'facebook-profile'?: string; // read only, html version 'first-name'?: string; internal?: boolean; 'last-name'?: string; 'linkedin-profile'?: string; // read only, html version 'linkedin-uid'?: string; 'linkedin-url'?: string; merge?: boolean; // write only 'original-resume'?: string; // read only, signed URL phone?: string; picture?: string; pitch?: string; 'referring-site'?: string; // read only 'referring-url'?: string; referred: boolean; // read only resume?: string; sourced?: boolean; 'setConsent-expiration'?: boolean; // write only tags?: string[]; unsubscribed?: boolean; 'send-welcome-message'?: boolean; // create only }; }

Other Tools

Related Tools

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/crunchloop/mcp-teamtailor'

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