get_daily_briefing
Retrieve daily banking regulatory intelligence briefings with summaries and key developments from federal agencies and state banking departments.
Instructions
Get the latest daily banking regulatory intelligence briefing with summaries and key developments from OCC, FDIC, CFPB, Federal Reserve, and all 50 state banking departments.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Optional: Specific date (YYYY-MM-DD). Defaults to today. |
Implementation Reference
- src/index.ts:129-164 (handler)The getDailyBriefing function implements the core tool logic. It constructs the API URL with an optional date parameter, fetches data from the BankRegPulse API, handles error responses, and formats the briefing data into a structured text response with subject, date, document count, priority count, and AI summary.
async function getDailyBriefing(date?: string) { const url = date ? `${API_BASE_URL}/api/mcp/briefing?date=${date}` : `${API_BASE_URL}/api/mcp/briefing`; const response = await fetch(url); if (!response.ok) { throw new Error(`API request failed: ${response.statusText}`); } const data = await response.json() as any; if (!data.success || !data.data) { return { content: [ { type: 'text', text: 'No briefing found for the requested date.', }, ], }; } const briefing = data.data; const dateStr = new Date(briefing.sentAt).toLocaleDateString(); return { content: [ { type: 'text', text: `# ${briefing.subject}\n\n**Date:** ${dateStr}\n**Documents:** ${briefing.totalDocuments}\n**High Priority:** ${briefing.highPriorityCount}\n\n${briefing.aiSummary}\n\n---\n*Powered by BankRegPulse*`, }, ], }; } - src/index.ts:48-61 (schema)Tool schema definition for get_daily_briefing in the TOOLS array, including name, description, and inputSchema with an optional date property (YYYY-MM-DD format) that defaults to today.
const TOOLS: Tool[] = [ { name: 'get_daily_briefing', description: 'Get the latest daily banking regulatory intelligence briefing with summaries and key developments from OCC, FDIC, CFPB, Federal Reserve, and all 50 state banking departments.', inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'Optional: Specific date (YYYY-MM-DD). Defaults to today.', }, }, }, }, - src/index.ts:102-103 (registration)The switch case in the CallToolRequestSchema handler that routes get_daily_briefing tool invocations to the getDailyBriefing function, passing through the date argument.
case 'get_daily_briefing': return await getDailyBriefing(toolArgs.date as string | undefined);