Skip to main content
Glama

get_company_by_symbol

Retrieve detailed company information using stock symbols from the Spanish stock exchange. Input a symbol to access financial data and corporate details.

Instructions

Get detailed information for a specific company by its stock symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol (e.g., SAN, TEF, IBE)

Implementation Reference

  • The tool handler implementation that extracts the symbol argument and delegates to the database method getCompanyBySymbol.
    case 'get_company_by_symbol':
      result = await this.db.getCompanyBySymbol((args as any)?.symbol);
      break;
  • Input schema defining the expected parameter 'symbol' as a required string.
    inputSchema: {
      type: 'object',
      properties: {
        symbol: {
          type: 'string',
          description: 'Stock symbol (e.g., SAN, TEF, IBE)',
        },
      },
      required: ['symbol'],
    },
  • src/index.ts:59-72 (registration)
    Tool registration in the list of tools returned by ListToolsRequestSchema, including name, description, and input schema.
    {
      name: 'get_company_by_symbol',
      description: 'Get detailed information for a specific company by its stock symbol',
      inputSchema: {
        type: 'object',
        properties: {
          symbol: {
            type: 'string',
            description: 'Stock symbol (e.g., SAN, TEF, IBE)',
          },
        },
        required: ['symbol'],
      },
    },
  • Database helper method that implements the core logic by fetching all companies and finding the one matching the symbol.
    async getCompanyBySymbol(symbol: string): Promise<any> {
      const companies = await this.getAllCompanies();
      return companies.find(company => company.symbol === symbol) || null;
    }

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