Skip to main content
Glama
This connector has been deprecated

This connector is a duplicate. Use Hubris instead — same endpoint (https://api.hubris.pw/mcp), but with ownership verified, OAuth, all five tools inspected and a quality score.

Rerank documents

rerank

Order documents by how well they answer a query, best first, with a relevance score each. Same as POST /v1/rerank. Typical use: a vector or keyword search finds 50–100 candidates, rerank picks the few that really answer the question, and only those go to the model — answers get more accurate and prompts shorter.

results[].index points into the documents list you sent. Scores are comparable only within one response.

Spends money from the account balance: Cohere models are billed per search (up to 100 documents), the rest per input token. usage.cost_rub is what this call cost.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel id from the catalogue, vendor included and matched exactly, e.g. "cohere/rerank-v3.5". Find one with models_search and tool: "rerank".
queryYesThe question or search query to rank the documents against.
top_nNoReturn only this many best documents. Leave out to get all of them, ranked.
documentsYesCandidate documents as plain text, 1 to 1000 of them. Their order in the answer is by relevance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond the annotations: this call spends account balance ('Cohere models are billed per search (up to 100 documents), the rest per input token'), reports usage.cost_rub, and warns that scores are only comparable within a single response. That billing and score-comparability context is exactly what the readOnlyHint=false / openWorldHint=true annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short, front-loaded paragraphs: what it does, how it is typically used, then result and cost caveats. Every line carries load and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by explaining the return shape (index into the input documents list, a score per document, best-first ordering, cross-response score comparability). Together with the cost disclosure, an agent has everything needed to call and interpret this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are already documented in the schema, which sets the baseline at 3. The description clarifies result-pointer semantics ('results[].index points into the documents list you sent') but mostly restates the schema's own parameter text rather than adding per-parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Order documents by how well they answer a query, best first, with a relevance score each') and anchors it to a concrete API operation. The pipeline sentence (search finds candidates, rerank picks the few) makes its distinct role versus retrieval/embedding siblings unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear typical-use scenario: 50-100 candidates from vector or keyword search, with rerank narrowing them before they reach the model. It does not name explicit alternatives or when-not-to-use conditions (e.g. versus embeddings_create or models_search), so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.