Skip to main content
Glama
franccesco

Hex API MCP Server

by franccesco

cancel_hex_run

Stop an active Hex project execution by providing the project and run identifiers to halt ongoing processes.

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' MCP tool. It is registered via the @mcp.tool() decorator and implements the cancellation logic by calling the Hex API DELETE endpoint.
    @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"
  • Registration of the 'cancel_hex_run' tool using FastMCP's @mcp.tool() decorator.
    @mcp.tool()

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