MCP Tools Reference: dataplex.googleapis.com

Tool: list_data_product_aspect_types

Lists the Aspect Types in a project and location. Exposes metadata template for custom aspects. Used by update_data_product_aspects tool to get the aspect type metadata template.

The following sample demonstrate how to use curl to invoke the list_data_product_aspect_types 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_product_aspect_types",
    "arguments": {
      // provide these details according to the tool's MCP specification
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}'
                

Input Schema

Request message for CatalogService.ListAspectTypes method.

ListAspectTypesRequest

JSON representation
{
  "projectId": string,
  "location": string,
  "pageSize": integer,
  "pageToken": string,
  "filter": string
}
Fields
projectId

string

Required. The project ID to list aspect types from.

location

string

Required. The location (region or global) to list aspect types from.

pageSize

integer

Optional. Maximum number of aspect types to return. The service may return fewer than this value. If unspecified or set to 0, at most 10 aspect types will be returned. The maximum value is 20. Values above 20 will be coerced to 20.

pageToken

string

Optional. Page token received from a previous ListAspectTypes call (via next_page_token) to retrieve the next page.

filter

string

Optional. Filter request. Filters are case-sensitive. The service supports the following formats: * labels.key1 = "value1" * labels:key1 * name = "value" These restrictions can be conjoined with AND, OR, and NOT conjunctions.

Examples: - name = "projects/my-project/locations/us-central1/aspectTypes/custom-aspect-type" - name = "projects/my-project/locations/us-central1/aspectTypes/custom-aspect-type" OR name = "projects/my-project/locations/us-central1/aspectTypes/another-aspect-type"

Output Schema

Response message for CatalogService.ListAspectTypes method.

ListAspectTypesResponse

JSON representation
{
  "aspectTypes": [
    {
      object (AspectType)
    }
  ],
  "nextPageToken": string
}
Fields
aspectTypes[]

object (AspectType)

The list of aspect types.

nextPageToken

string

Token to retrieve the next page of results, or empty if there are no more.

AspectType

JSON representation
{
  "name": string,
  "description": string,
  "displayName": string,
  "labels": {
    string: string,
    ...
  },
  "metadataTemplate": [
    {
      object (MetadataTemplate)
    }
  ]
}
Fields
name

string

Output only. The relative resource name of the AspectType, of the form: projects/{projectNumber}/locations/{locationId}/aspectTypes/{aspectTypeId}.

description

string

Optional. Description of the AspectType.

displayName

string

Optional. User friendly display name.

labels

map (key: string, value: string)

Optional. User-defined labels for the AspectType.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

metadataTemplate[]

object (MetadataTemplate)

Required. MetadataTemplate of the aspect.

LabelsEntry

JSON representation
{
  "key": string,
  "value": string
}
Fields
key

string

value

string

MetadataTemplate

JSON representation
{
  "index": integer,
  "name": string,
  "type": string,
  "recordFields": [
    {
      object (MetadataTemplate)
    }
  ],
  "enumValues": [
    {
      object (EnumValue)
    }
  ],
  "mapItems": {
    object (MetadataTemplate)
  },
  "arrayItems": {
    object (MetadataTemplate)
  },
  "typeId": string,
  "typeRef": string,
  "constraints": {
    object (Constraints)
  },
  "annotations": {
    object (Annotations)
  }
}
Fields
index

integer

Optional. Index is used to encode Template messages. The value of index can range between 1 and 2,147,483,647. Index must be unique within all fields in a Template. (Nested Templates can reuse indexes). Once a Template is defined, the index cannot be changed, because it identifies the field in the actual storage format. Index is a mandatory field, but it is optional for top level fields, and map/array "values" definitions.

name

string

Required. The name of the field.

type

string

Required. The datatype of this field. The following values are supported:

Primitive types:

  • string
  • int
  • bool
  • double
  • datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z").

Complex types:

  • enum
  • array
  • map
  • record
recordFields[]

object (MetadataTemplate)

Optional. Field definition. You must specify it if the type is record. It defines the nested fields.

enumValues[]

object (EnumValue)

Optional. The list of values for an enum type. You must define it if the type is enum.

mapItems

object (MetadataTemplate)

Optional. If the type is map, set map_items. map_items can refer to a primitive field or a complex (record only) field. To specify a primitive field, you only need to set name and type in the nested MetadataTemplate. The recommended value for the name field is item, as this isn't used in the actual payload.

arrayItems

object (MetadataTemplate)

Optional. If the type is array, set array_items. array_items can refer to a primitive field or a complex (record only) field. To specify a primitive field, you only need to set name and type in the nested MetadataTemplate. The recommended value for the name field is item, as this isn't used in the actual payload.

typeId

string

Optional. You can use type id if this definition of the field needs to be reused later. The type id must be unique across the entire template. You can only specify it if the field type is record.

typeRef

string

Optional. A reference to another field definition (not an inline definition). The value must be equal to the value of an id field defined elsewhere in the MetadataTemplate. Only fields with record type can refer to other fields.

constraints

object (Constraints)

Optional. Specifies the constraints on this field.

annotations

object (Annotations)

Optional. Specifies annotations on this field.

EnumValue

JSON representation
{
  "index": integer,
  "name": string,
  "deprecated": string
}
Fields
index

integer

Required. Index for the enum value. It can't be modified.

name

string

Required. Name of the enumvalue. This is the actual value that the aspect can contain.

deprecated

string

Optional. You can set this message if you need to deprecate an enum value.

Constraints

JSON representation
{
  "required": boolean
}
Fields
required

boolean

Optional. Marks this field as optional or required.

Annotations

JSON representation
{
  "deprecated": string,
  "displayName": string,
  "description": string,
  "displayOrder": integer,
  "stringType": string,
  "stringValues": [
    string
  ]
}
Fields
deprecated

string

Optional. Marks a field as deprecated. You can include a deprecation message.

displayName

string

Optional. Display name for a field.

description

string

Optional. Description for a field.

displayOrder

integer

Optional. Display order for a field. You can use this to reorder where a field is rendered.

stringType

string

Optional. You can use String Type annotations to specify special meaning to string fields. The following values are supported:

  • richText: The field must be interpreted as a rich text field.
  • url: A fully qualified URL link.
  • resource: A service qualified resource reference.
stringValues[]

string

Optional. Suggested hints for string fields. You can use them to suggest values to users through console.

Tool Annotations

Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌