Basetrip · Capability

Basetrip API — Cost

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

Run with Naftiko BasetripCost

What You Can Do

GET
Getcountrycost — Get Country Cost
/v1/countries/{id}/cost

MCP Tools

get-country-cost

Get Country Cost

read-only idempotent

Capability Spec

basetrip-cost.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Basetrip API — Cost
  description: 'Basetrip API — Cost. 1 operations. Lead operation: Get Country Cost. Self-contained Naftiko capability covering
    one Basetrip business surface.'
  tags:
  - Basetrip
  - Cost
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BASETRIP_API_KEY: BASETRIP_API_KEY
capability:
  consumes:
  - type: http
    namespace: basetrip-cost
    baseUri: https://api.thebasetrip.com/v3
    description: Basetrip API — Cost business capability. Self-contained, no shared references.
    resources:
    - name: countries-id-cost
      path: /countries/{id}/cost
      operations:
      - name: getcountrycost
        method: GET
        description: Get Country Cost
        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-cost-rest
    port: 8080
    description: REST adapter for Basetrip API — Cost. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/countries/{id}/cost
      name: countries-id-cost
      description: REST surface for countries-id-cost.
      operations:
      - method: GET
        name: getcountrycost
        description: Get Country Cost
        call: basetrip-cost.getcountrycost
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: basetrip-cost-mcp
    port: 9090
    transport: http
    description: MCP adapter for Basetrip API — Cost. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-country-cost
      description: Get Country Cost
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: basetrip-cost.getcountrycost
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.