naftiko: 1.0.0-alpha2 info: label: ForgeRock Access Management API — Policies description: 'ForgeRock Access Management API — Policies. 5 operations. Lead operation: ForgeRock List authorization policies. Self-contained Naftiko capability covering one Forgerock business surface.' tags: - Forgerock - Policies created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FORGEROCK_API_KEY: FORGEROCK_API_KEY capability: consumes: - type: http namespace: access-management-policies baseUri: https://{deployment}/am description: ForgeRock Access Management API — Policies business capability. Self-contained, no shared references. resources: - name: json-realms-root-realms-realm-policies path: /json/realms/root/realms/{realm}/policies operations: - name: listpolicies method: GET description: ForgeRock List authorization policies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: _queryFilter in: query type: string description: CREST query filter expression - name: createpolicyorevaluate method: POST description: ForgeRock Create a policy or evaluate policies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: _action in: query type: string description: Action to perform (evaluate or evaluateTree) - name: body in: body type: object description: Request body (JSON). required: true - name: json-realms-root-realms-realm-policies-policyName path: /json/realms/root/realms/{realm}/policies/{policyName} operations: - name: getpolicy method: GET description: ForgeRock Get a policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: policyName in: path type: string description: The policy name required: true - name: updatepolicy method: PUT description: ForgeRock Update a policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: policyName in: path type: string description: The policy name required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletepolicy method: DELETE description: ForgeRock Delete a policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: policyName in: path type: string description: The policy name required: true authentication: type: bearer token: '{{env.FORGEROCK_API_KEY}}' exposes: - type: rest namespace: access-management-policies-rest port: 8080 description: REST adapter for ForgeRock Access Management API — Policies. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/json/realms/root/realms/{realm}/policies name: json-realms-root-realms-realm-policies description: REST surface for json-realms-root-realms-realm-policies. operations: - method: GET name: listpolicies description: ForgeRock List authorization policies call: access-management-policies.listpolicies with: _queryFilter: rest._queryFilter outputParameters: - type: object mapping: $. - method: POST name: createpolicyorevaluate description: ForgeRock Create a policy or evaluate policies call: access-management-policies.createpolicyorevaluate with: _action: rest._action body: rest.body outputParameters: - type: object mapping: $. - path: /v1/json/realms/root/realms/{realm}/policies/{policyname} name: json-realms-root-realms-realm-policies-policyname description: REST surface for json-realms-root-realms-realm-policies-policyName. operations: - method: GET name: getpolicy description: ForgeRock Get a policy call: access-management-policies.getpolicy with: policyName: rest.policyName outputParameters: - type: object mapping: $. - method: PUT name: updatepolicy description: ForgeRock Update a policy call: access-management-policies.updatepolicy with: policyName: rest.policyName body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletepolicy description: ForgeRock Delete a policy call: access-management-policies.deletepolicy with: policyName: rest.policyName outputParameters: - type: object mapping: $. - type: mcp namespace: access-management-policies-mcp port: 9090 transport: http description: MCP adapter for ForgeRock Access Management API — Policies. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: forgerock-list-authorization-policies description: ForgeRock List authorization policies hints: readOnly: true destructive: false idempotent: true call: access-management-policies.listpolicies with: _queryFilter: tools._queryFilter outputParameters: - type: object mapping: $. - name: forgerock-create-policy-evaluate-policies description: ForgeRock Create a policy or evaluate policies hints: readOnly: false destructive: false idempotent: false call: access-management-policies.createpolicyorevaluate with: _action: tools._action body: tools.body outputParameters: - type: object mapping: $. - name: forgerock-get-policy description: ForgeRock Get a policy hints: readOnly: true destructive: false idempotent: true call: access-management-policies.getpolicy with: policyName: tools.policyName outputParameters: - type: object mapping: $. - name: forgerock-update-policy description: ForgeRock Update a policy hints: readOnly: false destructive: false idempotent: true call: access-management-policies.updatepolicy with: policyName: tools.policyName body: tools.body outputParameters: - type: object mapping: $. - name: forgerock-delete-policy description: ForgeRock Delete a policy hints: readOnly: false destructive: true idempotent: true call: access-management-policies.deletepolicy with: policyName: tools.policyName outputParameters: - type: object mapping: $.