Skip to main content
Glama

asana_list_workspaces

Retrieve all available Asana workspaces to organize projects and tasks across teams. Use optional fields to customize the data returned.

Instructions

List all available workspaces in Asana

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opt_fieldsNoComma-separated list of optional fields to include

Implementation Reference

  • Executes the 'asana_list_workspaces' tool by calling the AsanaClientWrapper's listWorkspaces method with the provided arguments and returns the JSON-stringified response.
    case "asana_list_workspaces": { const response = await asanaClient.listWorkspaces(args); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
  • Defines the Tool object with name, description, and input schema allowing optional 'opt_fields' parameter.
    export const listWorkspacesTool: Tool = { name: "asana_list_workspaces", description: "List all available workspaces in Asana", inputSchema: { type: "object", properties: { opt_fields: { type: "string", description: "Comma-separated list of optional fields to include" } } } };
  • Core implementation that calls the Asana SDK's WorkspacesApi.getWorkspaces(opts) and returns the data.
    async listWorkspaces(opts: any = {}) { const response = await this.workspaces.getWorkspaces(opts); return response.data; }
  • Includes the listWorkspacesTool in the all_tools array for tool registration.
    listWorkspacesTool,
  • Imports the tool definition for registration.
    import { listWorkspacesTool } from './tools/workspace-tools.js';

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