Tool: query_workflow_invocation_actions
Return the workflow invocation actions for a given Dataform workflow invocation.
These actions represent the individual BigQuery jobs, table creations, or assertions that make up the workflow.
The name parameter value must be in the format projects/{project_id}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}.
The following sample demonstrate how to use curl to invoke the query_workflow_invocation_actions MCP tool.
| Curl Request |
|---|
curl --location 'https://dataform.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "query_workflow_invocation_actions", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
QueryWorkflowInvocationActions request message.
QueryWorkflowInvocationActionsRequest
| JSON representation |
|---|
{ "name": string, "pageSize": integer, "pageToken": string } |
| Fields | |
|---|---|
name |
Required. The workflow invocation's name. |
pageSize |
Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. |
pageToken |
Optional. Page token received from a previous When paginating, all other parameters provided to |
Output Schema
QueryWorkflowInvocationActions response message.
QueryWorkflowInvocationActionsResponse
| JSON representation |
|---|
{
"workflowInvocationActions": [
{
object ( |
| Fields | |
|---|---|
workflowInvocationActions[] |
List of workflow invocation actions. |
nextPageToken |
A token, which can be sent as |
WorkflowInvocationAction
| JSON representation |
|---|
{ "target": { object ( |
| Fields | |
|---|---|
target |
Output only. This action's identifier. Unique within the workflow invocation. |
canonicalTarget |
Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. |
state |
Output only. This action's current state. |
failureReason |
Output only. If and only if action's state is FAILED a failure reason is set. |
invocationTiming |
Output only. This action's timing details. |
Union field action. The action's details. action can be only one of the following: |
|
bigqueryAction |
Output only. The workflow action's bigquery action details. |
notebookAction |
Output only. The workflow action's notebook action details. |
dataPreparationAction |
Output only. The workflow action's data preparation action details. |
Union field
|
|
internalMetadata |
Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
BigQueryAction
| JSON representation |
|---|
{ "sqlScript": string, "jobId": string } |
| Fields | |
|---|---|
sqlScript |
Output only. The generated BigQuery SQL script that will be executed. |
jobId |
Output only. The ID of the BigQuery job that executed the SQL in sql_script. Only set once the job has started to run. |
NotebookAction
| JSON representation |
|---|
{ "contents": string, "jobId": string, "filePath": string } |
| Fields | |
|---|---|
contents |
Output only. The code contents of a Notebook to be run. |
jobId |
Output only. The ID of the Gemini Enterprise Agent Platform job that executed the notebook in contents and also the ID used for the outputs created in Google Cloud Storage buckets. Only set once the job has started to run. |
filePath |
Output only. The path to the notebook file in the repository. |
DataPreparationAction
| JSON representation |
|---|
{ "generatedSql": string, "jobId": string, // Union field |
| Fields | |
|---|---|
generatedSql |
Output only. The generated BigQuery SQL script that will be executed. For reference only. |
jobId |
Output only. The ID of the BigQuery job that executed the SQL in sql_script. Only set once the job has started to run. |
Union field definition. The definition for the data preparation. definition can be only one of the following: |
|
contentsYaml |
Output only. YAML representing the contents of the data preparation. Can be used to show the customer what the input was to their workflow. |
contentsSql |
SQL definition for a Data Preparation. Contains a SQL query and additional context information. |
ActionSqlDefinition
| JSON representation |
|---|
{ "query": string, "errorTable": { object ( |
| Fields | |
|---|---|
query |
The SQL query representing the data preparation steps. Formatted as a Pipe SQL query statement. |
errorTable |
Error table configuration, |
loadConfig |
Load configuration. |
ActionErrorTable
| JSON representation |
|---|
{
"target": {
object ( |
| Fields | |
|---|---|
target |
Error Table target. |
retentionDays |
Error table partition expiration in days. Only positive values are allowed. |
Target
| JSON representation |
|---|
{ "database": string, "schema": string, "name": string } |
| Fields | |
|---|---|
database |
Optional. The action's database (Google Cloud project ID) . |
schema |
Optional. The action's schema (BigQuery dataset ID), within |
name |
Optional. The action's name, within |
ActionLoadConfig
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field mode. Load mode mode can be only one of the following: |
|
replace |
Replace destination table |
append |
Append into destination table |
maximum |
Insert records where the value exceeds the previous maximum value for a column in the destination table |
unique |
Insert records where the value of a column is not already present in the destination table |
ActionIncrementalLoadMode
| JSON representation |
|---|
{ "column": string } |
| Fields | |
|---|---|
column |
Column name for incremental load modes |
Interval
| JSON representation |
|---|
{ "startTime": string, "endTime": string } |
| Fields | |
|---|---|
startTime |
Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. 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: |
endTime |
Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. 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. |
State
Represents the current state of a workflow invocation action.
| Enums | |
|---|---|
PENDING |
The action has not yet been considered for invocation. |
RUNNING |
The action is currently running. |
SKIPPED |
Execution of the action was skipped because upstream dependencies did not all complete successfully. A terminal state. |
DISABLED |
Execution of the action was disabled as per the configuration of the corresponding compilation result action. A terminal state. |
SUCCEEDED |
The action succeeded. A terminal state. |
CANCELLED |
The action was cancelled. A terminal state. |
FAILED |
The action failed. A terminal state. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌