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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"org_id": "<org_id>",
"instance_id": "<instance_id>"
},
"name": "get_instance"
}
}Input 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"], }, },