Microsoft Graph · Capability

Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant

Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant. 3 operations. Lead operation: Microsoft Graph List oauth2PermissionGrants granted to a service principal. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft GraphservicePrincipals.oAuth2PermissionGrant

What You Can Do

GET
Serviceprincipalslistoauth2permissiongrants — Microsoft Graph List oauth2PermissionGrants granted to a service principal
/v1/serviceprincipals/{serviceprincipal-id}/oauth2permissiongrants
GET
Serviceprincipalsoauth2permissiongrantsgetcountf9dc — Microsoft Graph Get the number of the resource
/v1/serviceprincipals/{serviceprincipal-id}/oauth2permissiongrants/count
GET
Serviceprincipalsgetoauth2permissiongrants — Microsoft Graph Get oauth2PermissionGrants from servicePrincipals
/v1/serviceprincipals/{serviceprincipal-id}/oauth2permissiongrants/{oauth2permissiongrant-id}

MCP Tools

microsoft-graph-list-oauth2permissiongrants-granted

Microsoft Graph List oauth2PermissionGrants granted to a service principal

read-only idempotent
microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-oauth2permissiongrants-serviceprincipals

Microsoft Graph Get oauth2PermissionGrants from servicePrincipals

read-only idempotent

Capability Spec

microsoft-graph-serviceprincipals-oauth2permissiongrant.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant. 3 operations.
    Lead operation: Microsoft Graph List oauth2PermissionGrants granted to a service principal. Self-contained Naftiko capability
    covering one Microsoft Graph business surface.'
  tags:
  - Microsoft Graph
  - servicePrincipals.oAuth2PermissionGrant
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_GRAPH_API_KEY: MICROSOFT_GRAPH_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-graph-serviceprincipals-oauth2permissiongrant
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant business
      capability. Self-contained, no shared references.
    resources:
    - name: servicePrincipals-servicePrincipal-id-oauth2PermissionGrants
      path: /servicePrincipals/{servicePrincipal-id}/oauth2PermissionGrants
      operations:
      - name: serviceprincipalslistoauth2permissiongrants
        method: GET
        description: Microsoft Graph List oauth2PermissionGrants granted to a service principal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $orderby
          in: query
          type: array
          description: Order items by property values
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
    - name: servicePrincipals-servicePrincipal-id-oauth2PermissionGrants-$count
      path: /servicePrincipals/{servicePrincipal-id}/oauth2PermissionGrants/$count
      operations:
      - name: serviceprincipalsoauth2permissiongrantsgetcountf9dc
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: servicePrincipals-servicePrincipal-id-oauth2PermissionGrants-oAuth2PermissionGra
      path: /servicePrincipals/{servicePrincipal-id}/oauth2PermissionGrants/{oAuth2PermissionGrant-id}
      operations:
      - name: serviceprincipalsgetoauth2permissiongrants
        method: GET
        description: Microsoft Graph Get oauth2PermissionGrants from servicePrincipals
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
  exposes:
  - type: rest
    namespace: microsoft-graph-serviceprincipals-oauth2permissiongrant-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/serviceprincipals/{serviceprincipal-id}/oauth2permissiongrants
      name: serviceprincipals-serviceprincipal-id-oauth2permissiongrants
      description: REST surface for servicePrincipals-servicePrincipal-id-oauth2PermissionGrants.
      operations:
      - method: GET
        name: serviceprincipalslistoauth2permissiongrants
        description: Microsoft Graph List oauth2PermissionGrants granted to a service principal
        call: microsoft-graph-serviceprincipals-oauth2permissiongrant.serviceprincipalslistoauth2permissiongrants
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{serviceprincipal-id}/oauth2permissiongrants/count
      name: serviceprincipals-serviceprincipal-id-oauth2permissiongrants-count
      description: REST surface for servicePrincipals-servicePrincipal-id-oauth2PermissionGrants-$count.
      operations:
      - method: GET
        name: serviceprincipalsoauth2permissiongrantsgetcountf9dc
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-serviceprincipals-oauth2permissiongrant.serviceprincipalsoauth2permissiongrantsgetcountf9dc
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{serviceprincipal-id}/oauth2permissiongrants/{oauth2permissiongrant-id}
      name: serviceprincipals-serviceprincipal-id-oauth2permissiongrants-oauth2permissiongra
      description: REST surface for servicePrincipals-servicePrincipal-id-oauth2PermissionGrants-oAuth2PermissionGra.
      operations:
      - method: GET
        name: serviceprincipalsgetoauth2permissiongrants
        description: Microsoft Graph Get oauth2PermissionGrants from servicePrincipals
        call: microsoft-graph-serviceprincipals-oauth2permissiongrant.serviceprincipalsgetoauth2permissiongrants
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-serviceprincipals-oauth2permissiongrant-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.oAuth2PermissionGrant.
      One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-oauth2permissiongrants-granted
      description: Microsoft Graph List oauth2PermissionGrants granted to a service principal
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-oauth2permissiongrant.serviceprincipalslistoauth2permissiongrants
      with:
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-number-resource
      description: Microsoft Graph Get the number of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-oauth2permissiongrant.serviceprincipalsoauth2permissiongrantsgetcountf9dc
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-oauth2permissiongrants-serviceprincipals
      description: Microsoft Graph Get oauth2PermissionGrants from servicePrincipals
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-oauth2permissiongrant.serviceprincipalsgetoauth2permissiongrants
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.