Vehicle API · Capability

Vehicle API (Edmunds) — Styles

Vehicle API (Edmunds) — Styles. 2 operations. Lead operation: Vehicle API List Model Years. Self-contained Naftiko capability covering one Vehicle Api business surface.

Run with Naftiko Vehicle ApiStyles

What You Can Do

GET
Listmodelyears — Vehicle API List Model Years
/v1/vehicle/v2/makes/{makenicename}/models/{modelnicename}/years
GET
Getstyle — Vehicle API Get Style
/v1/vehicle/v2/styles/{styleid}

MCP Tools

vehicle-api-list-model-years

Vehicle API List Model Years

read-only idempotent
vehicle-api-get-style

Vehicle API Get Style

read-only idempotent

Capability Spec

vehicle-styles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Vehicle API (Edmunds) — Styles
  description: 'Vehicle API (Edmunds) — Styles. 2 operations. Lead operation: Vehicle API List Model Years. Self-contained
    Naftiko capability covering one Vehicle Api business surface.'
  tags:
  - Vehicle Api
  - Styles
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VEHICLE_API_API_KEY: VEHICLE_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: vehicle-styles
    baseUri: https://api.edmunds.com/api
    description: Vehicle API (Edmunds) — Styles business capability. Self-contained, no shared references.
    resources:
    - name: vehicle-v2-makes-makeNiceName-models-modelNiceName-years
      path: /vehicle/v2/makes/{makeNiceName}/models/{modelNiceName}/years
      operations:
      - name: listmodelyears
        method: GET
        description: Vehicle API List Model Years
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: makeNiceName
          in: path
          type: string
          description: URL-friendly make name
          required: true
        - name: modelNiceName
          in: path
          type: string
          description: URL-friendly model name
          required: true
        - name: api_key
          in: query
          type: string
          description: Edmunds API key
          required: true
    - name: vehicle-v2-styles-styleId
      path: /vehicle/v2/styles/{styleId}
      operations:
      - name: getstyle
        method: GET
        description: Vehicle API Get Style
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: styleId
          in: path
          type: integer
          description: Edmunds style ID
          required: true
        - name: view
          in: query
          type: string
          description: 'Response detail level: basic or full'
        - name: api_key
          in: query
          type: string
          description: Edmunds API key
          required: true
    authentication:
      type: apikey
      key: api_key
      value: '{{env.VEHICLE_API_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: vehicle-styles-rest
    port: 8080
    description: REST adapter for Vehicle API (Edmunds) — Styles. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/vehicle/v2/makes/{makenicename}/models/{modelnicename}/years
      name: vehicle-v2-makes-makenicename-models-modelnicename-years
      description: REST surface for vehicle-v2-makes-makeNiceName-models-modelNiceName-years.
      operations:
      - method: GET
        name: listmodelyears
        description: Vehicle API List Model Years
        call: vehicle-styles.listmodelyears
        with:
          makeNiceName: rest.makeNiceName
          modelNiceName: rest.modelNiceName
          api_key: rest.api_key
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/vehicle/v2/styles/{styleid}
      name: vehicle-v2-styles-styleid
      description: REST surface for vehicle-v2-styles-styleId.
      operations:
      - method: GET
        name: getstyle
        description: Vehicle API Get Style
        call: vehicle-styles.getstyle
        with:
          styleId: rest.styleId
          view: rest.view
          api_key: rest.api_key
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vehicle-styles-mcp
    port: 9090
    transport: http
    description: MCP adapter for Vehicle API (Edmunds) — Styles. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: vehicle-api-list-model-years
      description: Vehicle API List Model Years
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vehicle-styles.listmodelyears
      with:
        makeNiceName: tools.makeNiceName
        modelNiceName: tools.modelNiceName
        api_key: tools.api_key
      outputParameters:
      - type: object
        mapping: $.
    - name: vehicle-api-get-style
      description: Vehicle API Get Style
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vehicle-styles.getstyle
      with:
        styleId: tools.styleId
        view: tools.view
        api_key: tools.api_key
      outputParameters:
      - type: object
        mapping: $.