Tool: list_products
Provides a list of all possible database products which can be used to filter database resources.
The following sample demonstrate how to use curl to invoke the list_products MCP tool.
| Curl Request |
|---|
curl --location 'https://databasecenter.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_products", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
QueryProductsRequest is the request to get a list of products.
QueryProductsRequest
| JSON representation |
|---|
{ "parent": string, "pageSize": integer, "pageToken": string } |
| Fields | |
|---|---|
parent |
Required. Parent can be a project, a folder, or an organization. The allowed values are:
|
pageSize |
Optional. If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
Optional. A page token, received from a previous |
Output Schema
QueryProductsResponse represents the response containing a list of products.
QueryProductsResponse
| JSON representation |
|---|
{
"products": [
{
object ( |
| Fields | |
|---|---|
products[] |
List of database products returned. |
nextPageToken |
A token that can be sent as |
unreachable[] |
Unordered list. List of unreachable regions from where data could not be retrieved. |
Product
| JSON representation |
|---|
{ "type": enum ( |
| Fields | |
|---|---|
type |
Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc.. |
engine |
Optional. The specific engine that the underlying database is running. |
version |
Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc. |
minorVersion |
Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌