naftiko: 1.0.0-alpha2 info: label: Census Data API — International description: 'Census Data API — International. 2 operations. Lead operation: Get International Database. Self-contained Naftiko capability covering one United States Census Bureau business surface.' tags: - United States Census Bureau - International created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNITED_STATES_CENSUS_BUREAU_API_KEY: UNITED_STATES_CENSUS_BUREAU_API_KEY capability: consumes: - type: http namespace: census-data-international baseUri: https://api.census.gov/data description: Census Data API — International business capability. Self-contained, no shared references. resources: - name: year-idb-5year path: /{year}/idb/5year operations: - name: getinternationaldatabase method: GET description: Get International Database outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: year in: path type: integer description: Data year required: true - name: get in: query type: string description: Variable names (e.g., NAME,POP for country name and population) required: true - name: for in: query type: string description: Geographic filter (e.g., country:01 for Afghanistan) - name: key in: query type: string description: Census API key - name: year-intltrade-imp_exp path: /{year}/intltrade/imp_exp operations: - name: getinternationaltrade method: GET description: Get International Trade Data outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: year in: path type: integer description: Data year (2010-present) required: true - name: get in: query type: string description: Variable names (e.g., CTY_NAME,AIR_VAL_MO for country and airborne value) required: true - name: for in: query type: string description: Geographic filter - name: key in: query type: string description: Census API key exposes: - type: rest namespace: census-data-international-rest port: 8080 description: REST adapter for Census Data API — International. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{year}/idb/5year name: year-idb-5year description: REST surface for year-idb-5year. operations: - method: GET name: getinternationaldatabase description: Get International Database call: census-data-international.getinternationaldatabase with: year: rest.year get: rest.get for: rest.for key: rest.key outputParameters: - type: object mapping: $. - path: /v1/{year}/intltrade/imp-exp name: year-intltrade-imp-exp description: REST surface for year-intltrade-imp_exp. operations: - method: GET name: getinternationaltrade description: Get International Trade Data call: census-data-international.getinternationaltrade with: year: rest.year get: rest.get for: rest.for key: rest.key outputParameters: - type: object mapping: $. - type: mcp namespace: census-data-international-mcp port: 9090 transport: http description: MCP adapter for Census Data API — International. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-international-database description: Get International Database hints: readOnly: true destructive: false idempotent: true call: census-data-international.getinternationaldatabase with: year: tools.year get: tools.get for: tools.for key: tools.key outputParameters: - type: object mapping: $. - name: get-international-trade-data description: Get International Trade Data hints: readOnly: true destructive: false idempotent: true call: census-data-international.getinternationaltrade with: year: tools.year get: tools.get for: tools.for key: tools.key outputParameters: - type: object mapping: $.