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

get_all_instances

Retrieve all Tembo instances within an organization by providing the org_id, enabling efficient management of cloud resources through the Tembo MCP Server.

Instructions

Get all Tembo instances in an organization

Input Schema

NameRequiredDescriptionDefault
org_idYesOrganization id for the request

Input Schema (JSON Schema)

{ "properties": { "org_id": { "description": "Organization id for the request", "type": "string" } }, "required": [ "org_id" ], "type": "object" }

Implementation Reference

  • Handler function that implements the 'get_all_instances' tool logic by fetching all instances for the given organization ID using temboClient.getAll and returning the result as text content.
    get_all_instances: async (request) => { const { org_id } = request.params.arguments as { org_id: string }; const response = await temboClient.getAll({ path: { org_id } }); return { content: [ { type: "text", text: JSON.stringify(response.data ?? response.error, null, 2), }, ], }; },
  • Input schema definition for the 'get_all_instances' tool, part of the TOOLS array, specifying the required 'org_id' parameter.
    { name: "get_all_instances" as const, description: "Get all Tembo instances in an organization", inputSchema: { type: "object", properties: { org_id: { type: "string", description: "Organization id for the request", }, }, required: ["org_id"], }, },
  • src/index.ts:32-34 (registration)
    Registration of tool list handler, which returns the TOOLS array containing the schema for 'get_all_instances'.
    server.setRequestHandler(ListToolsRequestSchema, () => { return { tools: TOOLS }; });
  • src/index.ts:36-59 (registration)
    Registration of the generic tool call handler that dispatches to TOOL_HANDLERS[toolName], enabling execution of 'get_all_instances'.
    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