Skip to main content
Glama

create_runbook

Create and manage runbooks to automate workflows, enabling execution across MCP servers directly from Claude Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
nameYes

Implementation Reference

  • The handler function for the 'create_runbook' tool. It creates a Markdown file with the given name and content in the runbooks directory, reindexes the search engine, and returns a success message.
    @mcp.tool() async def create_runbook(name: str, content: str) -> str: """Create a runbook file and save the content.""" file_path = f"{name}.md" with open(os.path.join(conf.runbooks_dir, file_path), "w") as f: f.write(content) search_engine.create_index() return "Created a new runbook"
  • Registers the create_runbook function as an MCP tool using the FastMCP decorator.
    @mcp.tool()

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runbookai/runbook-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server