get_instance
Retrieve a specific Tembo Cloud instance by providing the organization ID and instance ID, enabling users to manage Tembo resources efficiently.
Instructions
Get an existing Tembo instance
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | ||
| org_id | Yes | Organization ID that owns the instance |
Implementation Reference
- src/tools.ts:349-365 (handler)The async handler function for the 'get_instance' tool. Extracts org_id and instance_id from the request arguments, calls temboClient.getInstance, and returns the JSON-stringified response.get_instance: async (request) => { const { org_id, instance_id } = request.params.arguments as { org_id: string; instance_id: string; }; const response = await temboClient.getInstance({ path: { org_id, instance_id }, }); return { content: [ { type: "text", text: JSON.stringify(response.data ?? response.error, null, 2), }, ], }; },
- src/tools.ts:148-162 (registration)The registration entry for the 'get_instance' tool in the TOOLS array, defining its name, description, and input schema.{ name: "get_instance" as const, description: "Get an existing Tembo instance", inputSchema: { type: "object", properties: { org_id: { type: "string", description: "Organization ID that owns the instance", }, instance_id: { type: "string" }, }, required: ["org_id", "instance_id"], }, },
- src/tools.ts:148-162 (schema)The input schema for the 'get_instance' tool, defined inline in its registration, specifying required org_id and instance_id.{ name: "get_instance" as const, description: "Get an existing Tembo instance", inputSchema: { type: "object", properties: { org_id: { type: "string", description: "Organization ID that owns the instance", }, instance_id: { type: "string" }, }, required: ["org_id", "instance_id"], }, },