工具: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 |
字符串值。 |
工具注释
破坏性提示:❌ | 等幂性提示:✅ | 只读提示:✅ | 开放世界提示:❌