Tool: list_transfer_runs
List all the transfer runs for a transfer config.
The following example shows a MCP call to list all transfer runs for a transfer configuration named transfer_config_id
in the project myproject
in the location myregion
.
If the location isn't explicitly specified, and it can't be determined from the resources in the request, then the default location
is used. If the default location isn't set, then the job runs in the US
multi-region.
list_transfer_runs(project_id="myproject", location="myregion", transfer_config_id="mytransferconfig")
The following sample demonstrate how to use curl
to invoke the list_transfer_runs
MCP tool.
| Curl Request |
|---|
curl --location 'https://bigquerydatatransfer.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_transfer_runs", "arguments": { // provide these details according to the tool' s MCP specification } } , "jsonrpc" : "2.0" , "id" : 1 } ' |
Input Schema
A request to list data transfer runs.
ListTransferRunsRequest
| JSON representation |
|---|
{ "parent" : string , "states" : [ enum ( |
parent
string
Required. Name of transfer configuration for which transfer runs should be retrieved. If you are using the regionless method, the location must be US
and the name should be in the following form:
-
projects/{project_id}/transferConfigs/{config_id}
If you are using the regionalized method, the name should be in the following form:
-
projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
states[]
enum (
TransferState
)
When specified, only transfer runs with requested states are returned.
pageToken
string
Pagination token, which can be used to request a specific page of ListTransferRunsRequest
list results. For multiple-page results, ListTransferRunsResponse
outputs a next_page
token, which can be used as the page_token
value to request the next page of list results.
pageSize
integer
Page size. The default page size is the maximum value of 1000 results.
runAttempt
enum (
RunAttempt
)
Indicates how run attempts are to be pulled.
Output Schema
The returned list of pipelines in the project.
ListTransferRunsResponse
| JSON representation |
|---|
{
"transferRuns"
:
[
{
object (
|
| Fields | |
|---|---|
transferRuns[]
|
Output only. The stored pipeline transfer runs. |
nextPageToken
|
Output only. The next-pagination token. For multiple-page list results, this token can be used as the |
TransferRun
| JSON representation |
|---|
{ "name" : string , "scheduleTime" : string , "runTime" : string , "errorStatus" : { object ( |
name
string
Identifier. The resource name of the transfer run. Transfer run names have the form projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}
. The name is ignored when creating a transfer run.
scheduleTime
string (
Timestamp
format)
Minimum time after which a transfer run can be started.
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: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
runTime
string (
Timestamp
format)
For batch transfer runs, specifies the date and time of the data should be ingested.
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: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
errorStatus
object (
Status
)
Status of the transfer run.
startTime
string (
Timestamp
format)
Output only. Time when transfer run was started. Parameter ignored by server for input requests.
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: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
endTime
string (
Timestamp
format)
Output only. Time when transfer run ended. Parameter ignored by server for input requests.
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: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
updateTime
string (
Timestamp
format)
Output only. Last time the data transfer run state was 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: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
params
object (
Struct
format)
Output only. Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
dataSourceId
string
Output only. Data source id.
state
enum (
TransferState
)
Data transfer run state. Ignored for input requests.
userId
string ( int64
format)
Deprecated. Unique ID of the user on whose behalf transfer is done.
schedule
string
Output only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so schedule_time
doesn't always match this.
notificationPubsubTopic
string
Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes.
The format for specifying a pubsub topic is: projects/{project_id}/topics/{topic_id}
emailPreferences
object (
EmailPreferences
)
Output only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from.
destination
. Data transfer destination. destination
can be only one of the following:destinationDatasetId
string
Output only. The BigQuery target dataset id.
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. |
Status
| JSON representation |
|---|
{ "code" : integer , "message" : string , "details" : [ { "@type" : string , field1 : ... , ... } ] } |
| Fields | |
|---|---|
code
|
The status code, which should be an enum value of |
message
|
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the |
details[]
|
A list of messages that carry the error details. There is a common set of message types for APIs to use. An object containing fields of an arbitrary type. An additional field |
Any
| JSON representation |
|---|
{ "typeUrl" : string , "value" : string } |
| Fields | |
|---|---|
typeUrl
|
Identifies the type of the serialized Protobuf message with a URI reference consisting of a prefix ending in a slash and the fully-qualified type name. Example: type.googleapis.com/google.protobuf.StringValue This string must contain at least one The prefix is arbitrary and Protobuf implementations are expected to simply strip off everything up to and including the last All type URL strings must be legal URI references with the additional restriction (for the text format) that the content of the reference must consist only of alphanumeric characters, percent-encoded escapes, and characters in the following set (not including the outer backticks): In the original design of |
value
|
Holds a Protobuf serialization of the type described by type_url. A base64-encoded string. |
Struct
| JSON representation |
|---|
{ "fields" : { string : value , ... } } |
| Fields | |
|---|---|
fields
|
Unordered map of dynamically typed values. An object containing a list of |
FieldsEntry
| JSON representation |
|---|
{ "key" : string , "value" : value } |
| Fields | |
|---|---|
key
|
|
value
|
|
Value
| JSON representation |
|---|
{ // Union field |
kind
. The kind of value. kind
can be only one of the following:nullValue
null
Represents a JSON null
.
numberValue
number
Represents a JSON number. Must not be NaN
, Infinity
or -Infinity
, since those are not supported in JSON. This also cannot represent large Int64 values, since JSON format generally does not support them in its number type.
stringValue
string
Represents a JSON string.
boolValue
boolean
Represents a JSON boolean ( true
or false
literal in JSON).
structValue
object (
Struct
format)
Represents a JSON object.
listValue
array (
ListValue
format)
Represents a JSON array.
ListValue
| JSON representation |
|---|
{ "values" : [ value ] } |
| Fields | |
|---|---|
values[]
|
Repeated field of dynamically typed values. |
EmailPreferences
| JSON representation |
|---|
{ "enableFailureEmail" : boolean } |
| Fields | |
|---|---|
enableFailureEmail
|
If true, email notifications will be sent on transfer run failures. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌

