Tool: list_quota_preferences
Lists QuotaPreferences of all quotas for a given project, folder, or organization. Expected request structure: 'parent' (string, format: projects/{project}/locations/global, folders/{folder}/locations/global, or organizations/{organization}/locations/global) and 'filter' (string, optional, e.g. 'service="compute.googleapis.com" AND quotaId="CPUS-per-project-region"'). Pagination is automatically fixed to 100 items per page.
The following sample demonstrate how to use curl to invoke the list_quota_preferences MCP tool.
| Curl Request |
|---|
curl --location 'https://cloudquotas.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_quota_preferences", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Virtual request message for ListQuotaPreferences via MCP facade.
ListQuotaPreferencesRequest
| JSON representation |
|---|
{ "parent": string, "filter": string, "pageSize": integer, "pageToken": string } |
| Fields | |
|---|---|
parent |
Required. Identifier. Parent value of QuotaPreference resources. |
filter |
Optional. Filter result QuotaPreferences by their state, type, or time range. |
pageSize |
Optional. Requested page size. Server may return fewer items than requested. |
pageToken |
Optional. A token identifying a page of results the server should return. |
Output Schema
Message for response to listing QuotaPreferences
ListQuotaPreferencesResponse
| JSON representation |
|---|
{
"quotaPreferences": [
{
object ( |
| Fields | |
|---|---|
quotaPreferences[] |
The list of QuotaPreference |
nextPageToken |
A token, which can be sent as |
unreachable[] |
Locations that could not be reached. |
QuotaPreference
| JSON representation |
|---|
{
"name": string,
"dimensions": {
string: string,
...
},
"quotaConfig": {
object ( |
| Fields | |
|---|---|
name |
Required except in the CREATE requests. The resource name of the quota preference. The path that follows |
dimensions |
Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value. Note: QuotaPreferences can only be applied across all values of For example: An object containing a list of |
quotaConfig |
Required. Preferred quota configuration. |
etag |
Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags. |
createTime |
Output only. Create time stamp 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: |
updateTime |
Output only. Update time stamp 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: |
service |
Required. The name of the service to which the quota preference is applied. |
quotaId |
Required. The id of the quota to which the quota preference is applied. A quota name is unique in the service. For example, |
reconciling |
Output only. Is the quota preference pending Google Cloud approval and fulfillment. |
justification |
The reason / justification for this quota preference. |
contactEmail |
Input only. An email address that can be used to contact the user, in case Google Cloud needs more information to make a decision before additional quota can be granted. When requesting a quota increase, the email address is required. When requesting a quota decrease, the email address is optional. For example, the email address is optional when the |
DimensionsEntry
| JSON representation |
|---|
{ "key": string, "value": string } |
| Fields | |
|---|---|
key |
|
value |
|
QuotaConfig
| JSON representation |
|---|
{
"preferredValue": string,
"stateDetail": string,
"grantedValue": string,
"traceId": string,
"annotations": {
string: string,
...
},
"requestOrigin": enum ( |
| Fields | |
|---|---|
preferredValue |
Required. The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited". |
stateDetail |
Output only. Optional details about the state of this quota preference. |
grantedValue |
Output only. Granted quota value. |
traceId |
Output only. The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id. |
annotations |
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations An object containing a list of |
requestOrigin |
Output only. The origin of the quota preference request. |
Int64Value
| JSON representation |
|---|
{ "value": string } |
| Fields | |
|---|---|
value |
The int64 value. |
AnnotationsEntry
| JSON representation |
|---|
{ "key": string, "value": string } |
| Fields | |
|---|---|
key |
|
value |
|
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. |
Origin
The enumeration of the origins of quota preference requests.
| Enums | |
|---|---|
ORIGIN_UNSPECIFIED |
The unspecified value. |
CLOUD_CONSOLE |
Created through Cloud Console. |
AUTO_ADJUSTER |
Generated by automatic quota adjustment. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ✅