get_all_companies
Retrieve all IBEX 35 companies with current stock prices and key financial metrics for Spanish stock market analysis.
Instructions
Get all IBEX 35 companies with current prices and key metrics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/database.ts:52-55 (handler)Core handler function that fetches all IBEX 35 companies data from the API endpoint '/api/companies' and returns the data array.async getAllCompanies(): Promise<any[]> { const data = await this.fetchAPI('/api/companies'); return data.data || []; }
- src/index.ts:577-579 (registration)Tool handler registration in the CallToolRequestSchema switch statement, delegating execution to DatabaseManager.getAllCompanies().case 'get_all_companies': result = await this.db.getAllCompanies(); break;
- src/index.ts:52-58 (schema)Tool schema definition registered in ListToolsRequestSchema, specifying name, description, and empty input schema (no parameters required).name: 'get_all_companies', description: 'Get all IBEX 35 companies with current prices and key metrics', inputSchema: { type: 'object', properties: {}, }, },