Asana · Capability

Asana Time Periods API — Time Periods

Asana Time Periods API — Time Periods. 2 operations. Lead operation: Asana Get time periods. Self-contained Naftiko capability covering one Asana business surface.

Run with Naftiko AsanaTime Periods

What You Can Do

GET
Gettimeperiods — Asana Get time periods
/v1/time-periods
GET
Gettimeperiod — Asana Get a time period
/v1/time-periods/{time-period-gid}

MCP Tools

asana-get-time-periods

Asana Get time periods

read-only idempotent
asana-get-time-period

Asana Get a time period

read-only idempotent

Capability Spec

time-periods-time-periods.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Asana Time Periods API — Time Periods
  description: 'Asana Time Periods API — Time Periods. 2 operations. Lead operation: Asana Get time periods. Self-contained
    Naftiko capability covering one Asana business surface.'
  tags:
  - Asana
  - Time Periods
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ASANA_API_KEY: ASANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: time-periods-time-periods
    baseUri: https://app.asana.com/api/1.0
    description: Asana Time Periods API — Time Periods business capability. Self-contained, no shared references.
    resources:
    - name: time_periods
      path: /time_periods
      operations:
      - name: gettimeperiods
        method: GET
        description: Asana Get time periods
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: query
          type: string
          required: true
        - name: start_on
          in: query
          type: string
        - name: end_on
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: string
    - name: time_periods-time_period_gid
      path: /time_periods/{time_period_gid}
      operations:
      - name: gettimeperiod
        method: GET
        description: Asana Get a time period
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: time_period_gid
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.ASANA_API_KEY}}'
  exposes:
  - type: rest
    namespace: time-periods-time-periods-rest
    port: 8080
    description: REST adapter for Asana Time Periods API — Time Periods. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/time-periods
      name: time-periods
      description: REST surface for time_periods.
      operations:
      - method: GET
        name: gettimeperiods
        description: Asana Get time periods
        call: time-periods-time-periods.gettimeperiods
        with:
          workspace: rest.workspace
          start_on: rest.start_on
          end_on: rest.end_on
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/time-periods/{time-period-gid}
      name: time-periods-time-period-gid
      description: REST surface for time_periods-time_period_gid.
      operations:
      - method: GET
        name: gettimeperiod
        description: Asana Get a time period
        call: time-periods-time-periods.gettimeperiod
        with:
          time_period_gid: rest.time_period_gid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: time-periods-time-periods-mcp
    port: 9090
    transport: http
    description: MCP adapter for Asana Time Periods API — Time Periods. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: asana-get-time-periods
      description: Asana Get time periods
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: time-periods-time-periods.gettimeperiods
      with:
        workspace: tools.workspace
        start_on: tools.start_on
        end_on: tools.end_on
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-time-period
      description: Asana Get a time period
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: time-periods-time-periods.gettimeperiod
      with:
        time_period_gid: tools.time_period_gid
      outputParameters:
      - type: object
        mapping: $.