Skip to main content
Glama

list_hooks

View all registered secret change hooks, including their match criteria, type, and current status.

Instructions

List all registered secret change hooks with their match criteria, type, and status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for "list_hooks" in server.ts. It calls the listAllHooks function (imported from core/hooks.ts) and returns the result as text.
      "list_hooks",
      "List all registered secret change hooks with their match criteria, type, and status.",
      {},
      async () => {
        const hooks = listAllHooks();
        if (hooks.length === 0) return text("No hooks registered");
        return text(JSON.stringify(hooks, null, 2));
      },
    );
  • The core function "listHooks" that retrieves the hook registry from the filesystem. This is the underlying implementation used by the MCP tool.
    export function listHooks(): HookEntry[] {
      return loadRegistry().hooks;
    }

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/I4cTime/quantum_ring'

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