Basetrip · Capability

Basetrip API — Phrases

Basetrip API — Phrases. 1 operations. Lead operation: List Phrases By Country. Self-contained Naftiko capability covering one Basetrip business surface.

Run with Naftiko BasetripPhrases

What You Can Do

GET
Listphrasesbycountry — List Phrases By Country
/v1/countries/{id}/phrases

MCP Tools

list-phrases-country

List Phrases By Country

read-only idempotent

Capability Spec

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