WSO2 · Capability

WSO2 API Manager - Developer Portal — GraphQL Policies

WSO2 API Manager - Developer Portal — GraphQL Policies. 2 operations. Lead operation: Get the Complexity Related Details of an API. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2GraphQL Policies

What You Can Do

GET
Get — Get the Complexity Related Details of an API
/v1/apis/{apiid}/graphql-policies/complexity
GET
Get — Retrieve Types and Fields of a GraphQL Schema
/v1/apis/{apiid}/graphql-policies/complexity/types

MCP Tools

get-complexity-related-details-api

Get the Complexity Related Details of an API

read-only idempotent
retrieve-types-and-fields-graphql

Retrieve Types and Fields of a GraphQL Schema

read-only idempotent

Capability Spec

devportal-graphql-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Developer Portal — GraphQL Policies
  description: 'WSO2 API Manager - Developer Portal — GraphQL Policies. 2 operations. Lead operation: Get the Complexity Related
    Details of an API. Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - GraphQL Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: devportal-graphql-policies
    baseUri: https://apis.wso2.com/api/am/devportal/v3
    description: WSO2 API Manager - Developer Portal — GraphQL Policies business capability. Self-contained, no shared references.
    resources:
    - name: apis-apiId-graphql-policies-complexity
      path: /apis/{apiId}/graphql-policies/complexity
      operations:
      - name: get
        method: GET
        description: Get the Complexity Related Details of an API
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: apis-apiId-graphql-policies-complexity-types
      path: /apis/{apiId}/graphql-policies/complexity/types
      operations:
      - name: get
        method: GET
        description: Retrieve Types and Fields of a GraphQL Schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: devportal-graphql-policies-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Developer Portal — GraphQL Policies. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/apis/{apiid}/graphql-policies/complexity
      name: apis-apiid-graphql-policies-complexity
      description: REST surface for apis-apiId-graphql-policies-complexity.
      operations:
      - method: GET
        name: get
        description: Get the Complexity Related Details of an API
        call: devportal-graphql-policies.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/{apiid}/graphql-policies/complexity/types
      name: apis-apiid-graphql-policies-complexity-types
      description: REST surface for apis-apiId-graphql-policies-complexity-types.
      operations:
      - method: GET
        name: get
        description: Retrieve Types and Fields of a GraphQL Schema
        call: devportal-graphql-policies.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: devportal-graphql-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Developer Portal — GraphQL Policies. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: get-complexity-related-details-api
      description: Get the Complexity Related Details of an API
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-graphql-policies.get
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-types-and-fields-graphql
      description: Retrieve Types and Fields of a GraphQL Schema
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-graphql-policies.get
      outputParameters:
      - type: object
        mapping: $.