Skip to main content
Glama

get_directors_by_name

Find directors by name across all companies in the Spanish stock exchange to analyze corporate relationships and governance structures.

Instructions

Search for directors by name across all companies

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDirector name or partial match

Implementation Reference

  • Core handler function that executes the tool logic: fetches director network data from API and filters directors by partial name match.
    async getDirectorsByName(name: string): Promise<any[]> { const data = await this.fetchAPI('/api/network'); const directors = data.directors || []; return directors.filter(director => director.name && director.name.toLowerCase().includes(name.toLowerCase()) ); }
  • Input schema defining the expected parameters for the tool: an object with required 'name' string field.
    inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Director name or partial match', }, }, required: ['name'], },
  • src/index.ts:128-141 (registration)
    Tool registration in the listTools response, including name, description, and schema.
    { name: 'get_directors_by_name', description: 'Search for directors by name across all companies', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Director name or partial match', }, }, required: ['name'], }, },
  • src/index.ts:601-603 (registration)
    Dispatch/registration in the callTool handler switch statement that routes to the database method.
    case 'get_directors_by_name': result = await this.db.getDirectorsByName((args as any)?.name); 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