Microsoft Graph · Capability

Microsoft Graph Me — contacts.directoryObject

Microsoft Graph Me — contacts.directoryObject. 9 operations. Lead operation: Microsoft Graph List memberOf. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft Graphcontacts.directoryObject

What You Can Do

GET
Contactslistmemberof — Microsoft Graph List memberOf
/v1/contacts/{orgcontact-id}/memberof
GET
Contactsmemberofgetcount46e4 — Microsoft Graph Get the number of the resource
/v1/contacts/{orgcontact-id}/memberof/count
GET
Contactslistmemberofasadministrativeunit — Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
/v1/contacts/{orgcontact-id}/memberof/graph-administrativeunit
GET
Contactsmemberofgetcountasadministrativeunitdb20 — Microsoft Graph Get the number of the resource
/v1/contacts/{orgcontact-id}/memberof/graph-administrativeunit/count
GET
Contactslistmemberofasgroup — Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection
/v1/contacts/{orgcontact-id}/memberof/graph-group
GET
Contactsmemberofgetcountasgroupdf93 — Microsoft Graph Get the number of the resource
/v1/contacts/{orgcontact-id}/memberof/graph-group/count
GET
Contactsgetmemberof — Microsoft Graph Get memberOf from contacts
/v1/contacts/{orgcontact-id}/memberof/{directoryobject-id}
GET
Contactsgetmemberofasadministrativeunit — Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
/v1/contacts/{orgcontact-id}/memberof/{directoryobject-id}/graph-administrativeunit
GET
Contactsgetmemberofasgroup — Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group
/v1/contacts/{orgcontact-id}/memberof/{directoryobject-id}/graph-group

MCP Tools

microsoft-graph-list-memberof

Microsoft Graph List memberOf

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

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-items-type

Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection

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

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-items-type-2

Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection

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

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-memberof-contacts

Microsoft Graph Get memberOf from contacts

read-only idempotent
microsoft-graph-get-item-type

Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit

read-only idempotent
microsoft-graph-get-item-type-2

Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group

read-only idempotent

Capability Spec

me-contacts-directoryobject.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph Me — contacts.directoryObject
  description: 'Microsoft Graph Me — contacts.directoryObject. 9 operations. Lead operation: Microsoft Graph List memberOf.
    Self-contained Naftiko capability covering one Microsoft Graph business surface.'
  tags:
  - Microsoft Graph
  - contacts.directoryObject
  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: me-contacts-directoryobject
    baseUri: ''
    description: Microsoft Graph Me — contacts.directoryObject business capability. Self-contained, no shared references.
    resources:
    - name: contacts-orgContact-id-memberOf
      path: /contacts/{orgContact-id}/memberOf
      operations:
      - name: contactslistmemberof
        method: GET
        description: Microsoft Graph List memberOf
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - 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: contacts-orgContact-id-memberOf-$count
      path: /contacts/{orgContact-id}/memberOf/$count
      operations:
      - name: contactsmemberofgetcount46e4
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
    - name: contacts-orgContact-id-memberOf-graph.administrativeUnit
      path: /contacts/{orgContact-id}/memberOf/graph.administrativeUnit
      operations:
      - name: contactslistmemberofasadministrativeunit
        method: GET
        description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject
          collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - 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: contacts-orgContact-id-memberOf-graph.administrativeUnit-$count
      path: /contacts/{orgContact-id}/memberOf/graph.administrativeUnit/$count
      operations:
      - name: contactsmemberofgetcountasadministrativeunitdb20
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
    - name: contacts-orgContact-id-memberOf-graph.group
      path: /contacts/{orgContact-id}/memberOf/graph.group
      operations:
      - name: contactslistmemberofasgroup
        method: GET
        description: Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - 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: contacts-orgContact-id-memberOf-graph.group-$count
      path: /contacts/{orgContact-id}/memberOf/graph.group/$count
      operations:
      - name: contactsmemberofgetcountasgroupdf93
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
    - name: contacts-orgContact-id-memberOf-directoryObject-id
      path: /contacts/{orgContact-id}/memberOf/{directoryObject-id}
      operations:
      - name: contactsgetmemberof
        method: GET
        description: Microsoft Graph Get memberOf from contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
    - name: contacts-orgContact-id-memberOf-directoryObject-id-graph.administrativeUnit
      path: /contacts/{orgContact-id}/memberOf/{directoryObject-id}/graph.administrativeUnit
      operations:
      - name: contactsgetmemberofasadministrativeunit
        method: GET
        description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
    - name: contacts-orgContact-id-memberOf-directoryObject-id-graph.group
      path: /contacts/{orgContact-id}/memberOf/{directoryObject-id}/graph.group
      operations:
      - name: contactsgetmemberofasgroup
        method: GET
        description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - 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: me-contacts-directoryobject-rest
    port: 8080
    description: REST adapter for Microsoft Graph Me — contacts.directoryObject. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/contacts/{orgcontact-id}/memberof
      name: contacts-orgcontact-id-memberof
      description: REST surface for contacts-orgContact-id-memberOf.
      operations:
      - method: GET
        name: contactslistmemberof
        description: Microsoft Graph List memberOf
        call: me-contacts-directoryobject.contactslistmemberof
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/count
      name: contacts-orgcontact-id-memberof-count
      description: REST surface for contacts-orgContact-id-memberOf-$count.
      operations:
      - method: GET
        name: contactsmemberofgetcount46e4
        description: Microsoft Graph Get the number of the resource
        call: me-contacts-directoryobject.contactsmemberofgetcount46e4
        with:
          ConsistencyLevel: rest.ConsistencyLevel
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/graph-administrativeunit
      name: contacts-orgcontact-id-memberof-graph-administrativeunit
      description: REST surface for contacts-orgContact-id-memberOf-graph.administrativeUnit.
      operations:
      - method: GET
        name: contactslistmemberofasadministrativeunit
        description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject
          collection
        call: me-contacts-directoryobject.contactslistmemberofasadministrativeunit
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/graph-administrativeunit/count
      name: contacts-orgcontact-id-memberof-graph-administrativeunit-count
      description: REST surface for contacts-orgContact-id-memberOf-graph.administrativeUnit-$count.
      operations:
      - method: GET
        name: contactsmemberofgetcountasadministrativeunitdb20
        description: Microsoft Graph Get the number of the resource
        call: me-contacts-directoryobject.contactsmemberofgetcountasadministrativeunitdb20
        with:
          ConsistencyLevel: rest.ConsistencyLevel
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/graph-group
      name: contacts-orgcontact-id-memberof-graph-group
      description: REST surface for contacts-orgContact-id-memberOf-graph.group.
      operations:
      - method: GET
        name: contactslistmemberofasgroup
        description: Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection
        call: me-contacts-directoryobject.contactslistmemberofasgroup
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/graph-group/count
      name: contacts-orgcontact-id-memberof-graph-group-count
      description: REST surface for contacts-orgContact-id-memberOf-graph.group-$count.
      operations:
      - method: GET
        name: contactsmemberofgetcountasgroupdf93
        description: Microsoft Graph Get the number of the resource
        call: me-contacts-directoryobject.contactsmemberofgetcountasgroupdf93
        with:
          ConsistencyLevel: rest.ConsistencyLevel
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/{directoryobject-id}
      name: contacts-orgcontact-id-memberof-directoryobject-id
      description: REST surface for contacts-orgContact-id-memberOf-directoryObject-id.
      operations:
      - method: GET
        name: contactsgetmemberof
        description: Microsoft Graph Get memberOf from contacts
        call: me-contacts-directoryobject.contactsgetmemberof
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/{directoryobject-id}/graph-administrativeunit
      name: contacts-orgcontact-id-memberof-directoryobject-id-graph-administrativeunit
      description: REST surface for contacts-orgContact-id-memberOf-directoryObject-id-graph.administrativeUnit.
      operations:
      - method: GET
        name: contactsgetmemberofasadministrativeunit
        description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
        call: me-contacts-directoryobject.contactsgetmemberofasadministrativeunit
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contacts/{orgcontact-id}/memberof/{directoryobject-id}/graph-group
      name: contacts-orgcontact-id-memberof-directoryobject-id-graph-group
      description: REST surface for contacts-orgContact-id-memberOf-directoryObject-id-graph.group.
      operations:
      - method: GET
        name: contactsgetmemberofasgroup
        description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group
        call: me-contacts-directoryobject.contactsgetmemberofasgroup
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: me-contacts-directoryobject-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph Me — contacts.directoryObject. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-memberof
      description: Microsoft Graph List memberOf
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactslistmemberof
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $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: me-contacts-directoryobject.contactsmemberofgetcount46e4
      with:
        ConsistencyLevel: tools.ConsistencyLevel
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-items-type
      description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject
        collection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactslistmemberofasadministrativeunit
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $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: me-contacts-directoryobject.contactsmemberofgetcountasadministrativeunitdb20
      with:
        ConsistencyLevel: tools.ConsistencyLevel
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-items-type-2
      description: Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactslistmemberofasgroup
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-number-resource-3
      description: Microsoft Graph Get the number of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactsmemberofgetcountasgroupdf93
      with:
        ConsistencyLevel: tools.ConsistencyLevel
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-memberof-contacts
      description: Microsoft Graph Get memberOf from contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactsgetmemberof
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-item-type
      description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactsgetmemberofasadministrativeunit
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-item-type-2
      description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: me-contacts-directoryobject.contactsgetmemberofasgroup
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.