get_company_directors
Retrieve board directors for companies in the Spanish stock exchange using company ID to analyze corporate governance and relationships.
Instructions
Get board directors for a specific company
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company ID or use get_company_by_symbol first to get ID |
Implementation Reference
- src/database.ts:82-86 (handler)Core handler function that fetches director data from the network API endpoint and filters by company ID.async getCompanyDirectors(companyId: string): Promise<any[]> { const data = await this.fetchAPI('/api/network'); const directors = data.directors || []; return directors.filter(director => director.company_id === companyId); }
- src/index.ts:109-118 (schema)Input schema defining the required companyId parameter for the tool.inputSchema: { type: 'object', properties: { companyId: { type: 'string', description: 'Company ID or use get_company_by_symbol first to get ID', }, }, required: ['companyId'], },
- src/index.ts:106-119 (registration)Tool registration in the list of available tools, including name, description, and input schema.{ name: 'get_company_directors', description: 'Get board directors for a specific company', inputSchema: { type: 'object', properties: { companyId: { type: 'string', description: 'Company ID or use get_company_by_symbol first to get ID', }, }, required: ['companyId'], }, },
- src/index.ts:593-595 (handler)Dispatch handler in the main tool call router that invokes the database method for this tool.case 'get_company_directors': result = await this.db.getCompanyDirectors((args as any)?.companyId); break;