Torii · Capability

Torii API — Apps

Torii API — Apps. 1 operations. Lead operation: Torii List apps. Self-contained Naftiko capability covering one Torii business surface.

Run with Naftiko ToriiApps

What You Can Do

GET
Getapps — Torii List apps
/v1/apps

MCP Tools

torii-list-apps

Torii List apps

read-only idempotent

Capability Spec

torii-apps.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Torii API — Apps
  description: 'Torii API — Apps. 1 operations. Lead operation: Torii List apps. Self-contained Naftiko capability covering
    one Torii business surface.'
  tags:
  - Torii
  - Apps
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TORII_API_KEY: TORII_API_KEY
capability:
  consumes:
  - type: http
    namespace: torii-apps
    baseUri: https://api.toriihq.com/v1.0
    description: Torii API — Apps business capability. Self-contained, no shared references.
    resources:
    - name: apps
      path: /apps
      operations:
      - name: getapps
        method: GET
        description: Torii List apps
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response (e.g. id,name,category).
        - name: state
          in: query
          type: string
          description: Filter apps by state (e.g. discovered, managed, closed).
        - name: sort
          in: query
          type: string
          description: Field to sort results by.
        - name: size
          in: query
          type: integer
          description: Number of results per page.
        - name: cursor
          in: query
          type: string
          description: Cursor for pagination to retrieve the next page of results.
    authentication:
      type: bearer
      token: '{{env.TORII_API_KEY}}'
  exposes:
  - type: rest
    namespace: torii-apps-rest
    port: 8080
    description: REST adapter for Torii API — Apps. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/apps
      name: apps
      description: REST surface for apps.
      operations:
      - method: GET
        name: getapps
        description: Torii List apps
        call: torii-apps.getapps
        with:
          fields: rest.fields
          state: rest.state
          sort: rest.sort
          size: rest.size
          cursor: rest.cursor
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: torii-apps-mcp
    port: 9090
    transport: http
    description: MCP adapter for Torii API — Apps. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: torii-list-apps
      description: Torii List apps
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: torii-apps.getapps
      with:
        fields: tools.fields
        state: tools.state
        sort: tools.sort
        size: tools.size
        cursor: tools.cursor
      outputParameters:
      - type: object
        mapping: $.