createAllTools function

List<BaseTool> createAllTools(
  1. FinancialDataService dataService
)

Creates all available tools with the provided FinancialDataService.

Use this to register all tools with an MCP server:

final tools = createAllTools(dataService);
for (final tool in tools) {
  server.registerBaseTool(tool);
}

Implementation

List<BaseTool> createAllTools(FinancialDataService dataService) => [
      GetCompanyInfoTool(dataService),
      GetFinancialStatementsTool(dataService),
      GetSecFilingsTool(dataService),
    ];