list_services
Retrieve a list of cloud services within a specified Aiven project to manage PostgreSQL, Kafka, ClickHouse, Valkey, and OpenSearch deployments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_name": "<project_name>"
},
"name": "list_services"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes |
Implementation Reference
- mcp_aiven/mcp_server.py:37-42 (handler)The core handler function for the 'list_services' tool. It is decorated with @mcp.tool(), which also serves as the registration mechanism in FastMCP. The function retrieves and returns the list of service names in the specified Aiven project using the Aiven client.
@mcp.tool() def list_services(project_name): logger.info("Listing all services in a project: %s", project_name) results = aiven_client.get_services(project=project_name) logger.info(f"Found {len(results)} services") return [s["service_name"] for s in results]