observability-mcp

v0.2.3
@google-cloud/observability-mcp Checked 1 day ago Published 9 months ago

MCP Server for GCP environment for interacting with various Observability APIs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_log_entries

Use this as the primary tool to search and retrieve log entries from Google Cloud Logging. It's essential for debugging application behavior, finding specific error messages, or auditing events. The 'filter' is powerful and can be used to select logs by severity, resource type, text content, and more.

ParameterTypeDescription
resourceNames *arrayRequired. Names of one or more parent resources from which to retrieve log entries. Resources may either be resource containers (e.g. 'projects/[PROJECT_ID]') or specific LogViews (e.g. 'pro…
filterstringOptional. A filter that chooses which log entries to return. For more information, see Logging query language (https://cloud.google.com/logging/docs/view/logging-query-language). O…
orderBystringOptional. How the results should be sorted. The timestamp asc option returns entries in order of increasing values of LogEntry.timestamp (oldest first), and the second option returns entries…
pageSizenumberOptional. The maximum number of results to return from this request. Default is 50. If the value is negative, the request is rejected. The presence of next_page_token in the respon…
pageTokenstringOptional. If present, then retrieve the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. Th…

list_log_names

Use this as the primary tool to list the log names in a Google Cloud project. This is useful for discovering what logs are available for a project. Only logs which have log entries will be listed.

ParameterTypeDescription
parent *stringRequired. The parent resource whose logs are to be listed: e.g. "projects/[PROJECT_ID]""
pageSizenumberOptional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results migh…
pageTokenstringOptional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The v…

list_buckets

Use this as the primary tool to list the log buckets in a Google Cloud project. Log buckets are containers that store and organize your log data. This tool is useful for understanding how your logs are stored and for managing your logging configurations.

ParameterTypeDescription
parent *stringRequired. The parent resource whose buckets are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billing…
pageSizenumberOptional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results migh…
pageTokenstringOptional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The v…

list_views

Use this as the primary tool to list the log views in a given log bucket. Log views provide fine-grained access control to the logs in your buckets. This is useful for managing who has access to which logs.

ParameterTypeDescription
parent *stringRequired. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
pageSizenumberOptional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results migh…
pageTokenstringOptional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The v…

list_sinks

Use this as the primary tool to list the log sinks in a Google Cloud project. Log sinks control how Cloud Logging routes your logs to supported destinations, such as Cloud Storage buckets, BigQuery datasets, or Pub/Sub topics. This is useful for understanding your logging export configurations.

ParameterTypeDescription
parent *stringRequired. The parent resource whose sinks are to be listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[F…
pageSizenumberOptional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results migh…
pageTokenstringOptional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The v…

list_log_scopes

Use this as the primary tool to list the log scopes in a Google Cloud project. Log scopes allow you to query logs from multiple projects in a single view. This is useful for centralized logging across a large organization.

ParameterTypeDescription
parent *stringRequired. The parent resource whose log scopes are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]". The default location is "global".
pageSizenumberOptional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results migh…
pageTokenstringOptional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The v…

list_metric_descriptors

Use this as the primary tool to discover the types of metrics available in a Google Cloud project. This is a good first step to understanding what data is available for monitoring and building dashboards or alerts.

ParameterTypeDescription
name *stringRequired. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]
filterstringOptional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter specifies which metric descriptors are to be returned. See Monitoring Q…
pageSizenumberOptional. A positive number that is the maximum number of results to return.
pageTokenstringOptional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method.

list_time_series

Use this as the primary tool to retrieve metric data over a specific time period. This is the core tool for monitoring and observability, allowing you to get the actual data points for a given metric.

ParameterTypeDescription
filter *stringRequired. A monitoring filter that specifies which time series should be returned. (https://cloud.google.com/monitoring/api/v3/filters#time-series-filter). Examples: - To get C…
interval *objectRequired. The time interval for which results should be returned. Only time series that contain data points in the specified interval are included in the response.
name *stringRequired. The project, organization or folder on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID] folders/[FOLDER_ID…
aggregationobjectOptional. Specifies the alignment of data points in individual time series. By default (if no aggregation is explicitly specified), the raw time series data is returned.
pageSizenumberOptional. A positive number that is the maximum number of results to return.
pageTokenstringOptional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method.

list_alert_policies

Use this as the primary tool to list the alerting policies in a Google Cloud project. Alerting policies define the conditions under which you want to be notified about issues with your services. This is useful for understanding what alerts are currently configured.

ParameterTypeDescription
name *stringRequired. The project whose alert policies are to be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]
filterstringOptional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response. For more information on filtering alert policies see Cloud Monitor…
orderBystringOptional. A comma-separated list of fields by which to sort the result. The result will be sorted by aescending order. If a field is prefixed with a -, it is sorted in descending o…
pageSizenumberOptional. The maximum number of results to return in a single response.
pageTokenstringOptional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method.

list_alerts

Use this as the primary tool to list the alerts in a Google Cloud project. An alert is the representation of a violation of an alert policy. This is useful for understanding current and past violations of an alert policy.

ParameterTypeDescription
parent *stringRequired. The parent project to list alerts for. The required format is: projects/[PROJECT_ID_OR_NUMBER]
filterstringOptional. An alert is returned if there is a match on any fields belonging to the alert or its subfields. An example to filter for only OPEN alerts would be: state="OPEN"
orderBystringOptional. A comma-separated list of fields in Alert to use for sorting. The default sort direction is ascending. To specify descending order for a field, add a desc modifier. The…
pageSizenumberOptional. The maximum number of results to return in a single response. Default is 20. If the value is negative, the request is rejected. The maximum value is 1000; values above…
pageTokenstringOptional. If non-empty, page_token must contain a value returned as the next_page_token in a previous response to request the next set of results. The values of other method parameters shou…

list_traces

Use this as the primary tool to retrieve and examine distributed traces from Google Cloud Trace. Traces provide a detailed view of the path of a request as it travels through your application's services. This is essential for understanding latency issues and debugging complex, multi-service workflows. This will only return the root trace span, to gather full information call get_trace with that id.

ParameterTypeDescription
projectId *stringRequired. The Google Cloud project ID.
endTimestringOptional. End of the time interval (inclusive) during which the trace data was collected from the application. Must be in RFC 3339 format.
filterstringOptional. The filter to apply when listing traces. For more information on building trace filters see Cloud Trace Filters (https://cloud.google.com/trace/docs/trace-filters).…
orderBystringOptional. Field used to sort the returned traces. Can be one of the following: 'trace_id', 'name', 'duration', 'start'. Descending order can be specified by appending 'desc' to the…
pageSizenumberOptional. The maximum number of traces to return.
pageTokenstringOptional. Token identifying the page of results to return.
startTimestringOptional. Start of the time interval (inclusive) during which the trace data was collected from the application. Must be in RFC 3339 format.

get_trace

Use this as the primary tool to retrieve a single distributed trace from Google Cloud Trace. Traces provide a detailed view of the path of a request as it travels through your application's services. This is essential for understanding latency issues and debugging complex, multi-service workflows. This is often used as a follow on to list_traces to get full details on a specific trace.

ParameterTypeDescription
projectId *stringRequired. The Google Cloud project ID.
traceId *stringRequired. The ID of the trace to retrieve.

list_group_stats

Use this tool ONLY to find and analyze recurring stack traces in your application. It aggregates similar stack traces, providing statistics like the number of occurrences and the number of affected users. DO NOT use this tool for general error searches or to view individual error logs. For queries asking to "find errors", or "show me errors", you MUST use list_log_entries tool. CRITICAL: Default to other tooling for generic questions about errors.

ParameterTypeDescription
projectName *stringRequired. The resource name of the Google Cloud Platform project. Written as 'projects/{projectID}' or 'projects/{projectNumber}'.
orderstringOptional. The sort order in which the results are returned.
pageSizenumberOptional. The maximum number of results to return per response.
pageTokenstringOptional. A next_page_token provided by a previous response.
timeRangePeriodstringOptional. The time range to query.