get_application
Retrieve details of a specific job application by ID, optionally including the full job listing with description, salary, and required skills.
Instructions
Get details of a specific job application by ID. Optionally include the full job listing (description, salary, skills, etc.).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The application ID | |
| includeJobListing | No | If true, includes the full job listing details (description, salary, experience level, skills) in the response |
Implementation Reference
- src/tools/applications.ts:46-54 (handler)The handler function for the 'get_application' tool, which calls the client's getApplication method and formats the result.
async (args) => { const application = await client.getApplication(args.id, { includeJobListing: args.includeJobListing }); const formatted = formatApplication(application); if (args.includeJobListing) { const raw = application as unknown as Record<string, unknown>; if (raw.jobListing) { formatted.jobListing = raw.jobListing; } } return { content: [{ type: 'text' as const, text: JSON.stringify(formatted, null, 2) }] }; } - src/tools/applications.ts:39-55 (registration)The registration of the 'get_application' tool using the McpServer instance.
server.tool( 'get_application', 'Get details of a specific job application by ID. Optionally include the full job listing (description, salary, skills, etc.).', { id: z.string().describe('The application ID'), includeJobListing: z.boolean().optional().describe('If true, includes the full job listing details (description, salary, experience level, skills) in the response'), }, async (args) => { const application = await client.getApplication(args.id, { includeJobListing: args.includeJobListing }); const formatted = formatApplication(application); if (args.includeJobListing) { const raw = application as unknown as Record<string, unknown>; if (raw.jobListing) { formatted.jobListing = raw.jobListing; } } return { content: [{ type: 'text' as const, text: JSON.stringify(formatted, null, 2) }] }; } );