Microsoft Graph · Capability

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

Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.homeRealmDiscoveryPolicy. 6 operations. Lead operation: Microsoft Graph List assigned homeRealmDiscoveryPolicy. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft GraphservicePrincipals.homeRealmDiscoveryPolicy

What You Can Do

GET
Serviceprincipalslisthomerealmdiscoverypolicies — Microsoft Graph List assigned homeRealmDiscoveryPolicy
/v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies
GET
Serviceprincipalshomerealmdiscoverypoliciesgetcountd161 — Microsoft Graph Get the number of the resource
/v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/count
GET
Serviceprincipalslistrefhomerealmdiscoverypolicies — Microsoft Graph List assigned homeRealmDiscoveryPolicy
/v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/ref
POST
Serviceprincipalscreaterefhomerealmdiscoverypolicies — Microsoft Graph Assign homeRealmDiscoveryPolicy
/v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/ref
DELETE
Serviceprincipalsdeleterefhomerealmdiscoverypolicies — Microsoft Graph Remove homeRealmDiscoveryPolicy
/v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/ref
DELETE
Serviceprincipalshomerealmdiscoverypoliciesdeleterefhomerealmdiscoverypolicy — Microsoft Graph Remove homeRealmDiscoveryPolicy
/v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/ref

MCP Tools

microsoft-graph-list-assigned-homerealmdiscoverypolicy

Microsoft Graph List assigned homeRealmDiscoveryPolicy

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

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-list-assigned-homerealmdiscoverypolicy-2

Microsoft Graph List assigned homeRealmDiscoveryPolicy

read-only idempotent
microsoft-graph-assign-homerealmdiscoverypolicy

Microsoft Graph Assign homeRealmDiscoveryPolicy

microsoft-graph-remove-homerealmdiscoverypolicy

Microsoft Graph Remove homeRealmDiscoveryPolicy

idempotent
microsoft-graph-remove-homerealmdiscoverypolicy-2

Microsoft Graph Remove homeRealmDiscoveryPolicy

idempotent

Capability Spec

microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.homeRealmDiscoveryPolicy
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.homeRealmDiscoveryPolicy.
    6 operations. Lead operation: Microsoft Graph List assigned homeRealmDiscoveryPolicy. Self-contained Naftiko capability
    covering one Microsoft Graph business surface.'
  tags:
  - Microsoft Graph
  - servicePrincipals.homeRealmDiscoveryPolicy
  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-homerealmdiscoverypolicy
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.homeRealmDiscoveryPolicy
      business capability. Self-contained, no shared references.
    resources:
    - name: servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies
      path: /servicePrincipals/{servicePrincipal-id}/homeRealmDiscoveryPolicies
      operations:
      - name: serviceprincipalslisthomerealmdiscoverypolicies
        method: GET
        description: Microsoft Graph List assigned homeRealmDiscoveryPolicy
        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-homeRealmDiscoveryPolicies-$count
      path: /servicePrincipals/{servicePrincipal-id}/homeRealmDiscoveryPolicies/$count
      operations:
      - name: serviceprincipalshomerealmdiscoverypoliciesgetcountd161
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies-$ref
      path: /servicePrincipals/{servicePrincipal-id}/homeRealmDiscoveryPolicies/$ref
      operations:
      - name: serviceprincipalslistrefhomerealmdiscoverypolicies
        method: GET
        description: Microsoft Graph List assigned homeRealmDiscoveryPolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $orderby
          in: query
          type: array
          description: Order items by property values
      - name: serviceprincipalscreaterefhomerealmdiscoverypolicies
        method: POST
        description: Microsoft Graph Assign homeRealmDiscoveryPolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: serviceprincipalsdeleterefhomerealmdiscoverypolicies
        method: DELETE
        description: Microsoft Graph Remove homeRealmDiscoveryPolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
        - name: '@id'
          in: query
          type: string
          description: The delete Uri
          required: true
    - name: servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies-homeRealmDiscov
      path: /servicePrincipals/{servicePrincipal-id}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy-id}/$ref
      operations:
      - name: serviceprincipalshomerealmdiscoverypoliciesdeleterefhomerealmdiscoverypolicy
        method: DELETE
        description: Microsoft Graph Remove homeRealmDiscoveryPolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
  exposes:
  - type: rest
    namespace: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.homeRealmDiscoveryPolicy.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies
      name: serviceprincipals-serviceprincipal-id-homerealmdiscoverypolicies
      description: REST surface for servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies.
      operations:
      - method: GET
        name: serviceprincipalslisthomerealmdiscoverypolicies
        description: Microsoft Graph List assigned homeRealmDiscoveryPolicy
        call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalslisthomerealmdiscoverypolicies
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/count
      name: serviceprincipals-serviceprincipal-id-homerealmdiscoverypolicies-count
      description: REST surface for servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies-$count.
      operations:
      - method: GET
        name: serviceprincipalshomerealmdiscoverypoliciesgetcountd161
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalshomerealmdiscoverypoliciesgetcountd161
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/ref
      name: serviceprincipals-serviceprincipal-id-homerealmdiscoverypolicies-ref
      description: REST surface for servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies-$ref.
      operations:
      - method: GET
        name: serviceprincipalslistrefhomerealmdiscoverypolicies
        description: Microsoft Graph List assigned homeRealmDiscoveryPolicy
        call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalslistrefhomerealmdiscoverypolicies
        with:
          $orderby: rest.$orderby
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: serviceprincipalscreaterefhomerealmdiscoverypolicies
        description: Microsoft Graph Assign homeRealmDiscoveryPolicy
        call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalscreaterefhomerealmdiscoverypolicies
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: serviceprincipalsdeleterefhomerealmdiscoverypolicies
        description: Microsoft Graph Remove homeRealmDiscoveryPolicy
        call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalsdeleterefhomerealmdiscoverypolicies
        with:
          If-Match: rest.If-Match
          '@id': rest.@id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{serviceprincipal-id}/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/ref
      name: serviceprincipals-serviceprincipal-id-homerealmdiscoverypolicies-homerealmdiscov
      description: REST surface for servicePrincipals-servicePrincipal-id-homeRealmDiscoveryPolicies-homeRealmDiscov.
      operations:
      - method: DELETE
        name: serviceprincipalshomerealmdiscoverypoliciesdeleterefhomerealmdiscoverypolicy
        description: Microsoft Graph Remove homeRealmDiscoveryPolicy
        call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalshomerealmdiscoverypoliciesdeleterefhomerealmdiscoverypolicy
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.homeRealmDiscoveryPolicy.
      One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-assigned-homerealmdiscoverypolicy
      description: Microsoft Graph List assigned homeRealmDiscoveryPolicy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalslisthomerealmdiscoverypolicies
      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-homerealmdiscoverypolicy.serviceprincipalshomerealmdiscoverypoliciesgetcountd161
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-list-assigned-homerealmdiscoverypolicy-2
      description: Microsoft Graph List assigned homeRealmDiscoveryPolicy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalslistrefhomerealmdiscoverypolicies
      with:
        $orderby: tools.$orderby
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-assign-homerealmdiscoverypolicy
      description: Microsoft Graph Assign homeRealmDiscoveryPolicy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalscreaterefhomerealmdiscoverypolicies
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-remove-homerealmdiscoverypolicy
      description: Microsoft Graph Remove homeRealmDiscoveryPolicy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalsdeleterefhomerealmdiscoverypolicies
      with:
        If-Match: tools.If-Match
        '@id': tools.@id
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-remove-homerealmdiscoverypolicy-2
      description: Microsoft Graph Remove homeRealmDiscoveryPolicy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-serviceprincipals-homerealmdiscoverypolicy.serviceprincipalshomerealmdiscoverypoliciesdeleterefhomerealmdiscoverypolicy
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.