delete_runbook
Remove a runbook by specifying its name to manage and organize your runbook operations effectively on the MCP Runbook server.
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": {
"name": "<name>"
},
"name": "delete_runbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- runbook_server.py:62-72 (handler)The main handler function for the 'delete_runbook' tool. It is registered via the @mcp.tool() decorator. Deletes the runbook file by name using the search engine and removes it from the filesystem.
@mcp.tool() async def delete_runbook(name: str) -> str: r = store.get_runbook_by_name(name) file_path = os.path.join(conf.runbooks_dir, r) if os.path.exists(file_path): os.remove(file_path) search_engine.create_index() return "Deleted the runbook"