Asana · Capability

Asana — Custom Fields

Asana — Custom Fields. 8 operations. Lead operation: Asana Create a custom field. Self-contained Naftiko capability covering one Asana business surface.

Run with Naftiko AsanaCustom Fields

What You Can Do

POST
Createcustomfield — Asana Create a custom field
/v1/custom-fields
GET
Getcustomfield — Asana Get a custom field
/v1/custom-fields/{custom-field-gid}
PUT
Updatecustomfield — Asana Update a custom field
/v1/custom-fields/{custom-field-gid}
DELETE
Deletecustomfield — Asana Delete a custom field
/v1/custom-fields/{custom-field-gid}
POST
Createenumoptionforcustomfield — Asana Create an enum option
/v1/custom-fields/{custom-field-gid}/enum-options
POST
Insertenumoptionforcustomfield — Asana Reorder a custom field's enum
/v1/custom-fields/{custom-field-gid}/enum-options/insert
PUT
Updateenumoption — Asana Update an enum option
/v1/enum-options/{enum-option-gid}
GET
Getcustomfieldsforworkspace — Asana Get a workspace's custom fields
/v1/workspaces/{workspace-gid}/custom-fields

MCP Tools

asana-create-custom-field

Asana Create a custom field

asana-get-custom-field

Asana Get a custom field

read-only idempotent
asana-update-custom-field

Asana Update a custom field

idempotent
asana-delete-custom-field

Asana Delete a custom field

idempotent
asana-create-enum-option

Asana Create an enum option

asana-reorder-custom-field-s-enum

Asana Reorder a custom field's enum

asana-update-enum-option

Asana Update an enum option

idempotent
asana-get-workspace-s-custom-fields

Asana Get a workspace's custom fields

read-only idempotent

Capability Spec

asana-custom-fields.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Asana — Custom Fields
  description: 'Asana — Custom Fields. 8 operations. Lead operation: Asana Create a custom field. Self-contained Naftiko capability
    covering one Asana business surface.'
  tags:
  - Asana
  - Custom Fields
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ASANA_API_KEY: ASANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: asana-custom-fields
    baseUri: https://app.asana.com/api/1.0
    description: Asana — Custom Fields business capability. Self-contained, no shared references.
    resources:
    - name: custom_fields
      path: /custom_fields
      operations:
      - name: createcustomfield
        method: POST
        description: Asana Create a custom field
        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: custom_fields-custom_field_gid
      path: /custom_fields/{custom_field_gid}
      operations:
      - name: getcustomfield
        method: GET
        description: Asana Get a custom field
        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: updatecustomfield
        method: PUT
        description: Asana Update a custom field
        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: false
      - name: deletecustomfield
        method: DELETE
        description: Asana Delete a custom field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: custom_fields-custom_field_gid-enum_options
      path: /custom_fields/{custom_field_gid}/enum_options
      operations:
      - name: createenumoptionforcustomfield
        method: POST
        description: Asana Create an enum option
        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: false
    - name: custom_fields-custom_field_gid-enum_options-insert
      path: /custom_fields/{custom_field_gid}/enum_options/insert
      operations:
      - name: insertenumoptionforcustomfield
        method: POST
        description: Asana Reorder a custom field's enum
        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: false
    - name: enum_options-enum_option_gid
      path: /enum_options/{enum_option_gid}
      operations:
      - name: updateenumoption
        method: PUT
        description: Asana Update an enum option
        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: false
    - name: workspaces-workspace_gid-custom_fields
      path: /workspaces/{workspace_gid}/custom_fields
      operations:
      - name: getcustomfieldsforworkspace
        method: GET
        description: Asana Get a workspace's custom fields
        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
    authentication:
      type: bearer
      token: '{{env.ASANA_API_KEY}}'
  exposes:
  - type: rest
    namespace: asana-custom-fields-rest
    port: 8080
    description: REST adapter for Asana — Custom Fields. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/custom-fields
      name: custom-fields
      description: REST surface for custom_fields.
      operations:
      - method: POST
        name: createcustomfield
        description: Asana Create a custom field
        call: asana-custom-fields.createcustomfield
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/custom-fields/{custom-field-gid}
      name: custom-fields-custom-field-gid
      description: REST surface for custom_fields-custom_field_gid.
      operations:
      - method: GET
        name: getcustomfield
        description: Asana Get a custom field
        call: asana-custom-fields.getcustomfield
        with:
          opt_fields: rest.opt_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecustomfield
        description: Asana Update a custom field
        call: asana-custom-fields.updatecustomfield
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomfield
        description: Asana Delete a custom field
        call: asana-custom-fields.deletecustomfield
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/custom-fields/{custom-field-gid}/enum-options
      name: custom-fields-custom-field-gid-enum-options
      description: REST surface for custom_fields-custom_field_gid-enum_options.
      operations:
      - method: POST
        name: createenumoptionforcustomfield
        description: Asana Create an enum option
        call: asana-custom-fields.createenumoptionforcustomfield
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/custom-fields/{custom-field-gid}/enum-options/insert
      name: custom-fields-custom-field-gid-enum-options-insert
      description: REST surface for custom_fields-custom_field_gid-enum_options-insert.
      operations:
      - method: POST
        name: insertenumoptionforcustomfield
        description: Asana Reorder a custom field's enum
        call: asana-custom-fields.insertenumoptionforcustomfield
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/enum-options/{enum-option-gid}
      name: enum-options-enum-option-gid
      description: REST surface for enum_options-enum_option_gid.
      operations:
      - method: PUT
        name: updateenumoption
        description: Asana Update an enum option
        call: asana-custom-fields.updateenumoption
        with:
          opt_fields: rest.opt_fields
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspace-gid}/custom-fields
      name: workspaces-workspace-gid-custom-fields
      description: REST surface for workspaces-workspace_gid-custom_fields.
      operations:
      - method: GET
        name: getcustomfieldsforworkspace
        description: Asana Get a workspace's custom fields
        call: asana-custom-fields.getcustomfieldsforworkspace
        with:
          opt_fields: rest.opt_fields
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: asana-custom-fields-mcp
    port: 9090
    transport: http
    description: MCP adapter for Asana — Custom Fields. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: asana-create-custom-field
      description: Asana Create a custom field
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asana-custom-fields.createcustomfield
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-custom-field
      description: Asana Get a custom field
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: asana-custom-fields.getcustomfield
      with:
        opt_fields: tools.opt_fields
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-update-custom-field
      description: Asana Update a custom field
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: asana-custom-fields.updatecustomfield
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-delete-custom-field
      description: Asana Delete a custom field
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: asana-custom-fields.deletecustomfield
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-create-enum-option
      description: Asana Create an enum option
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asana-custom-fields.createenumoptionforcustomfield
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-reorder-custom-field-s-enum
      description: Asana Reorder a custom field's enum
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asana-custom-fields.insertenumoptionforcustomfield
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-update-enum-option
      description: Asana Update an enum option
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: asana-custom-fields.updateenumoption
      with:
        opt_fields: tools.opt_fields
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-workspace-s-custom-fields
      description: Asana Get a workspace's custom fields
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: asana-custom-fields.getcustomfieldsforworkspace
      with:
        opt_fields: tools.opt_fields
      outputParameters:
      - type: object
        mapping: $.