Skip to main content
Glama

asana_get_project_sections

Retrieve all sections within an Asana project to organize tasks and track workflow progress using the project ID.

Instructions

Get sections in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe project ID to get sections for
opt_fieldsNoComma-separated list of optional fields to include

Implementation Reference

  • Core handler implementation that fetches project sections using Asana's SectionsApi, conditionally including opt_fields.
    async getProjectSections(projectId: string, opts: any = {}) {
      // Only include opts if opt_fields was actually provided
      const options = opts.opt_fields ? opts : {};
      const sections = new Asana.SectionsApi();
      const response = await sections.getSectionsForProject(projectId, options);
      return response.data;
    }
  • Tool dispatch handler that extracts parameters and calls AsanaClientWrapper.getProjectSections, returning JSON response.
    case "asana_get_project_sections": {
      const { project_id, ...opts } = args;
      const response = await asanaClient.getProjectSections(project_id, opts);
      return {
        content: [{ type: "text", text: JSON.stringify(response) }],
      };
    }
  • Tool definition with name, description, and input schema validating project_id (required) and opt_fields.
    export const getProjectSectionsTool: Tool = {
      name: "asana_get_project_sections",
      description: "Get sections in a project",
      inputSchema: {
        type: "object",
        properties: {
          project_id: {
            type: "string",
            description: "The project ID to get sections for"
          },
          opt_fields: {
            type: "string",
            description: "Comma-separated list of optional fields to include"
          }
        },
        required: ["project_id"]
      }
    };
  • Registers the tool in the all_tools array for availability.
    getProjectSectionsTool,
  • Includes the tool in READ_ONLY_TOOLS list for read-only mode filtering.
    'asana_get_project_sections',
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states 'Get sections in a project', implying a read-only operation, but does not specify whether this requires authentication, returns paginated results, or handles errors. For a tool with zero annotation coverage, this is insufficient to inform safe and effective usage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It is front-loaded with the core action and resource, making it easy to parse quickly. This minimal structure is appropriate for a straightforward tool, though it sacrifices detail for brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for effective tool use. It does not explain what the tool returns (e.g., list of sections, error formats) or behavioral aspects like rate limits. For a tool with no structured metadata, the description should provide more context to compensate, which it fails to do.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting both parameters: 'project_id' and 'opt_fields'. The description does not add any additional meaning beyond the schema, such as examples for 'opt_fields' or constraints on 'project_id'. Given the high schema coverage, a baseline score of 3 is appropriate as the schema handles the parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and the resource 'sections in a project', making the purpose unambiguous. However, it does not differentiate from sibling tools like 'asana_get_project' or 'asana_get_project_statuses', which also retrieve project-related data, leaving room for potential confusion about when to use this specific tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, such as needing a valid project ID, or compare it to sibling tools like 'asana_get_project' for broader project details. This lack of context could lead to misuse or redundant tool calls.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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