get_esg_scores
Retrieve ESG (Environmental, Social, Governance) scores for companies in the Spanish stock exchange to assess sustainability performance and investment risks.
Instructions
Get ESG (Environmental, Social, Governance) scores
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Optional: Company ID to filter by |
Implementation Reference
- src/index.ts:301-313 (schema)Tool schema definition including name, description, and input schema for get_esg_scores.{ name: 'get_esg_scores', description: 'Get ESG (Environmental, Social, Governance) scores', inputSchema: { type: 'object', properties: { companyId: { type: 'string', description: 'Optional: Company ID to filter by', }, }, }, },
- src/index.ts:641-643 (handler)Dispatch handler in the CallToolRequestSchema that invokes the get_esg_scores tool by calling the database method.case 'get_esg_scores': result = await this.db.getESGScores((args as any)?.companyId); break;
- src/database.ts:340-342 (handler)The core implementation of the getESGScores method, which is the actual tool logic (currently a stub returning empty array).async getESGScores(companyId?: string): Promise<any[]> { return []; // ESG data not available in current worker API }