Skip to main content
Glama

get_available_sources

Retrieve available deal sources and providers to enable comparison shopping across multiple platforms.

Instructions

Get list of available deal sources/providers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_available_sources' MCP tool. It fetches available providers from the aggregator and returns a standardized JSON response.
    private async handleGetAvailableSources() {
      const sources = this.aggregator.getProviders();
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify({
              success: true,
              sources: sources
            }, null, 2),
          },
        ],
      };
    }
  • src/server.ts:275-282 (registration)
    Tool registration in the listTools response, defining name, description, and input schema (empty object since no parameters required).
    {
      name: 'get_available_sources',
      description: 'Get list of available deal sources/providers',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema definition for the tool (empty properties as it takes no arguments).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • Supporting helper method that returns the names of all registered deal providers, called by the tool handler.
    getProviders(): string[] {
      return Array.from(this.providers.keys());
    }

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/karthiksivaramms/bargainer-mcp-client'

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