get-tasks
Retrieve active tasks for your Redis Cloud account via the Redis Cloud API MCP Server, enabling efficient management of Redis resources.
Instructions
Get the current tasks for the current Cloud Redis account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/tasks/index.ts:41-47 (handler)The handler function that implements the 'get-tasks' tool. It calls TasksService.getAllTasks() via executeApiCall and returns the formatted response using createToolResponse."get-tasks": async () => { const tasks = await executeApiCall( () => TasksService.getAllTasks(), "Get all tasks", ); return createToolResponse(tasks); },
- src/tools/tasks/index.ts:16-20 (schema)The Tool definition (schema) for 'get-tasks', specifying name, description, and empty input schema.const GET_TASKS_TOOL: Tool = { name: "get-tasks", description: "Get the current tasks for the current Cloud Redis account", inputSchema: emptySchema, };
- src/index.ts:49-56 (registration)Registration of TASKS_HANDLERS (including 'get-tasks' handler) into the global ALL_HANDLERS object, which is used by the MCP server to handle tool calls via server.setRequestHandler(CallToolRequestSchema).const ALL_HANDLERS = { ...ACCOUNT_HANDLERS, ...SUBSCRIPTIONS_ESSENTIALS_HANDLERS, ...SUBSCRIPTIONS_PRO_HANDLERS, ...TASKS_HANDLERS, ...DATABASES_PRO_HANDLERS, ...DATABASES_ESSENTIALS_HANDLERS, };
- src/index.ts:40-47 (registration)Registration of TASKS_TOOLS (including 'get-tasks' tool schema) into the global ALL_TOOLS array, which is returned by the MCP server in response to ListToolsRequestSchema.const ALL_TOOLS = [ ...ACCOUNT_TOOLS, ...SUBSCRIPTIONS_PRO_TOOLS, ...SUBSCRIPTIONS_ESSENTIALS_TOOLS, ...TASKS_TOOLS, ...DATABASES_PRO_TOOLS, ...DATABASES_ESSENTIALS_TOOLS, ];