Skip to main content
Glama

asana_get_task_stories

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

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

  • Switch case in tool_handler function that handles the execution of 'asana_get_task_stories' tool by destructuring arguments and calling asanaClient.getStoriesForTask.
    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) }],
      };
    }
  • Defines the Tool object for 'asana_get_task_stories' including name, description, and input schema.
    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 from story-tools.js for registration.
    import {
      getStoriesForTaskTool,
      createTaskStoryTool
    } from './tools/story-tools.js';
  • Includes getStoriesForTaskTool in the all_tools array which is exported as list_of_tools.
    createTaskTool,
    getStoriesForTaskTool,
  • AsanaClientWrapper method that wraps the Asana SDK call to retrieve stories for a task.
    async getStoriesForTask(taskId: string, opts: any = {}) {
      const response = await this.stories.getStoriesForTask(taskId, opts);
      return response.data;
    }

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

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