Tool: list_data_assets
List Data Assets in a particular data product.
The following code sample shows how to use curl to call the list_data_assets MCP tool.
| Curl Request |
|---|
curl --location 'https://dataplex.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_data_assets", "arguments": { // Provide these details according to the MCP tool specification. } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for DataProductService.ListDataAssets method.
ListDataAssetsRequest
| JSON representation |
|---|
{ "projectId": string, "location": string, "dataProductId": string, "pageSize": integer, "filter": string } |
| Fields | |
|---|---|
projectId |
Required. The project ID to which the request should be attributed. |
location |
Required. The location of the project. On a regional or multi-regional endpoint ( |
dataProductId |
Required. The ID of the data product. |
pageSize |
Optional. The maximum number of data assets to return. The service may return fewer than this value. If unspecified, at most 50 data assets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
filter |
Optional. The filter expression used to filter the list of data assets. Examples: * |
Output Schema
Response message for DataProductService.ListDataAssets method.
ListDataAssetsResponse
| JSON representation |
|---|
{
"dataAssets": [
{
object ( |
| Fields | |
|---|---|
dataAssets[] |
The list of data assets that match the list request. |
DataAsset
| JSON representation |
|---|
{
"name": string,
"uid": string,
"createTime": string,
"updateTime": string,
"etag": string,
"labels": {
string: string,
...
},
"resource": string,
"accessGroupConfigs": {
string: {
object ( |
| Fields | |
|---|---|
name |
Identifier. Resource name of the data asset. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
uid |
Output only. System generated globally unique ID for the data asset. This ID will be different if the data asset is deleted and re-created with the same name. |
createTime |
Output only. The time at which the data asset 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 time at which the data asset was last updated. 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: |
etag |
Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
labels |
Optional. User-defined labels for the data asset. Example:
An object containing a list of |
resource |
Required. Immutable. Full resource name of the cloud resource represented by the data asset. This must follow https://cloud.google.com/iam/docs/full-resource-names. Example: |
accessGroupConfigs |
Optional. Access groups configurations for this data asset. The key is Example: Currently, at most one IAM role is allowed per access group. For providing multiple predefined IAM roles, wrap them in a custom IAM role as per https://cloud.google.com/iam/docs/creating-custom-roles. An object containing a list of |
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. |
LabelsEntry
| JSON representation |
|---|
{ "key": string, "value": string } |
| Fields | |
|---|---|
key |
|
value |
|
AccessGroupConfigsEntry
| JSON representation |
|---|
{
"key": string,
"value": {
object ( |
| Fields | |
|---|---|
key |
|
value |
|
AccessGroupConfig
| JSON representation |
|---|
{
"iamRoles": [
string
],
"state": enum ( |
| Fields | |
|---|---|
iamRoles[] |
Optional. IAM roles granted on the resource to this access group. Role name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. Example: |
state |
Output only. The state of the iam role application. |
State
The state of the iam role application.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
State is unspecified. |
APPLYING |
The iam role is being applied. |
APPLIED |
The iam role has been successfully applied. |
FAILED |
The iam role application failed due to transient error. |
UNSUPPORTED |
The iam role application is not supported for the asset resource type. |
Tool Annotations
Tool annotations are sent to MCP clients to describe the basic risk of a given tool. Most clients treat these hints as untrusted, but they can be used to decide when a confirmation prompt might be sent to a user.
Along with the title string, the following boolean hints are defined as follows:
readOnlyHint: If true, the tool doesn't modify its environment. Default: false.destructiveHint: If true, then the tool can perform destructive actions. If false, then the tool can only perform additive actions. Default: true.idempotentHint: If true, then calling the tool repeatedly with the same arguments will have no additional effect on its environment. Default: false.openWorldHint: If true, then the tool can interact with an 'open world' of external entities. If false, then the tool can only interact with internal entities. For example, a web search tool would be open world, while a memory tool would not be open world.
Destructive Hint: ❌ | Idempotent Hint: ❌ | Read Only Hint: ✅ | Open World Hint: ❌