get_app
Retrieve detailed attributes of a specific app type by specifying its category, enabling streamlined management of Tembo Cloud resources through the MCP server.
Instructions
Get the attributes of a single App
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The app type to get details for |
Implementation Reference
- src/tools.ts:276-287 (handler)The asynchronous handler function for the 'get_app' tool. It extracts the 'type' parameter from the request, calls temboClient.getApp with it, and returns the response data or error as JSON-formatted text content.get_app: async (request) => { const { type } = request.params.arguments as { type: string }; const response = await temboClient.getApp({ path: { type } }); return { content: [ { type: "text", text: JSON.stringify(response.data ?? response.error, null, 2), }, ], }; },
- src/tools.ts:22-35 (schema)The tool registration object defining the name, description, and input schema for 'get_app', which requires a 'type' string parameter.{ name: "get_app" as const, description: "Get the attributes of a single App", inputSchema: { type: "object", properties: { type: { type: "string", description: "The app type to get details for", }, }, required: ["type"], }, },
- src/index.ts:32-34 (registration)Registers the list tools handler, which returns the TOOLS array including the 'get_app' tool definition.server.setRequestHandler(ListToolsRequestSchema, () => { return { tools: TOOLS }; });
- src/index.ts:36-59 (registration)Registers the call tool handler, which dispatches to the specific TOOL_HANDLERS[toolName] including 'get_app' if allowed.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, }; } }, );