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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:400-414 (handler)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: {}, }, },
- src/server.ts:278-281 (schema)Input schema definition for the tool (empty properties as it takes no arguments).inputSchema: { type: 'object', properties: {}, },
- src/services/aggregator.ts:15-17 (helper)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()); }