Skip to main content
Glama

get_task_details

Retrieve comprehensive details about a specific task from your Linear workspace by providing its unique task ID for efficient tracking and management.

Instructions

Get detailed information about a specific task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesThe ID of the task to retrieve details for

Implementation Reference

  • The handler function that retrieves detailed information for a specific Linear task by ID, fetching related data like assignee, team, state, comments, attachments, and labels, then formats and returns it as JSON.
    private async handleGetTaskDetails(args: any) { if (!args?.taskId) { throw new McpError( ErrorCode.InvalidParams, 'taskId is required' ); } const issue = await linearClient.issue(args.taskId); if (!issue) { throw new McpError( ErrorCode.InvalidRequest, `Task with ID ${args.taskId} not found` ); } const assignee = issue.assignee ? await issue.assignee : null; const team = issue.team ? await issue.team : null; const state = issue.state ? await issue.state : null; const comments = await issue.comments(); const attachments = await issue.attachments(); const labels = await issue.labels(); const formattedIssue = { id: issue.id, title: issue.title, description: issue.description, status: state ? state.name : null, assignee: assignee ? { id: assignee.id, name: assignee.name, email: assignee.email, } : null, team: team ? { id: team.id, name: team.name, } : null, priority: issue.priority, createdAt: issue.createdAt, updatedAt: issue.updatedAt, dueDate: issue.dueDate, estimate: issue.estimate, url: issue.url, comments: comments.nodes.map(comment => ({ id: comment.id, body: comment.body, createdAt: comment.createdAt, userId: comment.userId, })), attachments: attachments.nodes.map(attachment => ({ id: attachment.id, title: attachment.title, url: attachment.url, })), labels: labels.nodes.map(label => ({ id: label.id, name: label.name, color: label.color, })), }; return { content: [ { type: 'text', text: JSON.stringify(formattedIssue, null, 2), }, ], }; }
  • Input schema for the get_task_details tool, requiring a 'taskId' string parameter.
    type: 'object', properties: { taskId: { type: 'string', description: 'The ID of the task to retrieve details for', }, }, required: ['taskId'], },
  • src/index.ts:78-91 (registration)
    Registration of the get_task_details tool in the ListTools response, including name, description, and input schema.
    { name: 'get_task_details', description: 'Get detailed information about a specific task', inputSchema: { type: 'object', properties: { taskId: { type: 'string', description: 'The ID of the task to retrieve details for', }, }, required: ['taskId'], }, },
  • src/index.ts:116-117 (registration)
    Dispatch/registration of the handler in the CallToolRequest switch statement.
    case 'get_task_details': return await this.handleGetTaskDetails(request.params.arguments);

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/Tyru5/linear-mcp'

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