naftiko: 1.0.0-alpha2 info: label: MongoDB Atlas Administration API — Events description: 'MongoDB Atlas Administration API — Events. 5 operations. Lead operation: Return All Event Types. Self-contained Naftiko capability covering one Mongodb business surface.' tags: - Mongodb - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MONGODB_API_KEY: MONGODB_API_KEY capability: consumes: - type: http namespace: atlas-events baseUri: https://cloud.mongodb.com description: MongoDB Atlas Administration API — Events business capability. Self-contained, no shared references. resources: - name: api-atlas-v2-eventTypes path: /api/atlas/v2/eventTypes operations: - name: listeventtypes method: GET description: Return All Event Types outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-atlas-v2-groups-groupId-events path: /api/atlas/v2/groups/{groupId}/events operations: - name: listgroupevents method: GET description: Return Events from One Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterNames in: query type: array description: Human-readable label that identifies the cluster. - name: eventType in: query type: array description: Category of incident recorded at this moment in time. - name: excludedEventType in: query type: array description: Category of event that you would like to exclude from query results, such as `CLUSTER_CREATED`. - name: includeRaw in: query type: boolean description: Flag that indicates whether to include the raw document in the output. The raw document contains additional meta information about the event. - name: maxDate in: query type: string description: Date and time from when MongoDB Cloud stops returning events. This parameter uses the ISO 8601 timestamp format in UTC. - name: minDate in: query type: string description: Date and time from when MongoDB Cloud starts returning events. This parameter uses the ISO 8601 timestamp format in UTC. - name: api-atlas-v2-groups-groupId-events-eventId path: /api/atlas/v2/groups/{groupId}/events/{eventId} operations: - name: getgroupevent method: GET description: Return One Event from One Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: eventId in: path type: string description: Unique 24-hexadecimal digit string that identifies the event that you want to return. required: true - name: includeRaw in: query type: boolean description: Flag that indicates whether to include the raw document in the output. The raw document contains additional meta information about the event. - name: api-atlas-v2-orgs-orgId-events path: /api/atlas/v2/orgs/{orgId}/events operations: - name: listorgevents method: GET description: Return Events from One Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: eventType in: query type: array description: Category of incident recorded at this moment in time. - name: includeRaw in: query type: boolean description: Flag that indicates whether to include the raw document in the output. The raw document contains additional meta information about the event. - name: maxDate in: query type: string description: Date and time from when MongoDB Cloud stops returning events. This parameter uses the ISO 8601 timestamp format in UTC. - name: minDate in: query type: string description: Date and time from when MongoDB Cloud starts returning events. This parameter uses the ISO 8601 timestamp format in UTC. - name: api-atlas-v2-orgs-orgId-events-eventId path: /api/atlas/v2/orgs/{orgId}/events/{eventId} operations: - name: getorgevent method: GET description: Return One Event from One Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: eventId in: path type: string description: Unique 24-hexadecimal digit string that identifies the event that you want to return. required: true - name: includeRaw in: query type: boolean description: Flag that indicates whether to include the raw document in the output. The raw document contains additional meta information about the event. authentication: type: bearer token: '{{env.MONGODB_API_KEY}}' exposes: - type: rest namespace: atlas-events-rest port: 8080 description: REST adapter for MongoDB Atlas Administration API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/atlas/v2/eventtypes name: api-atlas-v2-eventtypes description: REST surface for api-atlas-v2-eventTypes. operations: - method: GET name: listeventtypes description: Return All Event Types call: atlas-events.listeventtypes outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/events name: api-atlas-v2-groups-groupid-events description: REST surface for api-atlas-v2-groups-groupId-events. operations: - method: GET name: listgroupevents description: Return Events from One Project call: atlas-events.listgroupevents with: clusterNames: rest.clusterNames eventType: rest.eventType excludedEventType: rest.excludedEventType includeRaw: rest.includeRaw maxDate: rest.maxDate minDate: rest.minDate outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/events/{eventid} name: api-atlas-v2-groups-groupid-events-eventid description: REST surface for api-atlas-v2-groups-groupId-events-eventId. operations: - method: GET name: getgroupevent description: Return One Event from One Project call: atlas-events.getgroupevent with: eventId: rest.eventId includeRaw: rest.includeRaw outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/orgs/{orgid}/events name: api-atlas-v2-orgs-orgid-events description: REST surface for api-atlas-v2-orgs-orgId-events. operations: - method: GET name: listorgevents description: Return Events from One Organization call: atlas-events.listorgevents with: eventType: rest.eventType includeRaw: rest.includeRaw maxDate: rest.maxDate minDate: rest.minDate outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/orgs/{orgid}/events/{eventid} name: api-atlas-v2-orgs-orgid-events-eventid description: REST surface for api-atlas-v2-orgs-orgId-events-eventId. operations: - method: GET name: getorgevent description: Return One Event from One Organization call: atlas-events.getorgevent with: eventId: rest.eventId includeRaw: rest.includeRaw outputParameters: - type: object mapping: $. - type: mcp namespace: atlas-events-mcp port: 9090 transport: http description: MCP adapter for MongoDB Atlas Administration API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: return-all-event-types description: Return All Event Types hints: readOnly: true destructive: false idempotent: true call: atlas-events.listeventtypes outputParameters: - type: object mapping: $. - name: return-events-one-project description: Return Events from One Project hints: readOnly: true destructive: false idempotent: true call: atlas-events.listgroupevents with: clusterNames: tools.clusterNames eventType: tools.eventType excludedEventType: tools.excludedEventType includeRaw: tools.includeRaw maxDate: tools.maxDate minDate: tools.minDate outputParameters: - type: object mapping: $. - name: return-one-event-one-project description: Return One Event from One Project hints: readOnly: true destructive: false idempotent: true call: atlas-events.getgroupevent with: eventId: tools.eventId includeRaw: tools.includeRaw outputParameters: - type: object mapping: $. - name: return-events-one-organization description: Return Events from One Organization hints: readOnly: true destructive: false idempotent: true call: atlas-events.listorgevents with: eventType: tools.eventType includeRaw: tools.includeRaw maxDate: tools.maxDate minDate: tools.minDate outputParameters: - type: object mapping: $. - name: return-one-event-one-organization description: Return One Event from One Organization hints: readOnly: true destructive: false idempotent: true call: atlas-events.getorgevent with: eventId: tools.eventId includeRaw: tools.includeRaw outputParameters: - type: object mapping: $.