get_esg_scores
Retrieve ESG scores for companies to assess environmental, social, and governance performance in the Spanish stock market.
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:641-643 (handler)The handler case in the CallToolRequestSchema handler that processes 'get_esg_scores' tool calls by extracting the optional companyId argument and delegating to DatabaseManager.getESGScores.
case 'get_esg_scores': result = await this.db.getESGScores((args as any)?.companyId); break; - src/index.ts:304-312 (schema)Input schema for the get_esg_scores tool, defining an optional companyId parameter.
inputSchema: { type: 'object', properties: { companyId: { type: 'string', description: 'Optional: Company ID to filter by', }, }, }, - src/index.ts:301-313 (registration)Registration of the 'get_esg_scores' tool in the ListToolsRequestSchema handler, including name, description, and input schema.
{ 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/database.ts:340-342 (helper)Implementation of getESGScores in DatabaseManager, which currently returns an empty array as ESG data is not available in the API.
async getESGScores(companyId?: string): Promise<any[]> { return []; // ESG data not available in current worker API }