Get the FREE Ultimate OpenClaw Setup Guide →

perplexity

npx machina-cli add skill softaworks/agent-toolkit/perplexity --openclaw
Files (1)
SKILL.md
3.8 KB

Perplexity Tools

Use ONLY when user says "search", "find", "look up", "ask", "research", or "what's the latest" for generic queries. NOT for library/framework docs (use Context7), gt CLI (use Graphite MCP), or workspace questions (use Nx MCP).

Quick Reference

Which Perplexity tool?

  • Need search results/URLs? → Perplexity Search
  • Need conversational answer? → Perplexity Ask
  • Need deep research? → Researcher agent (/research <topic>)

NOT Perplexity - use these instead:

  • Library/framework docs → Context7 MCP
  • Graphite gt CLI → Graphite MCP
  • THIS workspace → Nx MCP
  • Specific URL → URL Crawler

Perplexity Search

When to use:

  • Generic searches, finding resources
  • Current best practices, recent information
  • Tutorial/blog post discovery
  • User says "search for...", "find...", "look up..."

Default parameters (ALWAYS USE):

mcp__perplexity__perplexity_search({
  query: "your search query",
  max_results: 3,           // Default is 10 - too many!
  max_tokens_per_page: 512  // Reduce per-result content
})

When to increase limits: Only if:

  • User explicitly needs comprehensive results
  • Initial search found nothing useful
  • Complex topic needs multiple sources
// Increased limits (use sparingly)
mcp__perplexity__perplexity_search({
  query: "complex topic",
  max_results: 5,
  max_tokens_per_page: 1024
})

Perplexity Ask

When to use:

  • Need conversational explanation, not search results
  • Synthesize information from web
  • Explain concepts with current context

Usage:

mcp__perplexity__perplexity_ask({
  messages: [
    {
      role: "user",
      content: "Explain how postgres advisory locks work"
    }
  ]
})

NOT for:

  • Library documentation (use Context7)
  • Deep multi-source research (use researcher agent)

Prohibited Tool

NEVER use: mcp__perplexity__perplexity_research

Use instead: Researcher agent (/research <topic>)

  • Token cost: 30-50k tokens
  • Provides multi-source synthesis with citations
  • Use sparingly for complex questions only

Tool Selection Chain

Priority order:

  1. Context7 MCP - Library/framework docs
  2. Graphite MCP - Any gt CLI mention
  3. Nx MCP - THIS workspace questions
  4. Perplexity Search - Generic searches
  5. Perplexity Ask - Conversational answers
  6. Researcher agent - Deep multi-source research
  7. WebSearch - Last resort (after Perplexity exhausted)

Examples

✅ CORRECT - Use Perplexity Search:

  • "Find postgres migration best practices"
  • "Search for React testing tutorials"
  • "Look up latest trends in microservices"

✅ CORRECT - Use Perplexity Ask:

  • "Explain how postgres advisory locks work"
  • "What are the trade-offs of microservices?"

❌ WRONG - Use Context7 instead:

  • "Search for React hooks documentation" → Context7 MCP
  • "Find Next.js routing docs" → Context7 MCP
  • "Look up Temporal workflow API" → Context7 MCP

❌ WRONG - Use Graphite MCP instead:

  • "Search for gt stack commands" → Graphite MCP
  • "Find gt branch workflow" → Graphite MCP

❌ WRONG - Use Nx MCP instead:

  • "Search for build config" (in THIS workspace) → Nx MCP
  • "Find project dependencies" (in THIS workspace) → Nx MCP

Key Points

  • Default to limited results - avoid context bloat
  • Library docs = Context7 - ALWAYS try Context7 first
  • "gt" = Graphite MCP - ANY "gt" mention uses Graphite
  • Deep research = /research - NOT perplexity_research tool
  • Fallback chain - Search → Ask → WebSearch (last resort)

Source

git clone https://github.com/softaworks/agent-toolkit/blob/main/skills/perplexity/SKILL.mdView on GitHub

Overview

Perplexity enables web search and research using Perplexity AI for generic queries. It helps surface resources, tutorials, and current practices, while steering you away from library/framework docs or workspace questions (use Context7/Nx MCP instead).

How This Skill Works

Use Perplexity Search for results-based queries and Perplexity Ask for conversational explanations sourced from the web. For deeper, multi-source synthesis with citations, switch to the Researcher agent (not perplexity_research).

When to Use It

  • User asks for generic web search or resource discovery (e.g., find resources, tutorials, best practices).
  • Need current best practices or the latest information on a topic.
  • Looking for tutorial or blog post discoveries related to a topic.
  • User uses keywords like 'search', 'find', 'look up', 'research', or 'what's the latest' for generic queries.
  • Deep, multi-source synthesis with citations is needed; use the Researcher agent instead of Perplexity.

Quick Start

  1. Step 1: Determine if the query is a generic search or a need for a conversational explanation.
  2. Step 2: Run mcp__perplexity__perplexity_search({ query: "your search query", max_results: 3, max_tokens_per_page: 512 })
  3. Step 3: If a synthesized explanation is needed, run mcp__perplexity__perplexity_ask({ messages: [{ role: "user", content: "Your question here" }] }) and present the results.

Best Practices

  • Always start with Perplexity Search for quick results and keep defaults: max_results = 3, max_tokens_per_page = 512.
  • Increase limits only when the user needs comprehensive results or the topic is complex.
  • Use Perplexity Ask for conversational explanations after gathering sources or when a synthesis is requested.
  • Avoid Perplexity for library/framework docs or workspace questions; refer to Context7 MCP or Nx MCP as appropriate.
  • If multi-source synthesis with citations is required, use the Researcher agent instead of perplexity_research.

Example Use Cases

  • Find the latest best practices for API versioning.
  • Look up recent tutorials on React testing.
  • Search for beginner-friendly Docker blog posts.
  • Find current tutorials on microservices health checks.
  • Look up recommendations for HTTP caching strategies.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers