naftiko: 1.0.0-alpha2 info: label: OpenStreetMap API v0.6 — Ways description: 'OpenStreetMap API v0.6 — Ways. 1 operations. Lead operation: Get way by ID. Self-contained Naftiko capability covering one Openstreetmap business surface.' tags: - Openstreetmap - Ways created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENSTREETMAP_API_KEY: OPENSTREETMAP_API_KEY capability: consumes: - type: http namespace: main-ways baseUri: https://api.openstreetmap.org/api/0.6 description: OpenStreetMap API v0.6 — Ways business capability. Self-contained, no shared references. resources: - name: way-id path: /way/{id} operations: - name: getway method: GET description: Get way by ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer required: true authentication: type: bearer token: '{{env.OPENSTREETMAP_API_KEY}}' exposes: - type: rest namespace: main-ways-rest port: 8080 description: REST adapter for OpenStreetMap API v0.6 — Ways. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/way/{id} name: way-id description: REST surface for way-id. operations: - method: GET name: getway description: Get way by ID call: main-ways.getway with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: main-ways-mcp port: 9090 transport: http description: MCP adapter for OpenStreetMap API v0.6 — Ways. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-way-id description: Get way by ID hints: readOnly: true destructive: false idempotent: true call: main-ways.getway with: id: tools.id outputParameters: - type: object mapping: $.