Document Rerank
rankRank up to 50 documents by relevance to a query in a single call - each document returned with its relevance probability, sorted highest first. Powered by Jev (TypeSafe System One). $0.001 per call, no OpenRouter or TypeSafe account needed. Try GET /rank/sample.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"documents": "<documents>"
},
"name": "rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The query to rank documents against. | |
| documents | Yes | Up to 50 documents to rank by relevance to the query. Each truncated to 2000 characters before scoring. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documents | Yes | Input documents, sorted by relevance score descending. | |
| x402_receipt | No | Billing and provenance receipt for this call. |