Skip to main content
Glama
by cristip73

asana_get_project

Retrieve detailed project information from Asana using project ID, including optional fields for comprehensive project management and tracking.

Instructions

Get detailed information about a specific project

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project ID to retrieve
opt_fieldsNoComma-separated list of optional fields to include

Input Schema (JSON Schema)

{ "properties": { "opt_fields": { "description": "Comma-separated list of optional fields to include", "type": "string" }, "project_id": { "description": "The project ID to retrieve", "type": "string" } }, "required": [ "project_id" ], "type": "object" }

Implementation Reference

  • Tool schema definition including name, description, and input schema for validating inputs to asana_get_project.
    export const getProjectTool: Tool = { name: "asana_get_project", description: "Get detailed information about a specific project", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "The project ID to retrieve" }, opt_fields: { type: "string", description: "Comma-separated list of optional fields to include" } }, required: ["project_id"] } };
  • Registration of the getProjectTool (asana_get_project) as part of 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 ];
  • Executes the tool by calling AsanaClientWrapper.getProject with project_id and optional fields, returning JSON stringified response.
    case "asana_get_project": { const { project_id, ...opts } = args; const response = await asanaClient.getProject(project_id, opts); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
  • Core helper method in AsanaClientWrapper that wraps the Asana SDK call to retrieve project details with optional fields.
    async getProject(projectId: string, opts: any = {}) { // Only include opts if opt_fields was actually provided const options = opts.opt_fields ? opts : {}; const response = await this.projects.getProject(projectId, options); 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