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。

工具注释

破坏性提示:❌ | 等幂性提示:✅ | 只读提示:✅ | 开放世界提示:❌