Tool: list_units
Lists Unit resources. Required parameter: 'parent' (e.g. projects/my-project/locations/us-central1). Optional parameters: 'page_size', 'page_token', 'filter', 'order_by'.
The following sample demonstrate how to use curl
to invoke the list_units
MCP tool.
| Curl Request |
|---|
curl --location 'https://saasservicemgmt.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_units", "arguments": { // provide these details according to the tool' s MCP specification } } , "jsonrpc" : "2.0" , "id" : 1 } ' |
Input Schema
The request structure for the ListUnits method.
ListUnitsRequest
| JSON representation |
|---|
{ "parent" : string , "pageSize" : integer , "pageToken" : string , "filter" : string , "orderBy" : string } |
| Fields | |
|---|---|
parent
|
Required. The parent of the unit. |
pageSize
|
The maximum number of units to send per page. |
pageToken
|
The page token: If the next_page_token from a previous response is provided, this request will send the subsequent page. |
filter
|
Filter the list as specified in https://google.aip.dev/160 . |
orderBy
|
Order results as specified in https://google.aip.dev/132 . |
Output Schema
The response structure for the ListUnits method.
ListUnitsResponse
| JSON representation |
|---|
{
"units"
:
[
{
object (
|
| Fields | |
|---|---|
units[]
|
The resulting units. |
nextPageToken
|
If present, the next page token can be provided to a subsequent ListUnits call to list the next page. If empty, there are no more pages. |
unreachable[]
|
Locations that could not be reached. |
Unit
| JSON representation |
|---|
{ "name" : string , "unitKind" : string , "release" : string , "tenant" : string , "ongoingOperations" : [ string ] , "pendingOperations" : [ string ] , "scheduledOperations" : [ string ] , "dependents" : [ { object ( |
| Fields | |
|---|---|
name
|
Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}" |
unitKind
|
Optional. Reference to the UnitKind this Unit belongs to. Immutable once set. |
release
|
Optional. Output only. The current Release object for this Unit. |
tenant
|
Optional. Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created) |
ongoingOperations[]
|
Optional. Output only. List of concurrent UnitOperations that are operating on this Unit. |
pendingOperations[]
|
Optional. Output only. List of pending (wait to be executed) UnitOperations for this unit. |
scheduledOperations[]
|
Optional. Output only. List of scheduled UnitOperations for this unit. |
dependents[]
|
Optional. Output only. List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. |
dependencies[]
|
Optional. Output only. Set of dependencies for this unit. Maximum 10. |
inputVariables[]
|
Optional. Output only. Indicates the current input variables deployed by the unit |
outputVariables[]
|
Optional. Output only. Set of key/value pairs corresponding to output variables from execution of actuation templates. The variables are declared in actuation configs (e.g in helm chart or terraform) and the values are fetched and returned by the actuation engine upon completion of execution. |
maintenance
|
Optional. Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. |
state
|
Optional. Output only. Current lifecycle state of the resource (e.g. if it's being created or ready to use). |
conditions[]
|
Optional. Output only. A set of conditions which indicate the various conditions this resource can have. |
managementMode
|
Optional. Immutable. Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. |
systemManagedState
|
Optional. Output only. Indicates the system managed state of the unit. |
systemCleanupAt
|
Optional. Output only. If set, indicates the time when the system will start removing the unit. 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: |
flagRevisions[]
|
Optional. Output only. Flag revisions used by this Unit. |
application
|
Optional. Reference to the AppHub Application this unit belongs to. All resources deployed in this Unit will be associated with the specified Application. |
flagConfigName
|
Output only. This field stores the unique identifier for the flag configuration to be used by this Unit. |
labels
|
Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. An object containing a list of |
annotations
|
Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations An object containing a list of |
uid
|
Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4. |
etag
|
Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written. |
createTime
|
Output only. The timestamp when the resource was created. 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. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value. 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: |
satisfiesPzs
|
Output only. Indicates whether the resource location satisfies Zone Separation constraints. This is false by default. |
satisfiesPzi
|
Output only. Reserved for future use. |
UnitDependency
| JSON representation |
|---|
{ "alias" : string , "unit" : string } |
| Fields | |
|---|---|
alias
|
Output only. Alias for the name of the dependency. |
unit
|
Output only. A reference to the Unit object. |
UnitVariable
| JSON representation |
|---|
{
"variable"
:
string
,
"type"
:
enum (
|
| Fields | |
|---|---|
variable
|
Required. Immutable. Name of the variable from actuation configs. |
type
|
Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool. |
value
|
Optional. String encoded value for the variable. |
MaintenanceSettings
| JSON representation |
|---|
{ "pinnedUntilTime" : string } |
| Fields | |
|---|---|
pinnedUntilTime
|
Optional. If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place. 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: |
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. |
UnitCondition
| JSON representation |
|---|
{ "status" : enum ( |
| Fields | |
|---|---|
status
|
Required. Status of the condition. |
type
|
Required. Type of the condition. |
lastTransitionTime
|
Required. Last time the condition transited from one status to another. 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: |
message
|
Required. Human readable message indicating details about the last transition. |
reason
|
Required. Brief reason for the condition's last transition. |
LabelsEntry
| JSON representation |
|---|
{ "key" : string , "value" : string } |
| Fields | |
|---|---|
key
|
|
value
|
|
AnnotationsEntry
| JSON representation |
|---|
{ "key" : string , "value" : string } |
| Fields | |
|---|---|
key
|
|
value
|
|
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌

