restore_instance
Restore a Tembo instance by specifying the organization ID, instance name, and recovery target time using the Tembo MCP Server to recover resources efficiently.
Instructions
Restore a Tembo instance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_name | Yes | ||
| org_id | Yes | Organization ID that owns the Tembo instance | |
| restore | Yes |
Input Schema (JSON Schema)
{
"properties": {
"instance_name": {
"type": "string"
},
"org_id": {
"description": "Organization ID that owns the Tembo instance",
"type": "string"
},
"restore": {
"properties": {
"instance_id": {
"type": "string"
},
"recovery_target_time": {
"format": "date-time",
"type": "string"
}
},
"required": [
"instance_id"
],
"type": "object"
}
},
"required": [
"org_id",
"instance_name",
"restore"
],
"type": "object"
}
Implementation Reference
- src/tools.ts:405-421 (handler)The handler function for the 'restore_instance' tool. It extracts org_id and other properties from the request arguments, calls temboClient.restoreInstance with org_id in the path and props in the body, and returns the response as a text content block.restore_instance: async (request) => { const { org_id, ...props } = request.params.arguments as RestoreInstance & { org_id: string; }; const response = await temboClient.restoreInstance({ body: { ...props }, path: { org_id }, }); return { content: [ { type: "text", text: JSON.stringify(response.data ?? response.error, null, 2), }, ], }; },
- src/tools.ts:231-253 (registration)Registration of the 'restore_instance' tool in the TOOLS array, including name, description, and detailed inputSchema defining parameters like org_id, instance_name, and restore object with instance_id.{ name: "restore_instance" as const, description: "Restore a Tembo instance", inputSchema: { type: "object", properties: { org_id: { type: "string", description: "Organization ID that owns the Tembo instance", }, instance_name: { type: "string" }, restore: { type: "object", properties: { instance_id: { type: "string" }, recovery_target_time: { type: "string", format: "date-time" }, }, required: ["instance_id"], }, }, required: ["org_id", "instance_name", "restore"], }, },
- src/tools.ts:10-10 (schema)Import of RestoreInstance type used for argument validation in the handler.RestoreInstance,