ForgeRock · Capability

ForgeRock Access Management API — Scripts

ForgeRock Access Management API — Scripts. 2 operations. Lead operation: ForgeRock List scripts. Self-contained Naftiko capability covering one Forgerock business surface.

Run with Naftiko ForgerockScripts

What You Can Do

GET
Listscripts — ForgeRock List scripts
/v1/json/realms/root/realms/{realm}/scripts
GET
Getscript — ForgeRock Get a script
/v1/json/realms/root/realms/{realm}/scripts/{scriptid}

MCP Tools

forgerock-list-scripts

ForgeRock List scripts

read-only idempotent
forgerock-get-script

ForgeRock Get a script

read-only idempotent

Capability Spec

access-management-scripts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ForgeRock Access Management API — Scripts
  description: 'ForgeRock Access Management API — Scripts. 2 operations. Lead operation: ForgeRock List scripts. Self-contained
    Naftiko capability covering one Forgerock business surface.'
  tags:
  - Forgerock
  - Scripts
  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-scripts
    baseUri: https://{deployment}/am
    description: ForgeRock Access Management API — Scripts business capability. Self-contained, no shared references.
    resources:
    - name: json-realms-root-realms-realm-scripts
      path: /json/realms/root/realms/{realm}/scripts
      operations:
      - name: listscripts
        method: GET
        description: ForgeRock List scripts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _queryFilter
          in: query
          type: string
          description: CREST query filter
    - name: json-realms-root-realms-realm-scripts-scriptId
      path: /json/realms/root/realms/{realm}/scripts/{scriptId}
      operations:
      - name: getscript
        method: GET
        description: ForgeRock Get a script
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: scriptId
          in: path
          type: string
          description: The script UUID
          required: true
    authentication:
      type: bearer
      token: '{{env.FORGEROCK_API_KEY}}'
  exposes:
  - type: rest
    namespace: access-management-scripts-rest
    port: 8080
    description: REST adapter for ForgeRock Access Management API — Scripts. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/json/realms/root/realms/{realm}/scripts
      name: json-realms-root-realms-realm-scripts
      description: REST surface for json-realms-root-realms-realm-scripts.
      operations:
      - method: GET
        name: listscripts
        description: ForgeRock List scripts
        call: access-management-scripts.listscripts
        with:
          _queryFilter: rest._queryFilter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/realms/root/realms/{realm}/scripts/{scriptid}
      name: json-realms-root-realms-realm-scripts-scriptid
      description: REST surface for json-realms-root-realms-realm-scripts-scriptId.
      operations:
      - method: GET
        name: getscript
        description: ForgeRock Get a script
        call: access-management-scripts.getscript
        with:
          scriptId: rest.scriptId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: access-management-scripts-mcp
    port: 9090
    transport: http
    description: MCP adapter for ForgeRock Access Management API — Scripts. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: forgerock-list-scripts
      description: ForgeRock List scripts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: access-management-scripts.listscripts
      with:
        _queryFilter: tools._queryFilter
      outputParameters:
      - type: object
        mapping: $.
    - name: forgerock-get-script
      description: ForgeRock Get a script
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: access-management-scripts.getscript
      with:
        scriptId: tools.scriptId
      outputParameters:
      - type: object
        mapping: $.