Microsoft Graph · Capability

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

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

Run with Naftiko Microsoft Graphpolicies.homeRealmDiscoveryPolicy

What You Can Do

GET
Policieslisthomerealmdiscoverypolicies — Microsoft Graph List homeRealmDiscoveryPolicies
/v1/policies/homerealmdiscoverypolicies
POST
Policiescreatehomerealmdiscoverypolicies — Microsoft Graph Create homeRealmDiscoveryPolicy
/v1/policies/homerealmdiscoverypolicies
GET
Policieshomerealmdiscoverypoliciesgetcount9451 — Microsoft Graph Get the number of the resource
/v1/policies/homerealmdiscoverypolicies/count
GET
Policiesgethomerealmdiscoverypolicies — Microsoft Graph Get homeRealmDiscoveryPolicy
/v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}
PATCH
Policiesupdatehomerealmdiscoverypolicies — Microsoft Graph Update homerealmdiscoverypolicy
/v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}
DELETE
Policiesdeletehomerealmdiscoverypolicies — Microsoft Graph Delete homeRealmDiscoveryPolicy
/v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}
GET
Policieshomerealmdiscoverypolicieslistappliesto — Microsoft Graph List appliesTo
/v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/appliesto
GET
Policieshomerealmdiscoverypoliciesappliestogetcount6090 — Microsoft Graph Get the number of the resource
/v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/appliesto/count
GET
Policieshomerealmdiscoverypoliciesgetappliesto — Microsoft Graph Get appliesTo from policies
/v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/appliesto/{directoryobject-id}

MCP Tools

microsoft-graph-list-homerealmdiscoverypolicies

Microsoft Graph List homeRealmDiscoveryPolicies

read-only idempotent
microsoft-graph-create-homerealmdiscoverypolicy

Microsoft Graph Create homeRealmDiscoveryPolicy

microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-homerealmdiscoverypolicy

Microsoft Graph Get homeRealmDiscoveryPolicy

read-only idempotent
microsoft-graph-update-homerealmdiscoverypolicy

Microsoft Graph Update homerealmdiscoverypolicy

idempotent
microsoft-graph-delete-homerealmdiscoverypolicy

Microsoft Graph Delete homeRealmDiscoveryPolicy

idempotent
microsoft-graph-list-appliesto

Microsoft Graph List appliesTo

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

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-appliesto-policies

Microsoft Graph Get appliesTo from policies

read-only idempotent

Capability Spec

microsoft-graph-policies-homerealmdiscoverypolicy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — policies.homeRealmDiscoveryPolicy
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — policies.homeRealmDiscoveryPolicy. 9 operations.
    Lead operation: Microsoft Graph List homeRealmDiscoveryPolicies. Self-contained Naftiko capability covering one Microsoft
    Graph business surface.'
  tags:
  - Microsoft Graph
  - policies.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-policies-homerealmdiscoverypolicy
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — policies.homeRealmDiscoveryPolicy business
      capability. Self-contained, no shared references.
    resources:
    - name: policies-homeRealmDiscoveryPolicies
      path: /policies/homeRealmDiscoveryPolicies
      operations:
      - name: policieslisthomerealmdiscoverypolicies
        method: GET
        description: Microsoft Graph List homeRealmDiscoveryPolicies
        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: policiescreatehomerealmdiscoverypolicies
        method: POST
        description: Microsoft Graph Create homeRealmDiscoveryPolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: policies-homeRealmDiscoveryPolicies-$count
      path: /policies/homeRealmDiscoveryPolicies/$count
      operations:
      - name: policieshomerealmdiscoverypoliciesgetcount9451
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id
      path: /policies/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy-id}
      operations:
      - name: policiesgethomerealmdiscoverypolicies
        method: GET
        description: Microsoft Graph Get homeRealmDiscoveryPolicy
        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
      - name: policiesupdatehomerealmdiscoverypolicies
        method: PATCH
        description: Microsoft Graph Update homerealmdiscoverypolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: policiesdeletehomerealmdiscoverypolicies
        method: DELETE
        description: Microsoft Graph Delete homeRealmDiscoveryPolicy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id-appliesTo
      path: /policies/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy-id}/appliesTo
      operations:
      - name: policieshomerealmdiscoverypolicieslistappliesto
        method: GET
        description: Microsoft Graph List appliesTo
        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: policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id-appliesTo-$count
      path: /policies/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy-id}/appliesTo/$count
      operations:
      - name: policieshomerealmdiscoverypoliciesappliestogetcount6090
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id-appliesTo-direct
      path: /policies/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy-id}/appliesTo/{directoryObject-id}
      operations:
      - name: policieshomerealmdiscoverypoliciesgetappliesto
        method: GET
        description: Microsoft Graph Get appliesTo from policies
        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-policies-homerealmdiscoverypolicy-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — policies.homeRealmDiscoveryPolicy.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/policies/homerealmdiscoverypolicies
      name: policies-homerealmdiscoverypolicies
      description: REST surface for policies-homeRealmDiscoveryPolicies.
      operations:
      - method: GET
        name: policieslisthomerealmdiscoverypolicies
        description: Microsoft Graph List homeRealmDiscoveryPolicies
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policieslisthomerealmdiscoverypolicies
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: policiescreatehomerealmdiscoverypolicies
        description: Microsoft Graph Create homeRealmDiscoveryPolicy
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policiescreatehomerealmdiscoverypolicies
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policies/homerealmdiscoverypolicies/count
      name: policies-homerealmdiscoverypolicies-count
      description: REST surface for policies-homeRealmDiscoveryPolicies-$count.
      operations:
      - method: GET
        name: policieshomerealmdiscoverypoliciesgetcount9451
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypoliciesgetcount9451
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}
      name: policies-homerealmdiscoverypolicies-homerealmdiscoverypolicy-id
      description: REST surface for policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id.
      operations:
      - method: GET
        name: policiesgethomerealmdiscoverypolicies
        description: Microsoft Graph Get homeRealmDiscoveryPolicy
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policiesgethomerealmdiscoverypolicies
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: policiesupdatehomerealmdiscoverypolicies
        description: Microsoft Graph Update homerealmdiscoverypolicy
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policiesupdatehomerealmdiscoverypolicies
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: policiesdeletehomerealmdiscoverypolicies
        description: Microsoft Graph Delete homeRealmDiscoveryPolicy
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policiesdeletehomerealmdiscoverypolicies
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/appliesto
      name: policies-homerealmdiscoverypolicies-homerealmdiscoverypolicy-id-appliesto
      description: REST surface for policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id-appliesTo.
      operations:
      - method: GET
        name: policieshomerealmdiscoverypolicieslistappliesto
        description: Microsoft Graph List appliesTo
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypolicieslistappliesto
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/appliesto/count
      name: policies-homerealmdiscoverypolicies-homerealmdiscoverypolicy-id-appliesto-count
      description: REST surface for policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id-appliesTo-$count.
      operations:
      - method: GET
        name: policieshomerealmdiscoverypoliciesappliestogetcount6090
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypoliciesappliestogetcount6090
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policies/homerealmdiscoverypolicies/{homerealmdiscoverypolicy-id}/appliesto/{directoryobject-id}
      name: policies-homerealmdiscoverypolicies-homerealmdiscoverypolicy-id-appliesto-direct
      description: REST surface for policies-homeRealmDiscoveryPolicies-homeRealmDiscoveryPolicy-id-appliesTo-direct.
      operations:
      - method: GET
        name: policieshomerealmdiscoverypoliciesgetappliesto
        description: Microsoft Graph Get appliesTo from policies
        call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypoliciesgetappliesto
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-policies-homerealmdiscoverypolicy-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — policies.homeRealmDiscoveryPolicy.
      One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-homerealmdiscoverypolicies
      description: Microsoft Graph List homeRealmDiscoveryPolicies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policieslisthomerealmdiscoverypolicies
      with:
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-create-homerealmdiscoverypolicy
      description: Microsoft Graph Create homeRealmDiscoveryPolicy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policiescreatehomerealmdiscoverypolicies
      with:
        body: tools.body
      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-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypoliciesgetcount9451
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-homerealmdiscoverypolicy
      description: Microsoft Graph Get homeRealmDiscoveryPolicy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policiesgethomerealmdiscoverypolicies
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-homerealmdiscoverypolicy
      description: Microsoft Graph Update homerealmdiscoverypolicy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policiesupdatehomerealmdiscoverypolicies
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-homerealmdiscoverypolicy
      description: Microsoft Graph Delete homeRealmDiscoveryPolicy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policiesdeletehomerealmdiscoverypolicies
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-list-appliesto
      description: Microsoft Graph List appliesTo
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypolicieslistappliesto
      with:
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-number-resource-2
      description: Microsoft Graph Get the number of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypoliciesappliestogetcount6090
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-appliesto-policies
      description: Microsoft Graph Get appliesTo from policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-policies-homerealmdiscoverypolicy.policieshomerealmdiscoverypoliciesgetappliesto
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.