naftiko: 1.0.0-alpha2 info: label: OpenStreetMap API v0.6 — Relations description: 'OpenStreetMap API v0.6 — Relations. 1 operations. Lead operation: Get relation by ID. Self-contained Naftiko capability covering one Openstreetmap business surface.' tags: - Openstreetmap - Relations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENSTREETMAP_API_KEY: OPENSTREETMAP_API_KEY capability: consumes: - type: http namespace: main-relations baseUri: https://api.openstreetmap.org/api/0.6 description: OpenStreetMap API v0.6 — Relations business capability. Self-contained, no shared references. resources: - name: relation-id path: /relation/{id} operations: - name: getrelation method: GET description: Get relation 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-relations-rest port: 8080 description: REST adapter for OpenStreetMap API v0.6 — Relations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/relation/{id} name: relation-id description: REST surface for relation-id. operations: - method: GET name: getrelation description: Get relation by ID call: main-relations.getrelation with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: main-relations-mcp port: 9090 transport: http description: MCP adapter for OpenStreetMap API v0.6 — Relations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-relation-id description: Get relation by ID hints: readOnly: true destructive: false idempotent: true call: main-relations.getrelation with: id: tools.id outputParameters: - type: object mapping: $.