naftiko: 1.0.0-alpha2 info: label: Calendly Scheduling API — Organizations description: 'Calendly Scheduling API — Organizations. 7 operations. Lead operation: List organization memberships. Self-contained Naftiko capability covering one Calendly business surface.' tags: - Calendly - Organizations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CALENDLY_API_KEY: CALENDLY_API_KEY capability: consumes: - type: http namespace: scheduling-organizations baseUri: https://api.calendly.com description: Calendly Scheduling API — Organizations business capability. Self-contained, no shared references. resources: - name: organization_memberships path: /organization_memberships operations: - name: listorganizationmemberships method: GET description: List organization memberships outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: organization in: query type: string description: The URI of the organization whose memberships to list. required: true - name: user in: query type: string description: Filter by user URI. - name: email in: query type: string description: Filter by user email address. - name: organization_memberships-uuid path: /organization_memberships/{uuid} operations: - name: getorganizationmembership method: GET description: Get organization membership outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: The UUID of the organization membership. required: true - name: deleteorganizationmembership method: DELETE description: Remove organization membership outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: The UUID of the organization membership to remove. required: true - name: organizations-org_uuid-invitations-invitation_uuid path: /organizations/{org_uuid}/invitations/{invitation_uuid} operations: - name: getorganizationinvitation method: GET description: Get organization invitation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_uuid in: path type: string description: The UUID of the organization. required: true - name: invitation_uuid in: path type: string description: The UUID of the invitation. required: true - name: revokeorganizationinvitation method: DELETE description: Revoke organization invitation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_uuid in: path type: string description: The UUID of the organization. required: true - name: invitation_uuid in: path type: string description: The UUID of the invitation to revoke. required: true - name: organizations-uuid-invitations path: /organizations/{uuid}/invitations operations: - name: listorganizationinvitations method: GET description: List organization invitations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: The UUID of the organization. required: true - name: status in: query type: string description: Filter invitations by status. - name: invitetoorganization method: POST description: Invite user to organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: The UUID of the organization. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.CALENDLY_API_KEY}}' exposes: - type: rest namespace: scheduling-organizations-rest port: 8080 description: REST adapter for Calendly Scheduling API — Organizations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organization-memberships name: organization-memberships description: REST surface for organization_memberships. operations: - method: GET name: listorganizationmemberships description: List organization memberships call: scheduling-organizations.listorganizationmemberships with: organization: rest.organization user: rest.user email: rest.email outputParameters: - type: object mapping: $. - path: /v1/organization-memberships/{uuid} name: organization-memberships-uuid description: REST surface for organization_memberships-uuid. operations: - method: GET name: getorganizationmembership description: Get organization membership call: scheduling-organizations.getorganizationmembership with: uuid: rest.uuid outputParameters: - type: object mapping: $. - method: DELETE name: deleteorganizationmembership description: Remove organization membership call: scheduling-organizations.deleteorganizationmembership with: uuid: rest.uuid outputParameters: - type: object mapping: $. - path: /v1/organizations/{org-uuid}/invitations/{invitation-uuid} name: organizations-org-uuid-invitations-invitation-uuid description: REST surface for organizations-org_uuid-invitations-invitation_uuid. operations: - method: GET name: getorganizationinvitation description: Get organization invitation call: scheduling-organizations.getorganizationinvitation with: org_uuid: rest.org_uuid invitation_uuid: rest.invitation_uuid outputParameters: - type: object mapping: $. - method: DELETE name: revokeorganizationinvitation description: Revoke organization invitation call: scheduling-organizations.revokeorganizationinvitation with: org_uuid: rest.org_uuid invitation_uuid: rest.invitation_uuid outputParameters: - type: object mapping: $. - path: /v1/organizations/{uuid}/invitations name: organizations-uuid-invitations description: REST surface for organizations-uuid-invitations. operations: - method: GET name: listorganizationinvitations description: List organization invitations call: scheduling-organizations.listorganizationinvitations with: uuid: rest.uuid status: rest.status outputParameters: - type: object mapping: $. - method: POST name: invitetoorganization description: Invite user to organization call: scheduling-organizations.invitetoorganization with: uuid: rest.uuid body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: scheduling-organizations-mcp port: 9090 transport: http description: MCP adapter for Calendly Scheduling API — Organizations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-organization-memberships description: List organization memberships hints: readOnly: true destructive: false idempotent: true call: scheduling-organizations.listorganizationmemberships with: organization: tools.organization user: tools.user email: tools.email outputParameters: - type: object mapping: $. - name: get-organization-membership description: Get organization membership hints: readOnly: true destructive: false idempotent: true call: scheduling-organizations.getorganizationmembership with: uuid: tools.uuid outputParameters: - type: object mapping: $. - name: remove-organization-membership description: Remove organization membership hints: readOnly: false destructive: true idempotent: true call: scheduling-organizations.deleteorganizationmembership with: uuid: tools.uuid outputParameters: - type: object mapping: $. - name: get-organization-invitation description: Get organization invitation hints: readOnly: true destructive: false idempotent: true call: scheduling-organizations.getorganizationinvitation with: org_uuid: tools.org_uuid invitation_uuid: tools.invitation_uuid outputParameters: - type: object mapping: $. - name: revoke-organization-invitation description: Revoke organization invitation hints: readOnly: false destructive: true idempotent: true call: scheduling-organizations.revokeorganizationinvitation with: org_uuid: tools.org_uuid invitation_uuid: tools.invitation_uuid outputParameters: - type: object mapping: $. - name: list-organization-invitations description: List organization invitations hints: readOnly: true destructive: false idempotent: true call: scheduling-organizations.listorganizationinvitations with: uuid: tools.uuid status: tools.status outputParameters: - type: object mapping: $. - name: invite-user-organization description: Invite user to organization hints: readOnly: false destructive: false idempotent: false call: scheduling-organizations.invitetoorganization with: uuid: tools.uuid body: tools.body outputParameters: - type: object mapping: $.