Skip to main content
Glama

cancel_hex_run

Terminates an active Hex project run by specifying the project and run UUIDs via the Hex API MCP Server, ensuring efficient project management.

Instructions

Cancel a running project.

Args: project_id: The UUID of the Hex project run_id: The UUID of the run to cancel Returns: Success message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
run_idYes

Implementation Reference

  • The handler function for the 'cancel_hex_run' tool. It is decorated with @mcp.tool() which also serves as its registration. The function cancels a specific run in a Hex project by sending a DELETE request to the Hex API endpoint and returns a success message.
    @mcp.tool() async def cancel_hex_run(project_id: str, run_id: str) -> str: """Cancel a running project. Args: project_id: The UUID of the Hex project run_id: The UUID of the run to cancel Returns: Success message """ await hex_request("DELETE", f"/projects/{project_id}/runs/{run_id}") return "Run cancelled successfully"

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/franccesco/hex-mcp'

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