space_rank
Rank up to 30 documents using Space Rank — de-biased order-invariant reranking by empirical rigor vs. hype, Bayesian surprise (with white-box neural surprisal + truth probe), RAG relevance, contradiction detection, legal risk, code security, or any custom rubric. Requires a prepaid Space AI API key ($0.002/call; get credits at https://spaceresearch.ai/product.html#pricing). Read-only.
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": {
"documents": "<documents>"
},
"name": "space_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Query, topic, or reference claim to rank documents against. | |
| top_n | No | Optional number of top-ranked documents to return. | |
| rubric | No | Built-in rubric ('rag_relevance', 'rigor', 'surprise', 'contradiction', 'legal_risk', 'code_security', 'clinical_triage', 'llm_judge') or any custom ranking criterion. | |
| documents | Yes | List of 1 to 30 candidate document texts to rank. | |
| detect_contradictions | No | Flag conflicting or contradictory claims across the documents. |