Asana · Capability

Asana Workspaces API — Workspaces

Asana Workspaces API — Workspaces. 5 operations. Lead operation: Asana Get multiple workspaces. Self-contained Naftiko capability covering one Asana business surface.

Run with Naftiko AsanaWorkspaces

What You Can Do

GET
Getworkspaces — Asana Get multiple workspaces
/v1/workspaces
GET
Getworkspace — Asana Get a workspace
/v1/workspaces/{workspace-gid}
PUT
Updateworkspace — Asana Update a workspace
/v1/workspaces/{workspace-gid}
POST
Adduserforworkspace — Asana Add a user to a workspace
/v1/workspaces/{workspace-gid}/adduser
POST
Removeuserforworkspace — Asana Remove a user from a workspace
/v1/workspaces/{workspace-gid}/removeuser

MCP Tools

asana-get-multiple-workspaces

Asana Get multiple workspaces

read-only idempotent
asana-get-workspace

Asana Get a workspace

read-only idempotent
asana-update-workspace

Asana Update a workspace

idempotent
asana-add-user-workspace

Asana Add a user to a workspace

asana-remove-user-workspace

Asana Remove a user from a workspace

Capability Spec

workspaces-workspaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Asana Workspaces API — Workspaces
  description: 'Asana Workspaces API — Workspaces. 5 operations. Lead operation: Asana Get multiple workspaces. Self-contained
    Naftiko capability covering one Asana business surface.'
  tags:
  - Asana
  - Workspaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ASANA_API_KEY: ASANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: workspaces-workspaces
    baseUri: https://app.asana.com/api/1.0
    description: Asana Workspaces API — Workspaces business capability. Self-contained, no shared references.
    resources:
    - name: workspaces
      path: /workspaces
      operations:
      - name: getworkspaces
        method: GET
        description: Asana Get multiple workspaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: string
    - name: workspaces-workspace_gid
      path: /workspaces/{workspace_gid}
      operations:
      - name: getworkspace
        method: GET
        description: Asana Get a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_gid
          in: path
          type: string
          required: true
      - name: updateworkspace
        method: PUT
        description: Asana Update a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_gid
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: workspaces-workspace_gid-addUser
      path: /workspaces/{workspace_gid}/addUser
      operations:
      - name: adduserforworkspace
        method: POST
        description: Asana Add a user to a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_gid
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: workspaces-workspace_gid-removeUser
      path: /workspaces/{workspace_gid}/removeUser
      operations:
      - name: removeuserforworkspace
        method: POST
        description: Asana Remove a user from a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_gid
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ASANA_API_KEY}}'
  exposes:
  - type: rest
    namespace: workspaces-workspaces-rest
    port: 8080
    description: REST adapter for Asana Workspaces API — Workspaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/workspaces
      name: workspaces
      description: REST surface for workspaces.
      operations:
      - method: GET
        name: getworkspaces
        description: Asana Get multiple workspaces
        call: workspaces-workspaces.getworkspaces
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace-gid}
      name: workspaces-workspace-gid
      description: REST surface for workspaces-workspace_gid.
      operations:
      - method: GET
        name: getworkspace
        description: Asana Get a workspace
        call: workspaces-workspaces.getworkspace
        with:
          workspace_gid: rest.workspace_gid
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateworkspace
        description: Asana Update a workspace
        call: workspaces-workspaces.updateworkspace
        with:
          workspace_gid: rest.workspace_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace-gid}/adduser
      name: workspaces-workspace-gid-adduser
      description: REST surface for workspaces-workspace_gid-addUser.
      operations:
      - method: POST
        name: adduserforworkspace
        description: Asana Add a user to a workspace
        call: workspaces-workspaces.adduserforworkspace
        with:
          workspace_gid: rest.workspace_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace-gid}/removeuser
      name: workspaces-workspace-gid-removeuser
      description: REST surface for workspaces-workspace_gid-removeUser.
      operations:
      - method: POST
        name: removeuserforworkspace
        description: Asana Remove a user from a workspace
        call: workspaces-workspaces.removeuserforworkspace
        with:
          workspace_gid: rest.workspace_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: workspaces-workspaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Asana Workspaces API — Workspaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: asana-get-multiple-workspaces
      description: Asana Get multiple workspaces
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: workspaces-workspaces.getworkspaces
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-workspace
      description: Asana Get a workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: workspaces-workspaces.getworkspace
      with:
        workspace_gid: tools.workspace_gid
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-update-workspace
      description: Asana Update a workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: workspaces-workspaces.updateworkspace
      with:
        workspace_gid: tools.workspace_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-add-user-workspace
      description: Asana Add a user to a workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: workspaces-workspaces.adduserforworkspace
      with:
        workspace_gid: tools.workspace_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-remove-user-workspace
      description: Asana Remove a user from a workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: workspaces-workspaces.removeuserforworkspace
      with:
        workspace_gid: tools.workspace_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.