naftiko: 1.0.0-alpha2 info: label: Library of Congress loc.gov JSON API — Collections description: 'Library of Congress loc.gov JSON API — Collections. 2 operations. Lead operation: List Collections. Self-contained Naftiko capability covering one Library Of Congress business surface.' tags: - Library Of Congress - Collections created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LIBRARY_OF_CONGRESS_API_KEY: LIBRARY_OF_CONGRESS_API_KEY capability: consumes: - type: http namespace: loc-gov-json-collections baseUri: https://www.loc.gov description: Library of Congress loc.gov JSON API — Collections business capability. Self-contained, no shared references. resources: - name: collections path: /collections/ operations: - name: listcollections method: GET description: List Collections outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fo in: query type: string - name: collections-name path: /collections/{name}/ operations: - name: getcollection method: GET description: Get Collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: Collection slug. required: true - name: fo in: query type: string exposes: - type: rest namespace: loc-gov-json-collections-rest port: 8080 description: REST adapter for Library of Congress loc.gov JSON API — Collections. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/collections name: collections description: REST surface for collections. operations: - method: GET name: listcollections description: List Collections call: loc-gov-json-collections.listcollections with: fo: rest.fo outputParameters: - type: object mapping: $. - path: /v1/collections/{name} name: collections-name description: REST surface for collections-name. operations: - method: GET name: getcollection description: Get Collection call: loc-gov-json-collections.getcollection with: name: rest.name fo: rest.fo outputParameters: - type: object mapping: $. - type: mcp namespace: loc-gov-json-collections-mcp port: 9090 transport: http description: MCP adapter for Library of Congress loc.gov JSON API — Collections. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-collections description: List Collections hints: readOnly: true destructive: false idempotent: true call: loc-gov-json-collections.listcollections with: fo: tools.fo outputParameters: - type: object mapping: $. - name: get-collection description: Get Collection hints: readOnly: true destructive: false idempotent: true call: loc-gov-json-collections.getcollection with: name: tools.name fo: tools.fo outputParameters: - type: object mapping: $.