naftiko: 1.0.0-alpha2 info: label: Lean Data API — Identity description: 'Lean Data — retrieve the account-holder identity record for a linked entity or for a specific account.' tags: - Lean - Data - Identity created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: LEAN_API_TOKEN: LEAN_API_TOKEN capability: consumes: - type: http namespace: data-identity baseUri: https://api2.leantech.me description: Lean Data API — Identity business capability backed by Lean Technologies APIs. resources: - name: identity path: /data/v2/identity operations: - name: getIdentity method: GET description: Lean Get Identity outputRawFormat: json inputParameters: [] outputParameters: - name: result type: object value: $. - name: account-identities path: /data/v2/accounts/{account_id}/identities operations: - name: getAccountIdentities method: GET description: Lean Get Account Identities outputRawFormat: json inputParameters: - name: account_id in: path type: string required: true outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: 'Bearer {{env.LEAN_API_TOKEN}}' placement: header exposes: - type: rest namespace: data-identity-rest port: 8080 description: REST adapter for Lean Data API — Identity. resources: - path: /v1/data/v2/identity name: identity operations: - method: GET name: getIdentity description: Lean Get Identity call: data-identity.getIdentity with: {} - path: /v1/data/v2/accounts/{account_id}/identities name: account-identities operations: - method: GET name: getAccountIdentities description: Lean Get Account Identities call: data-identity.getAccountIdentities with: account_id: rest.path.account_id - type: mcp namespace: data-identity-mcp port: 9090 transport: http description: MCP adapter for Lean Data API — Identity. tools: - name: lean-getidentity description: Lean Get Identity hints: readOnly: true destructive: false idempotent: true call: data-identity.getIdentity with: {} - name: lean-getaccountidentities description: Lean Get Account Identities hints: readOnly: true destructive: false idempotent: true call: data-identity.getAccountIdentities with: account_id: tools.account_id