xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
Tool Skill
Jina AI logo

Sort By Relevance

sort_by_relevance

Rerank a list of documents by relevance to a query using Jina Reranker API. Use this when you have multiple documents and want to sort them by how well they match a specific query or topic. Perfect for document retrieval, content filtering, or finding the most relevant information from a collection.

$0.01/call
Flat rate
Jina AI
Raw SKILL.mdTool Page

When to Use

Use this tool when you need to rerank a list of documents by relevance to a query using jina reranker api. use this when you have multiple documents and want to sort them by how well they match a specific query or topic. perfect for document retrieval, content filtering, or finding the most relevant information from a collection.. This is part of the Jina AI provider on xpay✦.

MCP Connection

Connect to xpay✦ to access this tool (and 19+ others):

{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}

For Claude Code:

claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"

How to Execute

Use the xpay✦ meta-tools to run this tool:

  1. xpay_details — Get full input schema: xpay_details("jina/sort_by_relevance")
  2. xpay_run — Execute: xpay_run("jina/sort_by_relevance", { ...inputs })

Input Parameters

ParameterTypeRequiredDescription
documentsarrayYesArray of document texts to rerank by relevance
top_nnumberNoMaximum number of top results to return
querystringYesThe query or topic to rank documents against (e.g., 'machine learning algorithms', 'climate change solutions')

Pricing

  • Cost: $0.01/call
  • Balance check: Use xpay_balance to check remaining credits
  • Get your API key at xpay.tools — $5 free credits included

Related Skills

  • Jina AI (all tools) — 20 tools
  • Show Api Key — $0.01/call
  • Primer — $0.01/call
  • Guess Datetime Url — $0.01/call
  • Capture Screenshot Url — $0.01/call
  • Read Url — $0.01/call

Links

  • Tool page: https://xpay.tools/jina/sort-by-relevance/
  • Provider: https://xpay.tools/jina/
  • All tools: https://xpay.tools/explore
How to Execute
// 1. Get full schema
xpay_details("jina/sort_by_relevance")
// 2. Execute
xpay_run("jina/sort_by_relevance", { ...inputs })
Input Parameters
ParameterTypeRequiredDescription

documents

array
Yes

Array of document texts to rerank by relevance

top_n

numberNo

Maximum number of top results to return

query

string
Yes

The query or topic to rank documents against (e.g., 'machine learning algorithms', 'climate change solutions')

Related Tools from Jina AI
Show Api Key — $0.01Primer — $0.01Guess Datetime Url — $0.01Capture Screenshot Url — $0.01Read Url — $0.01Search Web — $0.01Expand Query — $0.01Search Arxiv — $0.01
Install Skill
Claude Code
claude /install-skill https://xpay.tools/skills/jina/sort-by-relevance/SKILL.md
CLI
npx @xpaysh/cli install jina/sort-by-relevance
Manual
curl -o SKILL.md https://xpay.tools/skills/jina/sort-by-relevance/SKILL.md
Pricing

Cost

$0.01/call

Model

Flat rate

Provider

Jina AI

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service