Asana · Capability

Asana — Allocations

Asana — Allocations. 5 operations. Lead operation: Asana Get multiple allocations. Self-contained Naftiko capability covering one Asana business surface.

Run with Naftiko AsanaAllocations

What You Can Do

GET
Getallocations — Asana Get multiple allocations
/v1/allocations
POST
Createallocation — Asana Create an allocation
/v1/allocations
GET
Getallocation — Asana Get an allocation
/v1/allocations/{allocation-gid}
PUT
Updateallocation — Asana Update an allocation
/v1/allocations/{allocation-gid}
DELETE
Deleteallocation — Asana Delete an allocation
/v1/allocations/{allocation-gid}

MCP Tools

asana-get-multiple-allocations

Asana Get multiple allocations

read-only idempotent
asana-create-allocation

Asana Create an allocation

asana-get-allocation

Asana Get an allocation

read-only idempotent
asana-update-allocation

Asana Update an allocation

idempotent
asana-delete-allocation

Asana Delete an allocation

idempotent

Capability Spec

asana-allocations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Asana — Allocations
  description: 'Asana — Allocations. 5 operations. Lead operation: Asana Get multiple allocations. Self-contained Naftiko
    capability covering one Asana business surface.'
  tags:
  - Asana
  - Allocations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ASANA_API_KEY: ASANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: asana-allocations
    baseUri: https://app.asana.com/api/1.0
    description: Asana — Allocations business capability. Self-contained, no shared references.
    resources:
    - name: allocations
      path: /allocations
      operations:
      - name: getallocations
        method: GET
        description: Asana Get multiple allocations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: parent
          in: query
          type: string
          description: Globally unique identifier for the project to filter allocations by.
        - name: assignee
          in: query
          type: string
          description: Globally unique identifier for the user the allocation is assigned to.
        - name: workspace
          in: query
          type: string
          description: Globally unique identifier for the workspace.
        - name: opt_fields
          in: query
          type: array
          description: This endpoint returns a compact resource, which excludes some properties by default. To include those
            optional properties, set this query parameter to a comma-s
      - name: createallocation
        method: POST
        description: Asana Create an allocation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: opt_fields
          in: query
          type: array
          description: This endpoint returns a compact resource, which excludes some properties by default. To include those
            optional properties, set this query parameter to a comma-s
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: allocations-allocation_gid
      path: /allocations/{allocation_gid}
      operations:
      - name: getallocation
        method: GET
        description: Asana Get an allocation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: opt_fields
          in: query
          type: array
          description: This endpoint returns a compact resource, which excludes some properties by default. To include those
            optional properties, set this query parameter to a comma-s
      - name: updateallocation
        method: PUT
        description: Asana Update an allocation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: opt_fields
          in: query
          type: array
          description: This endpoint returns a compact resource, which excludes some properties by default. To include those
            optional properties, set this query parameter to a comma-s
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteallocation
        method: DELETE
        description: Asana Delete an allocation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ASANA_API_KEY}}'
  exposes:
  - type: rest
    namespace: asana-allocations-rest
    port: 8080
    description: REST adapter for Asana — Allocations. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/allocations
      name: allocations
      description: REST surface for allocations.
      operations:
      - method: GET
        name: getallocations
        description: Asana Get multiple allocations
        call: asana-allocations.getallocations
        with:
          parent: rest.parent
          assignee: rest.assignee
          workspace: rest.workspace
          opt_fields: rest.opt_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createallocation
        description: Asana Create an allocation
        call: asana-allocations.createallocation
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/allocations/{allocation-gid}
      name: allocations-allocation-gid
      description: REST surface for allocations-allocation_gid.
      operations:
      - method: GET
        name: getallocation
        description: Asana Get an allocation
        call: asana-allocations.getallocation
        with:
          opt_fields: rest.opt_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateallocation
        description: Asana Update an allocation
        call: asana-allocations.updateallocation
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteallocation
        description: Asana Delete an allocation
        call: asana-allocations.deleteallocation
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: asana-allocations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Asana — Allocations. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: asana-get-multiple-allocations
      description: Asana Get multiple allocations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: asana-allocations.getallocations
      with:
        parent: tools.parent
        assignee: tools.assignee
        workspace: tools.workspace
        opt_fields: tools.opt_fields
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-create-allocation
      description: Asana Create an allocation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asana-allocations.createallocation
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-allocation
      description: Asana Get an allocation
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: asana-allocations.getallocation
      with:
        opt_fields: tools.opt_fields
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-update-allocation
      description: Asana Update an allocation
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: asana-allocations.updateallocation
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-delete-allocation
      description: Asana Delete an allocation
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: asana-allocations.deleteallocation
      outputParameters:
      - type: object
        mapping: $.