get_all_apps
Retrieve detailed attributes for all applications on the Tembo Cloud platform, enabling streamlined management and oversight of resources via the Tembo MCP Server.
Instructions
Get attributes for all apps
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools.ts:264-274 (handler)The handler function for the 'get_all_apps' tool. It calls temboClient.getAllApps() and returns the response as a JSON string in the tool result format.get_all_apps: async () => { const response = await temboClient.getAllApps(); return { content: [ { type: "text", text: JSON.stringify(response.data ?? response.error, null, 2), }, ], }; },
- src/tools.ts:14-21 (schema)The schema definition for the 'get_all_apps' tool, including name, description, and empty input schema (no parameters required).{ name: "get_all_apps" as const, description: "Get attributes for all apps", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:32-34 (registration)Registration of the ListTools handler, which returns the TOOLS array including the schema for 'get_all_apps'.server.setRequestHandler(ListToolsRequestSchema, () => { return { tools: TOOLS }; });
- src/index.ts:36-59 (registration)Registration of the CallTool handler, which dispatches to TOOL_HANDLERS[toolName] if allowed, thus invoking the 'get_all_apps' handler when requested.server.setRequestHandler( CallToolRequestSchema, async (request): Promise<z.infer<typeof CallToolResultSchema>> => { const toolName = request.params.name; try { if (isAllowedTool(toolName)) { return await TOOL_HANDLERS[toolName](request); } throw new Error(`Unknown tool: ${toolName}`); } catch (error) { return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }, );