rossum_get_hook
Retrieve a serverless function hook by its ID to access its source code and configuration details for analysis and integration purposes.
Instructions
Get a specific serverless function hook by its ID, including its source code.
Args: hook_id: The ID of the hook to retrieve
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hook_id | Yes |
Implementation Reference
- mcp_server.py:146-153 (handler)The main handler function for the 'rossum_get_hook' tool. It takes a hook_id parameter and delegates to the _get_hook_impl helper. The @mcp.tool() decorator registers it as an MCP tool. The docstring and type hints define the input schema.@mcp.tool() async def rossum_get_hook(hook_id: str) -> Dict[str, Any]: """Get a specific serverless function hook by its ID, including its source code. Args: hook_id: The ID of the hook to retrieve """ return await _get_hook_impl(hook_id=hook_id)
- mcp_server.py:112-114 (helper)Helper function that performs the actual API request to retrieve the specific hook by ID using the shared _rossum_request utility.async def _get_hook_impl(hook_id: str): """Get a specific hook by ID including source code""" return await _rossum_request("GET", f"/hooks/{hook_id}")
- mcp_server.py:146-146 (registration)The @mcp.tool() decorator registers the rossum_get_hook function as an MCP tool.@mcp.tool()