取得 MCP 工具規格
如要取得 MCP 伺服器中所有工具的 MCP 工具規格,請使用 tools/list 方法。以下範例說明如何使用 curl 列出 MCP 伺服器中目前可用的所有工具及其規格。
| Curl 要求 |
|---|
curl --location 'https://bigquery.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/list", "jsonrpc": "2.0", "id": 1 }' |
| MCP 工具 | |
|---|---|
| list_dataset_ids | 列出 Google Cloud 專案中的 BigQuery 資料集 ID。 |
| get_dataset_info | 取得 BigQuery 資料集的中繼資料資訊。 |
| list_table_ids | 列出 BigQuery 資料集中的資料表 ID。 |
| get_table_info | 取得 BigQuery 資料表的中繼資料資訊。 |
| execute_sql |
在專案中執行 SQL 查詢並傳回結果。 這項工具僅適用於 如果查詢會叫用遠端函式或 Python UDF, 使用 查詢費用會計入 |