Smartcar · Capability

Smartcar Vehicles API — Security

Smartcar Vehicles API — Security. 2 operations. Lead operation: Get Lock Status. Self-contained Naftiko capability covering one Smartcar business surface.

Run with Naftiko SmartcarSecurity

What You Can Do

GET
Getlockstatus — Get Lock Status
/v1/vehicles/{id}/security
POST
Controlsecurity — Lock Or Unlock Doors
/v1/vehicles/{id}/security

MCP Tools

get-lock-status

Get Lock Status

read-only idempotent
lock-unlock-doors

Lock Or Unlock Doors

Capability Spec

vehicles-security.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Smartcar Vehicles API — Security
  description: 'Smartcar Vehicles API — Security. 2 operations. Lead operation: Get Lock Status. Self-contained Naftiko capability
    covering one Smartcar business surface.'
  tags:
  - Smartcar
  - Security
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SMARTCAR_API_KEY: SMARTCAR_API_KEY
capability:
  consumes:
  - type: http
    namespace: vehicles-security
    baseUri: https://vehicle.api.smartcar.com/v2.0
    description: Smartcar Vehicles API — Security business capability. Self-contained, no shared references.
    resources:
    - name: vehicles-id-security
      path: /vehicles/{id}/security
      operations:
      - name: getlockstatus
        method: GET
        description: Get Lock Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: controlsecurity
        method: POST
        description: Lock Or Unlock Doors
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SMARTCAR_API_KEY}}'
  exposes:
  - type: rest
    namespace: vehicles-security-rest
    port: 8080
    description: REST adapter for Smartcar Vehicles API — Security. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/vehicles/{id}/security
      name: vehicles-id-security
      description: REST surface for vehicles-id-security.
      operations:
      - method: GET
        name: getlockstatus
        description: Get Lock Status
        call: vehicles-security.getlockstatus
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: controlsecurity
        description: Lock Or Unlock Doors
        call: vehicles-security.controlsecurity
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vehicles-security-mcp
    port: 9090
    transport: http
    description: MCP adapter for Smartcar Vehicles API — Security. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-lock-status
      description: Get Lock Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vehicles-security.getlockstatus
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: lock-unlock-doors
      description: Lock Or Unlock Doors
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vehicles-security.controlsecurity
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.