Radar · Capability

Radar API — Geofences

Radar API — Geofences. 5 operations. Lead operation: List geofences. Self-contained Naftiko capability covering one Radar business surface.

Run with Naftiko RadarGeofences

What You Can Do

GET
Get — List geofences
/v1/geofences
POST
Post — Create a geofence
/v1/geofences
GET
Get — Retrieve a geofence
/v1/geofences/{geofenceid}
PUT
Put — Update a geofence
/v1/geofences/{geofenceid}
DELETE
Delete — Delete a geofence
/v1/geofences/{geofenceid}

MCP Tools

list-geofences

List geofences

read-only idempotent
create-geofence

Create a geofence

retrieve-geofence

Retrieve a geofence

read-only idempotent
update-geofence

Update a geofence

idempotent
delete-geofence

Delete a geofence

idempotent

Capability Spec

radar-geofences.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Radar API — Geofences
  description: 'Radar API — Geofences. 5 operations. Lead operation: List geofences. Self-contained Naftiko capability covering
    one Radar business surface.'
  tags:
  - Radar
  - Geofences
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RADAR_API_KEY: RADAR_API_KEY
capability:
  consumes:
  - type: http
    namespace: radar-geofences
    baseUri: https://api.radar.io/v1
    description: Radar API — Geofences business capability. Self-contained, no shared references.
    resources:
    - name: geofences
      path: /geofences
      operations:
      - name: get
        method: GET
        description: List geofences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create a geofence
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: geofences-geofenceId
      path: /geofences/{geofenceId}
      operations:
      - name: get
        method: GET
        description: Retrieve a geofence
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: geofenceId
          in: path
          type: string
          required: true
      - name: put
        method: PUT
        description: Update a geofence
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: geofenceId
          in: path
          type: string
          required: true
      - name: delete
        method: DELETE
        description: Delete a geofence
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: geofenceId
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.RADAR_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: radar-geofences-rest
    port: 8080
    description: REST adapter for Radar API — Geofences. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/geofences
      name: geofences
      description: REST surface for geofences.
      operations:
      - method: GET
        name: get
        description: List geofences
        call: radar-geofences.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a geofence
        call: radar-geofences.post
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/geofences/{geofenceid}
      name: geofences-geofenceid
      description: REST surface for geofences-geofenceId.
      operations:
      - method: GET
        name: get
        description: Retrieve a geofence
        call: radar-geofences.get
        with:
          geofenceId: rest.geofenceId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a geofence
        call: radar-geofences.put
        with:
          geofenceId: rest.geofenceId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a geofence
        call: radar-geofences.delete
        with:
          geofenceId: rest.geofenceId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: radar-geofences-mcp
    port: 9090
    transport: http
    description: MCP adapter for Radar API — Geofences. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-geofences
      description: List geofences
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: radar-geofences.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-geofence
      description: Create a geofence
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: radar-geofences.post
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-geofence
      description: Retrieve a geofence
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: radar-geofences.get
      with:
        geofenceId: tools.geofenceId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-geofence
      description: Update a geofence
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: radar-geofences.put
      with:
        geofenceId: tools.geofenceId
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-geofence
      description: Delete a geofence
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: radar-geofences.delete
      with:
        geofenceId: tools.geofenceId
      outputParameters:
      - type: object
        mapping: $.