Skip to main content
Glama

Jina AI Remote MCP Server

by wlmwwx

sort_by_relevance

Sort and rank a list of documents based on their relevance to a specific query. Use this tool to filter and prioritize information for document retrieval or content organization.

Instructions

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.

Input Schema

NameRequiredDescriptionDefault
documentsYesArray of document texts to rerank by relevance
queryYesThe query or topic to rank documents against (e.g., 'machine learning algorithms', 'climate change solutions')
top_nNoMaximum number of top results to return

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "documents": { "description": "Array of document texts to rerank by relevance", "items": { "type": "string" }, "type": "array" }, "query": { "description": "The query or topic to rank documents against (e.g., 'machine learning algorithms', 'climate change solutions')", "type": "string" }, "top_n": { "description": "Maximum number of top results to return", "type": "number" } }, "required": [ "query", "documents" ], "type": "object" }

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/wlmwwx/jina-mcp'

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