Tray.io · Capability

Tray.io Platform API — Workspaces

Tray.io Platform API — Workspaces. 2 operations. Lead operation: List Workspaces. Self-contained Naftiko capability covering one Tray Io business surface.

Run with Naftiko Tray IoWorkspaces

What You Can Do

GET
Listworkspaces — List Workspaces
/v1/workspaces
GET
Getworkspace — Get Workspace
/v1/workspaces/{workspaceid}

MCP Tools

list-workspaces

List Workspaces

read-only idempotent
get-workspace

Get Workspace

read-only idempotent

Capability Spec

platform-workspaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tray.io Platform API — Workspaces
  description: 'Tray.io Platform API — Workspaces. 2 operations. Lead operation: List Workspaces. Self-contained Naftiko capability
    covering one Tray Io business surface.'
  tags:
  - Tray Io
  - Workspaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRAY_IO_API_KEY: TRAY_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-workspaces
    baseUri: https://api.tray.io/core/v1
    description: Tray.io Platform API — Workspaces business capability. Self-contained, no shared references.
    resources:
    - name: workspaces
      path: /workspaces
      operations:
      - name: listworkspaces
        method: GET
        description: List Workspaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: workspaces-workspaceId
      path: /workspaces/{workspaceId}
      operations:
      - name: getworkspace
        method: GET
        description: Get Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspaceId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.TRAY_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-workspaces-rest
    port: 8080
    description: REST adapter for Tray.io Platform 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: listworkspaces
        description: List Workspaces
        call: platform-workspaces.listworkspaces
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workspaces/{workspaceid}
      name: workspaces-workspaceid
      description: REST surface for workspaces-workspaceId.
      operations:
      - method: GET
        name: getworkspace
        description: Get Workspace
        call: platform-workspaces.getworkspace
        with:
          workspaceId: rest.workspaceId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-workspaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tray.io Platform API — Workspaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-workspaces
      description: List Workspaces
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-workspaces.listworkspaces
      outputParameters:
      - type: object
        mapping: $.
    - name: get-workspace
      description: Get Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-workspaces.getworkspace
      with:
        workspaceId: tools.workspaceId
      outputParameters:
      - type: object
        mapping: $.