Microsoft · Capability

Microsoft Entra ID API — OAuth2 Permissions

Microsoft Entra ID API — OAuth2 Permissions. 2 operations. Lead operation: Microsoft List OAuth2 permission grants. Self-contained Naftiko capability covering one Microsoft business surface.

Run with Naftiko MicrosoftOAuth2 Permissions

What You Can Do

GET
Listoauth2permissiongrants — Microsoft List OAuth2 permission grants
/v1/oauth2permissiongrants
POST
Createoauth2permissiongrant — Microsoft Create a delegated permission grant
/v1/oauth2permissiongrants

MCP Tools

microsoft-list-oauth2-permission-grants

Microsoft List OAuth2 permission grants

read-only idempotent
microsoft-create-delegated-permission-grant

Microsoft Create a delegated permission grant

Capability Spec

entra-id-oauth2-permissions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Entra ID API — OAuth2 Permissions
  description: 'Microsoft Entra ID API — OAuth2 Permissions. 2 operations. Lead operation: Microsoft List OAuth2 permission
    grants. Self-contained Naftiko capability covering one Microsoft business surface.'
  tags:
  - Microsoft
  - OAuth2 Permissions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_API_KEY: MICROSOFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: entra-id-oauth2-permissions
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Entra ID API — OAuth2 Permissions business capability. Self-contained, no shared references.
    resources:
    - name: oauth2PermissionGrants
      path: /oauth2PermissionGrants
      operations:
      - name: listoauth2permissiongrants
        method: GET
        description: Microsoft List OAuth2 permission grants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createoauth2permissiongrant
        method: POST
        description: Microsoft Create a delegated permission grant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: entra-id-oauth2-permissions-rest
    port: 8080
    description: REST adapter for Microsoft Entra ID API — OAuth2 Permissions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/oauth2permissiongrants
      name: oauth2permissiongrants
      description: REST surface for oauth2PermissionGrants.
      operations:
      - method: GET
        name: listoauth2permissiongrants
        description: Microsoft List OAuth2 permission grants
        call: entra-id-oauth2-permissions.listoauth2permissiongrants
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createoauth2permissiongrant
        description: Microsoft Create a delegated permission grant
        call: entra-id-oauth2-permissions.createoauth2permissiongrant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: entra-id-oauth2-permissions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Entra ID API — OAuth2 Permissions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: microsoft-list-oauth2-permission-grants
      description: Microsoft List OAuth2 permission grants
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: entra-id-oauth2-permissions.listoauth2permissiongrants
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-create-delegated-permission-grant
      description: Microsoft Create a delegated permission grant
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: entra-id-oauth2-permissions.createoauth2permissiongrant
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.