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
| Name | Required | Description | Default |
|---|---|---|---|
| opt_fields | No | Comma-separated list of optional fields to include | |
| project_id | Yes | The project ID to retrieve |
Implementation Reference
- src/tool-handler.ts:228-234 (handler)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) }], }; }
- src/tools/project-tools.ts:31-48 (schema)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"] } };
- src/asana-client-wrapper.ts:163-168 (helper)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; }
- src/tool-handler.ts:84-86 (registration)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;
- src/tool-handler.ts:70-70 (registration)Lists 'asana_get_project' in READ_ONLY_TOOLS for read-only mode filtering.'asana_get_project',