Skip to main content
Glama

asana_get_project

Retrieve detailed information about a specific Asana project using its unique project ID, including optional fields for comprehensive project data access.

Instructions

Get detailed information about a specific project

Input Schema

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

Implementation Reference

  • Executes the tool logic by destructuring input arguments and calling the AsanaClientWrapper's getProject method to fetch project details.
    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) }], }; }
  • Defines the input schema and metadata for the asana_get_project tool.
    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"] } };
  • Implements the project retrieval by calling the Asana SDK ProjectsApi.getProject method, handling 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; }
  • Registers the tool by including it in the exported list_of_tools array (via all_tools which contains getProjectTool).
    export const list_of_tools = isReadOnlyMode ? all_tools.filter(tool => READ_ONLY_TOOLS.includes(tool.name)) : all_tools;
  • Lists 'asana_get_project' in READ_ONLY_TOOLS for read-only mode filtering.
    'asana_get_project',

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