Skip to main content
Glama
cristip73

MCP Server for Asana

by cristip73

asana_get_project_statuses

Retrieve all status updates for an Asana project to monitor progress and track changes over time.

Instructions

Get all status updates for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_gidYesThe project GID to get statuses for
limitNoResults per page (1-100)
offsetNoPagination offset token
opt_fieldsNoComma-separated list of optional fields to include

Implementation Reference

  • Core handler implementation: wrapper method that calls the Asana SDK's ProjectStatusesApi to fetch all status updates for a project.
    async getProjectStatusesForProject(projectId: string, opts: any = {}) {
      const response = await this.projectStatuses.getProjectStatusesForProject(projectId, opts);
      return response.data;
    }
  • Tool dispatch handler: switch case that invokes the AsanaClientWrapper method with destructured arguments and formats the response.
    case "asana_get_project_statuses": {
      const { project_gid, ...opts } = args;
      const response = await asanaClient.getProjectStatusesForProject(project_gid, opts);
      return {
        content: [{ type: "text", text: JSON.stringify(response) }],
      };
    }
  • Tool schema definition: specifies name, description, and input schema for validation.
    export const getProjectStatusesForProjectTool: Tool = {
      name: "asana_get_project_statuses",
      description: "Get all status updates for a project",
      inputSchema: {
        type: "object",
        properties: {
          project_gid: {
            type: "string",
            description: "The project GID to get statuses for"
          },
          limit: {
            type: "number",
            description: "Results per page (1-100)",
            minimum: 1,
            maximum: 100
          },
          offset: {
            type: "string",
            description: "Pagination offset token"
          },
          opt_fields: {
            type: "string",
            description: "Comma-separated list of optional fields to include"
          }
        },
        required: ["project_gid"]
      }
    };
  • Tool registration: includes the tool in the exported tools array used by the MCP server.
    export const tools: Tool[] = [
      listWorkspacesTool,
      searchProjectsTool,
      getProjectTool,
      getProjectTaskCountsTool,
      getProjectSectionsTool,
      createSectionForProjectTool,
      createProjectForWorkspaceTool,
      updateProjectTool,
      reorderSectionsTool,
      getProjectStatusTool,
      getProjectStatusesForProjectTool,
      createProjectStatusTool,
      deleteProjectStatusTool,
      searchTasksTool,
      getTaskTool,
      createTaskTool,
      updateTaskTool,
      createSubtaskTool,
      getMultipleTasksByGidTool,
      addTaskToSectionTool,
      getTasksForSectionTool,
      getProjectHierarchyTool,
      getSubtasksForTaskTool,
      getTasksForProjectTool,
      getTasksForTagTool,
      getTagsForWorkspaceTool,
      addTagsToTaskTool,
      addTaskDependenciesTool,
      addTaskDependentsTool,
      setParentForTaskTool,
      addFollowersToTaskTool,
      getStoriesForTaskTool,
      createTaskStoryTool,
      getTeamsForUserTool,
      getTeamsForWorkspaceTool,
      addMembersForProjectTool,
      addFollowersForProjectTool,
      getUsersForWorkspaceTool,
      getAttachmentsForObjectTool,
      uploadAttachmentForObjectTool,
      downloadAttachmentTool
    ];
  • Import registration: imports the tool definition for use in the handler.
      getProjectStatusTool,
      getProjectStatusesForProjectTool,
      createProjectStatusTool,
      deleteProjectStatusTool
    } from './tools/project-status-tools.js';

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