Skip to main content
Glama
rossumai

Rossum MCP Server

Official
by rossumai

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
NameRequiredDescriptionDefault
hook_idYes

Implementation Reference

  • 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)
  • 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()

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/rossumai/rossum-mcp-server'

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