Skip to main content
Glama
cristip73

MCP Server for Asana

by cristip73

asana_get_project_status

Retrieve project status updates from Asana to monitor progress, track milestones, and stay informed about project developments.

Instructions

Get a project status update

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_status_gidYesThe project status GID to retrieve
opt_fieldsNoComma-separated list of optional fields to include

Implementation Reference

  • Handler case in tool_handler switch that destructures arguments and calls AsanaClientWrapper.getProjectStatus to retrieve the project status, then returns JSON stringified response.
    case "asana_get_project_status": {
      const { project_status_gid, ...opts } = args;
      const response = await asanaClient.getProjectStatus(project_status_gid, opts);
      return {
        content: [{ type: "text", text: JSON.stringify(response) }],
      };
    }
  • Tool definition with name, description, and input schema requiring project_status_gid and optional opt_fields.
    export const getProjectStatusTool: Tool = {
      name: "asana_get_project_status",
      description: "Get a project status update",
      inputSchema: {
        type: "object",
        properties: {
          project_status_gid: {
            type: "string",
            description: "The project status GID to retrieve"
          },
          opt_fields: {
            type: "string",
            description: "Comma-separated list of optional fields to include"
          }
        },
        required: ["project_status_gid"]
      }
    };
  • Registration of all tools including getProjectStatusTool in the exported tools array used by MCP.
    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
    ];
  • AsanaClientWrapper method that wraps the Asana SDK ProjectStatusesApi.getProjectStatus call to retrieve project status data.
    async getProjectStatus(statusId: string, opts: any = {}) {
      const response = await this.projectStatuses.getProjectStatus(statusId, 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/cristip73/mcp-server-asana'

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