Skip to main content
Glama
tembo-io
by tembo-io

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
NameRequiredDescriptionDefault
typeYesThe app type to get details for

Implementation Reference

  • 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), }, ], }; },
  • 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, }; } }, );

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tembo-io/mcp-server-tembo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server