Skip to main content
Glama

get_available_sources

Retrieve a list of available deal sources or providers to access aggregated data for comparison and filtering through the Bargainer MCP Server.

Instructions

Get list of available deal sources/providers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_available_sources' tool. It calls the aggregator's getProviders() method to retrieve the list of available sources and returns a formatted MCP 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:276-282 (registration)
    Registration of the 'get_available_sources' tool in the getAvailableTools() method, which is used by the MCP listTools request handler. Includes name, description, and input schema.
    name: 'get_available_sources', description: 'Get list of available deal sources/providers', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema definition for the 'get_available_sources' tool (empty object as it takes no parameters).
    inputSchema: { type: 'object', properties: {}, },
  • Supporting helper method in DealAggregator class that returns the array of registered provider names, invoked by the tool handler.
    getProviders(): string[] { return Array.from(this.providers.keys()); }

Other Tools

Related Tools

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