Tool: list_project_events
Lists service health events for a given Google Cloud project.
-
parent(string, required): Parent value using the formprojects/{project_id}/locations/global. -
filter(string, optional): A filter expression that filters resources listed in the response. The expression takes the following forms:- field=value for category and state
- field <, >, <=, or >= value for update_time
- Examples: category=INCIDENT, update_time>=2000-01-01T11:30:00-04:00
- Multiple filter queries are separated by spaces. Example: category=INCIDENT state=ACTIVE.
- By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
- Filter is supported for the following fields: category, state, update_time
-
page_size(integer, optional): The maximum number of events that should be returned. Acceptable values are 1 to 100, inclusive. (The default value is 10.) If more results are available, the service returns a nextPageToken that you can use to get the next page of results in subsequent list requests. The service may return fewer events than the requested page_size. -
page_token(string, optional): A page token received from a previouslist_project_eventscall. Provide this to retrieve the subsequent page.
The following sample demonstrate how to use curl
to invoke the list_project_events
MCP tool.
| Curl Request |
|---|
curl --location 'https://servicehealth.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_project_events", "arguments": { // provide these details according to the tool' s MCP specification } } , "jsonrpc" : "2.0" , "id" : 1 } ' |
Input Schema
Requests list of events.
ListEventsRequest
| JSON representation |
|---|
{
"parent"
:
string
,
"pageSize"
:
integer
,
"pageToken"
:
string
,
"filter"
:
string
,
"view"
:
enum (
|
parent
string
Required. Parent value using the form projects/{project_id}/locations/{location}/events
.
project_id
- ID of the project for which to list service health events. location
- The location to get the service health events from. Set this field to global
.
pageSize
integer
Optional. The maximum number of events that should be returned. Acceptable values are 1 to 100, inclusive. (The default value is 10.) If more results are available, the service returns a next_page_token that you can use to get the next page of results in subsequent list requests. The service may return fewer events than the requested page_size.
pageToken
string
Optional. A token identifying a page of results the server should return. Provide Page token returned by a previous ListEvents
call to retrieve the next page of results. When paginating, all other parameters provided to ListEvents
must match the call that provided the page token.
filter
string
Optional. A filter expression that filters resources listed in the response. The expression takes the following forms:
- field=value for
categoryandstate - field <, >, <=, or >= value for
update_time
Examples: category=INCIDENT
, update_time>="2000-01-01T11:30:00-04:00"
, event_impacts.product.product_name:"Eventarc"
Multiple filter queries are separated by spaces. Example: category=INCIDENT state=ACTIVE
.
By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
Filter is supported for the following fields: category
, state
, update_time
, event_impacts.product.product_name
view
enum (
EventView
)
Optional. Event fields to include in response.
EventView
The event fields to include in ListEvents API response. This enum lists all possible event views.
| Enums | |
|---|---|
EVENT_VIEW_UNSPECIFIED
|
Unspecified event view. Default to EVENT_VIEW_BASIC
. |
EVENT_VIEW_BASIC
|
Includes all fields except updates
. This view is the default for ListEvents API. |
EVENT_VIEW_FULL
|
Includes all event fields. |
Output Schema
Response to request for listing events.
ListEventsResponse
| JSON representation |
|---|
{
"events"
:
[
{
object (
|
| Fields | |
|---|---|
events[]
|
Output only. List of events. |
nextPageToken
|
Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page. If this field is not present, there are no subsequent results. |
unreachable[]
|
Output only. Locations that could not be reached. |
Event
| JSON representation |
|---|
{ "name" : string , "title" : string , "description" : string , "category" : enum ( |
| Fields | |
|---|---|
name
|
Output only. Identifier. Name of the event. Unique name of the event in this scope including project and location using the form |
title
|
Output only. Brief description for the event. |
description
|
Output only. Free-form, human-readable description. |
category
|
Output only. The category of the event. |
detailedCategory
|
Output only. The detailed category of the event. |
state
|
Output only. The current state of the event. |
detailedState
|
Output only. The current detailed state of the incident. |
eventImpacts[]
|
Google Cloud products and locations impacted by the event. |
relevance
|
Output only. Communicates why a given event is deemed relevant in the context of a given project. |
updates[]
|
Output only. Event updates are correspondence from Google. |
parentEvent
|
Output only. When |
updateTime
|
Output only. The time when the event was last modified. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startTime
|
Output only. The start time of the event, if applicable. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime
|
Output only. The end time of the event, if applicable. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
nextUpdateTime
|
Output only. The time when the next update can be expected. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
EventImpact
| JSON representation |
|---|
{ "product" : { object ( |
| Fields | |
|---|---|
product
|
Google Cloud product impacted by the event. |
location
|
Location impacted by the event. |
Product
| JSON representation |
|---|
{ "productName" : string , "id" : string } |
| Fields | |
|---|---|
productName
|
Google Cloud product impacted by the event. Example: |
id
|
Unique identifier for the product. |
Location
| JSON representation |
|---|
{ "locationName" : string } |
| Fields | |
|---|---|
locationName
|
Location impacted by the event. Example: |
EventUpdate
| JSON representation |
|---|
{ "updateTime" : string , "title" : string , "description" : string , "symptom" : string , "workaround" : string } |
| Fields | |
|---|---|
updateTime
|
Output only. The time the update was posted. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
title
|
Output only. Brief title for the event. |
description
|
Output only. Free-form, human-readable description. |
symptom
|
Output only. Symptoms of the event, if available. |
workaround
|
Output only. Workaround steps to remediate the event impact, if available. |
Timestamp
| JSON representation |
|---|
{ "seconds" : string , "nanos" : integer } |
| Fields | |
|---|---|
seconds
|
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be between -62135596800 and 253402300799 inclusive (which corresponds to 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). |
nanos
|
Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive. |
EventCategory
The category of the event. This enum lists all possible categories of event.
| Enums | |
|---|---|
EVENT_CATEGORY_UNSPECIFIED
|
Unspecified category. |
INCIDENT
|
Event category for service outage or degradation. |
DetailedCategory
The detailed category of an event. Contains all possible states for all event categories.
| Enums | |
|---|---|
DETAILED_CATEGORY_UNSPECIFIED
|
Unspecified detailed category. |
CONFIRMED_INCIDENT
|
Indicates an event with category INCIDENT has a confirmed impact to at least one Google Cloud product. |
EMERGING_INCIDENT
|
Indicates an event with category INCIDENT is under investigation to determine if it has a confirmed impact on any Google Cloud products. |
State
The state of the event. This enum lists all possible states of event.
| Enums | |
|---|---|
STATE_UNSPECIFIED
|
Unspecified state. |
ACTIVE
|
Event is actively affecting a Google Cloud product and will continue to receive updates. |
CLOSED
|
Event is no longer affecting the Google Cloud product or has been merged with another event. |
DetailedState
The detailed state of the incident. This enum lists all possible detailed states of an incident.
DETAILED_STATE_UNSPECIFIED
EMERGING
CONFIRMED
RESOLVED
MERGED
parent_event
field contains the name of the parent.AUTO_CLOSED
The incident was automatically closed because of the following reasons:
- The impact of the incident could not be confirmed.
- The incident was intermittent or resolved itself.
The incident does not have a resolution because no action or investigation happened. If it is intermittent, the incident may reopen.
FALSE_POSITIVE
Relevance
Communicates why a given incident is deemed relevant in the context of a given project. This enum lists all possible detailed states of relevance.
| Enums | |
|---|---|
RELEVANCE_UNSPECIFIED
|
Unspecified relevance. |
UNKNOWN
|
The relevance of the incident to the project is unknown. |
NOT_IMPACTED
|
The incident does not impact the project. |
PARTIALLY_RELATED
|
The incident is associated with a Google Cloud product your project uses, but the incident may not be impacting your project. For example, the incident may be impacting a Google Cloud product that your project uses, but in a location that your project does not use. |
RELATED
|
The incident has a direct connection with your project and impacts a Google Cloud product in a location your project uses. |
IMPACTED
|
The incident is verified to be impacting your project. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌

