Basetrip · Capability

Basetrip API — Safety

Basetrip API — Safety. 1 operations. Lead operation: Get Country Safety. Self-contained Naftiko capability covering one Basetrip business surface.

Run with Naftiko BasetripSafety

What You Can Do

GET
Getcountrysafety — Get Country Safety
/v1/countries/{id}/safety

MCP Tools

get-country-safety

Get Country Safety

read-only idempotent

Capability Spec

basetrip-safety.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Basetrip API — Safety
  description: 'Basetrip API — Safety. 1 operations. Lead operation: Get Country Safety. Self-contained Naftiko capability
    covering one Basetrip business surface.'
  tags:
  - Basetrip
  - Safety
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BASETRIP_API_KEY: BASETRIP_API_KEY
capability:
  consumes:
  - type: http
    namespace: basetrip-safety
    baseUri: https://api.thebasetrip.com/v3
    description: Basetrip API — Safety business capability. Self-contained, no shared references.
    resources:
    - name: countries-id-safety
      path: /countries/{id}/safety
      operations:
      - name: getcountrysafety
        method: GET
        description: Get Country Safety
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Country slug or alpha-2 code
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.BASETRIP_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: basetrip-safety-rest
    port: 8080
    description: REST adapter for Basetrip API — Safety. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/countries/{id}/safety
      name: countries-id-safety
      description: REST surface for countries-id-safety.
      operations:
      - method: GET
        name: getcountrysafety
        description: Get Country Safety
        call: basetrip-safety.getcountrysafety
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: basetrip-safety-mcp
    port: 9090
    transport: http
    description: MCP adapter for Basetrip API — Safety. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-country-safety
      description: Get Country Safety
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: basetrip-safety.getcountrysafety
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.