Skip to main content
Glama
Kaiohz

Prospectio MCP API

strategy.py1.19 kB
from abc import ABC, abstractmethod from domain.ports.fetch_leads import FetchLeadsPort from domain.entities.leads import Leads class LeadsStrategy(ABC): """ Abstract base class for company jobs lead retrieval strategies. This strategy defines the contract for fetching leads with contacts from a data provider. It should be extended by concrete implementations for each provider. """ def __init__(self, location: str, job_title: list[str], port: FetchLeadsPort): """ Initialize the strategy with location, job titles, and the provider port. Args: location (str): The location to search for leads. job_title (list[str]): List of job titles to filter leads. port (CompanyJobsPort): The port interface to the external company jobs provider. """ self.location = location self.port = port self.job_title = job_title @abstractmethod async def execute(self) -> Leads: """ Execute the strategy to fetch leads from the provider. Returns: dict: The leads data retrieved from the external provider API. """ pass

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/Kaiohz/prospectio-api-mcp'

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