Skip to main content
Glama
openSVM
by openSVM

search_pairs

Locate DEX pairs across blockchains by entering a search query to retrieve real-time data on token profiles and market statistics provided by DexScreener API.

Instructions

Search for pairs matching query

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query

Implementation Reference

  • The searchPairs method in DexScreenerService class implements the core logic for searching DEX pairs via the DexScreener API, using a rate-limited fetch to the search endpoint with the provided query.
    async searchPairs({ query }: SearchParams): Promise<DexResponse> { return this.fetch<DexResponse>( '/latest/dex/search', dexRateLimiter, { q: query } ); }
  • Input schema definition for the search_pairs tool declared in the MCP server capabilities.
    search_pairs: { description: 'Search for pairs matching query', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'Search query', }, }, required: ['query'], }, },
  • src/index.ts:283-295 (registration)
    Tool registration in the listTools request handler, defining name, description, and input schema.
    name: 'search_pairs', description: 'Search for pairs matching query', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'Search query', }, }, required: ['query'], }, },
  • src/index.ts:337-341 (registration)
    Dispatch/registration in the callTool request handler switch statement, routing search_pairs calls to dexService.searchPairs.
    case 'search_pairs': { const args = request.params.arguments as { query: string }; result = await this.dexService.searchPairs(args); break; }

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/openSVM/dexscreener-mcp-server'

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