Taxi Language API — Types

Taxi Language API — Types. 2 operations. Lead operation: List Types. Self-contained Naftiko capability covering one Taxi business surface.

Run with Naftiko TaxiTypes

What You Can Do

GET
Listtypes — List Types
/v1/types
GET
Gettype — Get Type
/v1/types/{qualified-name}

MCP Tools

list-types

List Types

read-only idempotent
get-type

Get Type

read-only idempotent

Capability Spec

language-types.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Taxi Language API — Types
  description: 'Taxi Language API — Types. 2 operations. Lead operation: List Types. Self-contained Naftiko capability covering
    one Taxi business surface.'
  tags:
  - Taxi
  - Types
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TAXI_API_KEY: TAXI_API_KEY
capability:
  consumes:
  - type: http
    namespace: language-types
    baseUri: https://api.taxilang.org
    description: Taxi Language API — Types business capability. Self-contained, no shared references.
    resources:
    - name: types
      path: /types
      operations:
      - name: listtypes
        method: GET
        description: List Types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: namespace
          in: query
          type: string
          description: Filter by namespace
        - name: search
          in: query
          type: string
          description: Search by type name
    - name: types-qualified_name
      path: /types/{qualified_name}
      operations:
      - name: gettype
        method: GET
        description: Get Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: qualified_name
          in: path
          type: string
          description: Fully qualified type name (e.g., com.example.MovieTitle)
          required: true
  exposes:
  - type: rest
    namespace: language-types-rest
    port: 8080
    description: REST adapter for Taxi Language API — Types. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/types
      name: types
      description: REST surface for types.
      operations:
      - method: GET
        name: listtypes
        description: List Types
        call: language-types.listtypes
        with:
          namespace: rest.namespace
          search: rest.search
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/types/{qualified-name}
      name: types-qualified-name
      description: REST surface for types-qualified_name.
      operations:
      - method: GET
        name: gettype
        description: Get Type
        call: language-types.gettype
        with:
          qualified_name: rest.qualified_name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: language-types-mcp
    port: 9090
    transport: http
    description: MCP adapter for Taxi Language API — Types. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-types
      description: List Types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: language-types.listtypes
      with:
        namespace: tools.namespace
        search: tools.search
      outputParameters:
      - type: object
        mapping: $.
    - name: get-type
      description: Get Type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: language-types.gettype
      with:
        qualified_name: tools.qualified_name
      outputParameters:
      - type: object
        mapping: $.