Skip to main content
Glama
RossH121

Perplexity MCP Server

clear_filters

Remove all domain filters to switch search contexts or start fresh. This action clears both allowed and blocked domains while preserving recency settings.

Instructions

Remove all domain filters (both allowed and blocked). Use when switching search contexts or starting fresh. Does not affect recency filter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler for 'clear_filters'. Calls FilterState.clearFilters() to reset filters and returns a formatted text response.
    async handleClearFilters() { const resultMessage = this.filterState.clearFilters(); return { content: [ { type: "text", text: resultMessage, }, ], }; }
  • Core implementation that resets domainFilters to empty lists and recencyFilter to null, returning a confirmation message.
    clearFilters(): string { this.domainFilters = { allowedDomains: [], blockedDomains: [], }; this.recencyFilter = null; return "All domain and recency filters have been cleared. Searches will use default Perplexity sources."; }
  • Input schema definition for the 'clear_filters' tool (no parameters required).
    { name: "clear_filters", description: "Remove all domain filters (both allowed and blocked). Use when switching search contexts or starting fresh. Does not affect recency filter.", inputSchema: { type: "object", properties: {}, }, },
  • Tool dispatch/registration in the MCP server's call_tool handler switch statement.
    case "clear_filters": return this.filterManagementHandler.handleClearFilters();

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/RossH121/perplexity-mcp'

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