naftiko: 1.0.0-alpha2 info: label: Modern Treasury — Validation description: 'Modern Treasury — Validation. 1 operations. Lead operation: validate routing numbers. Self-contained Naftiko capability covering one Modern Treasury business surface.' tags: - Modern Treasury - Validation created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY capability: consumes: - type: http namespace: modern-treasury-validation baseUri: http://localhost:3000 description: Modern Treasury — Validation business capability. Self-contained, no shared references. resources: - name: api-validations-routing_numbers path: /api/validations/routing_numbers operations: - name: validateroutingnumber method: GET description: validate routing numbers outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: routing_number in: query type: string description: The routing number that is being validated. required: true - name: routing_number_type in: query type: string description: The type of routing number. See https://docs.moderntreasury.com/platform/reference/routing-detail-object for more details. In sandbox mode we currently only sup required: true authentication: type: basic username: '{{env.MODERN_TREASURY_USER}}' password: '{{env.MODERN_TREASURY_PASS}}' exposes: - type: rest namespace: modern-treasury-validation-rest port: 8080 description: REST adapter for Modern Treasury — Validation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/validations/routing-numbers name: api-validations-routing-numbers description: REST surface for api-validations-routing_numbers. operations: - method: GET name: validateroutingnumber description: validate routing numbers call: modern-treasury-validation.validateroutingnumber with: routing_number: rest.routing_number routing_number_type: rest.routing_number_type outputParameters: - type: object mapping: $. - type: mcp namespace: modern-treasury-validation-mcp port: 9090 transport: http description: MCP adapter for Modern Treasury — Validation. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: validate-routing-numbers description: validate routing numbers hints: readOnly: true destructive: false idempotent: true call: modern-treasury-validation.validateroutingnumber with: routing_number: tools.routing_number routing_number_type: tools.routing_number_type outputParameters: - type: object mapping: $.