Skip to main content
Glama

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
NameRequiredDescriptionDefault
companyIdYesCompany ID or use get_company_by_symbol first to get ID

Implementation Reference

  • 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); }
  • 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'], }, },
  • 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;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anbrme/ibex35-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server