Skip to main content
Glama

get_directors_by_name

Search for directors by name across all companies in the Spanish stock exchange to analyze corporate relationships.

Instructions

Search for directors by name across all companies

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDirector name or partial match

Implementation Reference

  • The core handler function that executes the tool logic by fetching network data from the API and filtering directors by the provided name.
    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()) ); }
  • Defines the tool's input schema, including the required 'name' parameter for searching directors.
    { 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)
    Registers the tool handler in the CallToolRequestSchema switch statement, delegating 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