Skip to main content
Glama
cristip73
by cristip73

asana_get_task_stories

Retrieve comments and activity history for a specific Asana task to track progress and collaboration.

Instructions

Get comments and stories for a specific task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesThe task ID to get stories for
opt_fieldsNoComma-separated list of optional fields to include

Implementation Reference

  • The switch case in the tool_handler function that dispatches and executes the asana_get_task_stories tool by calling the Asana client method.
    case "asana_get_task_stories": { const { task_id, ...opts } = args; const response = await asanaClient.getStoriesForTask(task_id, opts); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
  • The AsanaClientWrapper method that performs the actual API call to retrieve stories for a task using the Asana SDK.
    async getStoriesForTask(taskId: string, opts: any = {}) { const response = await this.stories.getStoriesForTask(taskId, opts); return response.data; }
  • Defines the tool metadata, name, description, and input schema for validation.
    export const getStoriesForTaskTool: Tool = { name: "asana_get_task_stories", description: "Get comments and stories for a specific task", inputSchema: { type: "object", properties: { task_id: { type: "string", description: "The task ID to get stories for" }, opt_fields: { type: "string", description: "Comma-separated list of optional fields to include" } }, required: ["task_id"] } };
  • Imports the getStoriesForTaskTool for registration in the tools list.
    getStoriesForTaskTool, createTaskStoryTool } from './tools/story-tools.js';
  • Registers the tool in the exported tools array used by the MCP server.
    getStoriesForTaskTool,

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/cristip73/mcp-server-asana'

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