MCP Tools Reference: bigquery.googleapis.com

工具:list_table_ids

列出 BigQuery 資料集中的資料表 ID。

下列範例示範如何使用 curl 叫用 list_table_ids MCP 工具。

Curl 要求
                  
curl --location 'https://bigquery.googleapis.com/mcp' \
--header 'content-type: application/json' \
--header 'accept: application/json, text/event-stream' \
--data '{
  "method": "tools/call",
  "params": {
    "name": "list_table_ids",
    "arguments": {
      // provide these details according to the tool's MCP specification
    }
  },
  "jsonrpc": "2.0",
  "id": 1
}'
                

輸入結構定義

要求資料集中的資料表清單。

JSON 表示法
{
  "projectId": string,
  "datasetId": string
}
欄位
projectId

string

這是必要旗標,資料表要求的專案 ID。

datasetId

string

這是必要旗標,資料表要求的資料集 ID。

輸出內容的結構定義

資料表清單的回應。

JSON 表示法
{
  "tables": [
    {
      object (ListFormatTable)
    }
  ]
}
欄位
tables[]

object (ListFormatTable)

符合要求的資料表。

JSON 表示法
{
  "id": string
}
欄位
id

string

資料表的 ID。

工具註解

破壞性提示:❌ | 等冪提示:✅ | 唯讀提示:✅ | 開放世界提示:❌