List Funnels
rybbit_list_funnelsRetrieve all saved conversion funnels and their step definitions for a specific website using Rybbit Analytics data.
Instructions
List all saved funnels for a site with their step definitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID (numeric ID or domain identifier) |
Implementation Reference
- src/tools/funnels.ts:50-67 (handler)The async handler function for the 'rybbit_list_funnels' tool, which performs a GET request to fetch funnel definitions for a specific site.
async (args) => { try { const { siteId } = args as { siteId: string }; const data = await client.get<FunnelDefinition[]>( `/sites/${siteId}/funnels` ); return { content: [{ type: "text" as const, text: truncateResponse(data) }], }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text" as const, text: `Error: ${message}` }], isError: true, }; } } - src/tools/funnels.ts:34-49 (registration)The registration of the 'rybbit_list_funnels' tool, including its metadata, description, and input schema.
server.registerTool( "rybbit_list_funnels", { title: "List Funnels", description: "List all saved funnels for a site with their step definitions.", annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true, destructiveHint: false, }, inputSchema: { siteId: siteIdSchema, }, },