list_signals
Retrieve and display all configured saved searches (signals) from the SEQ structured logging server for efficient log analysis and pattern identification.
Instructions
List all configured signals (saved searches) in SEQ
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:272-293 (handler)The handler function for the 'list_signals' tool. It retrieves signals using SeqClient, formats them, and returns a structured JSON response via MCP content.private async listSignals() { const signals = await this.seqClient.getSignals(); const formattedSignals = signals.map(signal => ({ id: signal.Id, title: signal.Title, description: signal.Description, filterCount: signal.Filters.length })); return { content: [ { type: 'text', text: JSON.stringify({ signals: formattedSignals, count: formattedSignals.length }, null, 2) } ] }; }
- src/index.ts:93-101 (registration)Registers the 'list_signals' tool in the MCP server's listTools response, including name, description, and empty input schema.{ name: 'list_signals', description: 'List all configured signals (saved searches) in SEQ', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/seq-client.ts:55-58 (helper)Helper method in SeqClient that fetches the list of signals from the SEQ server API endpoint '/api/signals'.async getSignals(): Promise<SeqSignal[]> { const response = await this.client.get<SeqSignal[]>('/api/signals'); return response.data; }
- src/types.ts:19-28 (schema)TypeScript interface defining the structure of a SEQ signal, used in getSignals() response typing.export interface SeqSignal { Id: string; Title: string; Description?: string; Filters: Array<{ Filter?: string; FilterNonStrict?: string; Description?: string; }>; }