MCP Tools Reference: dataflow.googleapis.com

Tool: get_job

Get a single Dataflow job in the region for a project.

The following code sample shows how to use curl to call the get_job MCP tool.

Curl Request
curl --location 'https://dataflow.africa-south1.rep.googleapis.com/mcp' \
--header 'content-type: application/json' \
--header 'accept: application/json, text/event-stream' \
--data '{
  "method": "tools/call",
  "params": {
    "name": "get_job",
    "arguments": {
      // Provide these details according to the MCP tool specification.
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}'

Input Schema

Request to get a single Dataflow job.

GetJobSummaryRequest

JSON representation
{
  "projectId": string,
  "jobUuid": string
}
Fields
projectId

string

Required. The id of the project that the job is in.

jobUuid

string

Required. The unique identifier of the job.

Output Schema

A summary of a Job.

JobSummary

JSON representation
{
  "jobUuid": string,
  "jobName": string,
  "projectId": string,
  "jobType": enum (JobType),
  "region": string,
  "createTime": string,
  "jobState": enum (JobState),
  "stateTime": string,
  "replacedJobUuid": string,
  "replacedByJobUuid": string,
  "sdkDisplayName": string,
  "sdkVersion": string,
  "sdkSupportState": enum (SdkSupportStatus),
  "experiments": [
    string
  ],
  "serviceOptions": [
    string
  ],
  "serviceAccountEmail": string,
  "serviceKmsKeyName": string,
  "workerZone": string,
  "workerRegion": string,
  "workerPools": [
    {
      object (WorkerPoolSummary)
    }
  ],
  "shuffleMode": enum (ShuffleMode),
  "streamingMode": enum (StreamingMode),
  "labels": {
    string: string,
    ...
  },
  "insights": [
    {
      object (InsightSummary)
    }
  ]
}
Fields
jobUuid

string

The unique identifier of a job.

jobName

string

The name of a job, which is unique among active jobs but can be duplicated across all jobs.

projectId

string

The id of the project that the job is in. This should be the same as the one in the request.

jobType

enum (JobType)

Specifies whether this is a batch or streaming job. If it is unknown, then that means the job is a flex template job that is still in the queued state and whose job type has not yet been determined.

region

string

The region of the job. This is determined by the regional endpoint used to fulfil the request.

createTime

string

The UTC timestamp that the job was created at in RFC 3339 format.

jobState

enum (JobState)

Output only. The current state of the job.

stateTime

string

The UTC time that the job entered its current state at in RFC 3339 format.

replacedJobUuid

string

The unique identifier of another job if this job is a replacement for that job.

replacedByJobUuid

string

The unique identifier of another job if that job is a replacement for this job.

sdkDisplayName

string

An easy-to-read name given to the SDK.

sdkVersion

string

The specific version of the SDK.

sdkSupportState

enum (SdkSupportStatus)

Output only. The current level of support for the SDK version.

experiments[]

string

Experimental features that have been explicitly enabled or disabled on the job. This is not included for list_jobs.

serviceOptions[]

string

Generally available features that have been explicitly enabled or disabled on the job. This is not included for list_jobs.

serviceAccountEmail

string

Identity used to run Google Compute Engine instances.

serviceKmsKeyName

string

The Cloud KMS identifier of the Customer Managed Encryption Key (CMEK) used to encrypt data at rest. Uses the format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY

workerZone

string

The zone that the Google Compute Engine instances are in. This could be outside the job's service region.

workerRegion

string

The region that the Google Compute Engine instances are in. This could be different than the job's service region.

workerPools[]

object (WorkerPoolSummary)

The worker pools used to execute the job. This is not included for list_jobs.

shuffleMode

enum (ShuffleMode)

How shuffle computations are handled for the job if it is a batch job.

streamingMode

enum (StreamingMode)

How streaming is handled for the job if it is a streaming job.

labels

map (key: string, value: string)

User-defined labels for the job. This is not included for list_jobs.

insights[]

object (InsightSummary)

Insights into actionable issues on the job. This is not included for list_jobs.

WorkerPoolSummary

JSON representation
{
  "machineType": string,
  "workerNumber": integer,
  "autoscalingAlgorithm": enum (AutoscalingAlgorithm),
  "maxWorkerNumber": integer,
  "network": string,
  "subnetwork": string,
  "ipConfig": enum (WorkerIPAddressConfiguration),
  "diskSizeGb": integer,
  "diskType": enum (DiskType)
}
Fields
machineType

string

The Google Compute Engine machine type used.

workerNumber

integer

The number of Google Compute Engine instances necessary to execute the job.

autoscalingAlgorithm

enum (AutoscalingAlgorithm)

The autoscaling algorithm used for the job.

maxWorkerNumber

integer

The maximum number of Google Compute Engine instances to scale to.

network

string

The network that the Google Compute Engine instances are assigned to.

subnetwork

string

The subnetwork of the network that the Google Compute Engine instances are assigned to. Follows format: regions/REGION/subnetworks/SUBNETWORK.

ipConfig

enum (WorkerIPAddressConfiguration)

How to assign IP addresses to the Google Compute Engine instances on the network.

diskSizeGb

integer

The GB of the root disk for the Google Compute Engine instances.

diskType

enum (DiskType)

The type of the root disk for the Google Compute Engine instances.

LabelsEntry

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

string

value

string

InsightSummary

JSON representation
{
  "title": string,
  "description": string,
  "lastRefreshTime": string,
  "category": string,
  "severity": string,
  "insightSubtype": string
}
Fields
title

string

The title of this insight.

description

string

The full description of the problem that was detected and potentially first steps to take in resolving it.

lastRefreshTime

string

The last time that this insight was refreshed. This normally corresponds to the initial time that it was observed.

category

string

The type of issue that was detected.

severity

string

How severe this particular issue is.

insightSubtype

string

A Dataflow-specific subtype for the insight if relevant.

JobType

Specifies the processing model used by a google.dataflow.v1beta3.Job, which determines the way the Job is managed by the Cloud Dataflow service (how workers are scheduled, how inputs are sharded, etc).

Enums
JOB_TYPE_UNKNOWN The type of the job is unspecified, or unknown.
JOB_TYPE_BATCH A batch job with a well-defined end point: data is read, data is processed, data is written, and the job is done.
JOB_TYPE_STREAMING A continuously streaming job with no end: data is read, processed, and written continuously.

JobState

Describes the overall state of a google.dataflow.v1beta3.Job.

Enums
JOB_STATE_UNKNOWN The job's run state isn't specified.
JOB_STATE_STOPPED JOB_STATE_STOPPED indicates that the job has not yet started to run.
JOB_STATE_RUNNING JOB_STATE_RUNNING indicates that the job is currently running.
JOB_STATE_DONE JOB_STATE_DONE indicates that the job has successfully completed. This is a terminal job state. This state may be set by the Cloud Dataflow service, as a transition from JOB_STATE_RUNNING. It may also be set via a Cloud Dataflow UpdateJob call, if the job has not yet reached a terminal state.
JOB_STATE_FAILED JOB_STATE_FAILED indicates that the job has failed. This is a terminal job state. This state may only be set by the Cloud Dataflow service, and only as a transition from JOB_STATE_RUNNING.
JOB_STATE_CANCELLED JOB_STATE_CANCELLED indicates that the job has been explicitly cancelled. This is a terminal job state. This state may only be set via a Cloud Dataflow UpdateJob call, and only if the job has not yet reached another terminal state.
JOB_STATE_UPDATED JOB_STATE_UPDATED indicates that the job was successfully updated, meaning that this job was stopped and another job was started, inheriting state from this one. This is a terminal job state. This state may only be set by the Cloud Dataflow service, and only as a transition from JOB_STATE_RUNNING.
JOB_STATE_DRAINING JOB_STATE_DRAINING indicates that the job is in the process of draining. A draining job has stopped pulling from its input sources and is processing any data that remains in-flight. This state may be set via a Cloud Dataflow UpdateJob call, but only as a transition from JOB_STATE_RUNNING. Jobs that are draining may only transition to JOB_STATE_DRAINED, JOB_STATE_CANCELLED, or JOB_STATE_FAILED.
JOB_STATE_DRAINED JOB_STATE_DRAINED indicates that the job has been drained. A drained job terminated by stopping pulling from its input sources and processing any data that remained in-flight when draining was requested. This state is a terminal state, may only be set by the Cloud Dataflow service, and only as a transition from JOB_STATE_DRAINING.
JOB_STATE_PENDING JOB_STATE_PENDING indicates that the job has been created but is not yet running. Jobs that are pending may only transition to JOB_STATE_RUNNING, or JOB_STATE_FAILED.
JOB_STATE_CANCELLING JOB_STATE_CANCELLING indicates that the job has been explicitly cancelled and is in the process of stopping. Jobs that are cancelling may only transition to JOB_STATE_CANCELLED or JOB_STATE_FAILED.
JOB_STATE_QUEUED JOB_STATE_QUEUED indicates that the job has been created but is being delayed until launch. Jobs that are queued may only transition to JOB_STATE_PENDING or JOB_STATE_CANCELLED.
JOB_STATE_RESOURCE_CLEANING_UP JOB_STATE_RESOURCE_CLEANING_UP indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested.
JOB_STATE_PAUSING JOB_STATE_PAUSING indicates that the job is in the process of pausing. A pausing job will stop processing, archive in-flight Shuffle data, and transition to JOB_STATE_PAUSED. Jobs in this state can transition to JOB_STATE_CANCELLING if cancellation is requested, or can transition back to JOB_STATE_RUNNING if the pause fails to complete.
JOB_STATE_PAUSED JOB_STATE_PAUSED indicates that the job is not currently processing. Jobs in this state can transition back to JOB_STATE_RUNNING to continue processing where they left off, or can transition to JOB_STATE_CANCELLING if cancellation is requested.

SdkSupportStatus

The support status of the SDK used to run the job.

Enums
UNKNOWN Cloud Dataflow is unaware of this version.
SUPPORTED This is a known version of an SDK, and is supported.
STALE A newer version of the SDK family exists, and an update is recommended.
DEPRECATED This version of the SDK is deprecated and will eventually be unsupported.
UNSUPPORTED Support for this SDK version has ended and it should no longer be used.

AutoscalingAlgorithm

Specifies the algorithm used to determine the number of worker processes to run at any given point in time, based on the amount of data left to process, the number of workers, and how quickly existing workers are processing data.

Enums
AUTOSCALING_ALGORITHM_UNKNOWN The algorithm is unknown, or unspecified.
AUTOSCALING_ALGORITHM_NONE Disable autoscaling.
AUTOSCALING_ALGORITHM_BASIC Increase worker count over time to reduce job execution time.

WorkerIPAddressConfiguration

Specifies how to allocate IP addresses to worker machines. You can also use pipeline options to specify whether Dataflow workers use external IP addresses.

Enums
WORKER_IP_UNSPECIFIED The configuration is unknown, or unspecified.
WORKER_IP_PUBLIC Workers should have public IP addresses.
WORKER_IP_PRIVATE Workers should have private IP addresses.

DiskType

Storage type of the root disk.

Enums
DISK_TYPE_UNSPECIFIED The disk type was unspecified.
STANDARD_PERSISTENT_DISK HDD-backed persistent disk ideal for larger storage at a lower cost.
SSD_PERSISTENT_DISK SSD-backed persistent disk. It provides lower latency but at a higher cost.
LOCAL_DISK Local, non-persistent disk.
HYPERDISK_BALANCED Disk that provides higher throughput and IOPS than even SSD-backed persistent disk.

ShuffleMode

Specifies the shuffle mode used by a google.dataflow.v1beta3.Job, which determines the approach data is shuffled during processing. More details in: https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle

Enums
SHUFFLE_MODE_UNSPECIFIED Shuffle mode information is not available.
VM_BASED Shuffle is done on the worker VMs.
SERVICE_BASED Shuffle is done on the service side.

StreamingMode

Specifies the Streaming Engine message processing guarantees. Reduces cost and latency but might result in duplicate messages written to storage. Designed to run simple mapping streaming ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use case. For more information, see Set the pipeline streaming mode.

Enums
STREAMING_MODE_UNSPECIFIED Run in the default mode.
STREAMING_MODE_EXACTLY_ONCE In this mode, message deduplication is performed against persistent state to make sure each message is processed and committed to storage exactly once.
STREAMING_MODE_AT_LEAST_ONCE Message deduplication is not performed. Messages might be processed multiple times, and the results are applied multiple times. Note: Setting this value also enables Streaming Engine and Streaming Engine resource-based billing.

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: ❌