list_projects
Retrieve all Aiven cloud projects to manage PostgreSQL, Kafka, ClickHouse, Valkey, and OpenSearch services for building full-stack solutions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_projects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_aiven/mcp_server.py:29-34 (handler)The handler function for the 'list_projects' tool. It uses the Aiven client to fetch all projects and returns a list of their names. The @mcp.tool() decorator registers it with the MCP server.
@mcp.tool() def list_projects(): logger.info("Listing all projects") results = aiven_client.get_projects() logger.info(f"Found {len(results)} projects") return [result['project_name'] for result in results]