Skip to main content
Glama

RelaySwitch

Rank documents by relevance

rerank
Read-onlyIdempotent

Orders up to 100 documents by relevance to a query through POST /v1/rerank with a rerank model id from list_models (type rerank): each result's index into documents, its score and its text, best first. Billed per input token to the key in the MCP request's Authorization header.

Input Schema

NameRequiredDescriptionDefault
modelYesA rerank model id from list_models (type rerank).
queryYesWhat the documents are ranked against.
top_nNoHow many to return, best first. Default: all.
documentsYesUp to 100 texts to rank.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources