工具:list_dataset_ids
列出 Google Cloud 專案中的 BigQuery 資料集 ID。
下列範例示範如何使用 curl 叫用 list_dataset_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_dataset_ids", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
輸入結構定義
要求列出專案中的資料集。
| JSON 表示法 |
|---|
{ "projectId": string } |
| 欄位 | |
|---|---|
projectId |
這是必要旗標,資料集要求的專案 ID。 |
輸出內容的結構定義
資料集清單的回應。
| JSON 表示法 |
|---|
{
"datasets": [
{
object ( |
| 欄位 | |
|---|---|
datasets[] |
符合要求的資料集。 |
| JSON 表示法 |
|---|
{ "id": string, "friendlyName": string, "location": string } |
| 欄位 | |
|---|---|
id |
資料集 ID。 |
friendlyName |
資料集的替代名稱。暱稱純粹是裝飾性質,這項功能有助於取得資料集的額外資訊。 |
location |
資料集所在的地理位置。 |
| JSON 表示法 |
|---|
{ "value": string } |
| 欄位 | |
|---|---|
value |
字串值。 |
工具註解
破壞性提示:❌ | 等冪提示:✅ | 唯讀提示:✅ | 開放世界提示:❌