server_delete
Remove a Minecraft server from Crafty Controller by specifying its server ID or UUID to manage your server instances.
Instructions
Delete a Minecraft server from Crafty Controller
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": {
"server_id": "<server_id>"
},
"name": "server_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | Server ID or UUID |
Implementation Reference
- src/tools/servers.ts:112-127 (handler)The 'server_delete' tool handler, which calls the DELETE /servers/:server_id endpoint on the Crafty Controller API.
server.tool( "server_delete", "Delete a Minecraft server from Crafty Controller", { server_id: z.string().describe("Server ID or UUID"), }, async ({ server_id }) => { try { const data = await client.delete(`/servers/${server_id}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true }; } } );