Asana · Capability

Asana Goal Relationships API — Goal Relationships

Asana Goal Relationships API — Goal Relationships. 5 operations. Lead operation: Asana Get goal relationships. Self-contained Naftiko capability covering one Asana business surface.

Run with Naftiko AsanaGoal Relationships

What You Can Do

GET
Getgoalrelationships — Asana Get goal relationships
/v1/goal-relationships
GET
Getgoalrelationship — Asana Get a goal relationship
/v1/goal-relationships/{goal-relationship-gid}
PUT
Updategoalrelationship — Asana Update a goal relationship
/v1/goal-relationships/{goal-relationship-gid}
POST
Addsupportingrelationship — Asana Add a supporting goal relationship
/v1/goals/{goal-gid}/addsupportingrelationship
POST
Removesupportingrelationship — Asana Removes a supporting goal relationship
/v1/goals/{goal-gid}/removesupportingrelationship

MCP Tools

asana-get-goal-relationships

Asana Get goal relationships

read-only idempotent
asana-get-goal-relationship

Asana Get a goal relationship

read-only idempotent
asana-update-goal-relationship

Asana Update a goal relationship

idempotent
asana-add-supporting-goal-relationship

Asana Add a supporting goal relationship

asana-removes-supporting-goal-relationship

Asana Removes a supporting goal relationship

Capability Spec

goal-relationships-goal-relationships.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Asana Goal Relationships API — Goal Relationships
  description: 'Asana Goal Relationships API — Goal Relationships. 5 operations. Lead operation: Asana Get goal relationships.
    Self-contained Naftiko capability covering one Asana business surface.'
  tags:
  - Asana
  - Goal Relationships
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ASANA_API_KEY: ASANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: goal-relationships-goal-relationships
    baseUri: https://app.asana.com/api/1.0
    description: Asana Goal Relationships API — Goal Relationships business capability. Self-contained, no shared references.
    resources:
    - name: goal_relationships
      path: /goal_relationships
      operations:
      - name: getgoalrelationships
        method: GET
        description: Asana Get goal relationships
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: supported_goal
          in: query
          type: string
          required: true
        - name: resource_subtype
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: string
    - name: goal_relationships-goal_relationship_gid
      path: /goal_relationships/{goal_relationship_gid}
      operations:
      - name: getgoalrelationship
        method: GET
        description: Asana Get a goal relationship
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: goal_relationship_gid
          in: path
          type: string
          required: true
      - name: updategoalrelationship
        method: PUT
        description: Asana Update a goal relationship
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: goal_relationship_gid
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: goals-goal_gid-addSupportingRelationship
      path: /goals/{goal_gid}/addSupportingRelationship
      operations:
      - name: addsupportingrelationship
        method: POST
        description: Asana Add a supporting goal relationship
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: goal_gid
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: goals-goal_gid-removeSupportingRelationship
      path: /goals/{goal_gid}/removeSupportingRelationship
      operations:
      - name: removesupportingrelationship
        method: POST
        description: Asana Removes a supporting goal relationship
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: goal_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: goal-relationships-goal-relationships-rest
    port: 8080
    description: REST adapter for Asana Goal Relationships API — Goal Relationships. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/goal-relationships
      name: goal-relationships
      description: REST surface for goal_relationships.
      operations:
      - method: GET
        name: getgoalrelationships
        description: Asana Get goal relationships
        call: goal-relationships-goal-relationships.getgoalrelationships
        with:
          supported_goal: rest.supported_goal
          resource_subtype: rest.resource_subtype
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/goal-relationships/{goal-relationship-gid}
      name: goal-relationships-goal-relationship-gid
      description: REST surface for goal_relationships-goal_relationship_gid.
      operations:
      - method: GET
        name: getgoalrelationship
        description: Asana Get a goal relationship
        call: goal-relationships-goal-relationships.getgoalrelationship
        with:
          goal_relationship_gid: rest.goal_relationship_gid
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updategoalrelationship
        description: Asana Update a goal relationship
        call: goal-relationships-goal-relationships.updategoalrelationship
        with:
          goal_relationship_gid: rest.goal_relationship_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/goals/{goal-gid}/addsupportingrelationship
      name: goals-goal-gid-addsupportingrelationship
      description: REST surface for goals-goal_gid-addSupportingRelationship.
      operations:
      - method: POST
        name: addsupportingrelationship
        description: Asana Add a supporting goal relationship
        call: goal-relationships-goal-relationships.addsupportingrelationship
        with:
          goal_gid: rest.goal_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/goals/{goal-gid}/removesupportingrelationship
      name: goals-goal-gid-removesupportingrelationship
      description: REST surface for goals-goal_gid-removeSupportingRelationship.
      operations:
      - method: POST
        name: removesupportingrelationship
        description: Asana Removes a supporting goal relationship
        call: goal-relationships-goal-relationships.removesupportingrelationship
        with:
          goal_gid: rest.goal_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: goal-relationships-goal-relationships-mcp
    port: 9090
    transport: http
    description: MCP adapter for Asana Goal Relationships API — Goal Relationships. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: asana-get-goal-relationships
      description: Asana Get goal relationships
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: goal-relationships-goal-relationships.getgoalrelationships
      with:
        supported_goal: tools.supported_goal
        resource_subtype: tools.resource_subtype
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-goal-relationship
      description: Asana Get a goal relationship
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: goal-relationships-goal-relationships.getgoalrelationship
      with:
        goal_relationship_gid: tools.goal_relationship_gid
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-update-goal-relationship
      description: Asana Update a goal relationship
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: goal-relationships-goal-relationships.updategoalrelationship
      with:
        goal_relationship_gid: tools.goal_relationship_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-add-supporting-goal-relationship
      description: Asana Add a supporting goal relationship
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: goal-relationships-goal-relationships.addsupportingrelationship
      with:
        goal_gid: tools.goal_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-removes-supporting-goal-relationship
      description: Asana Removes a supporting goal relationship
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: goal-relationships-goal-relationships.removesupportingrelationship
      with:
        goal_gid: tools.goal_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.