Jina AI · Capability

Jina AI Reranker API — Reranker

Jina AI Reranker API — Reranker. 1 operations. Lead operation: Rerank documents against a query. Self-contained Naftiko capability covering one Jina Ai business surface.

Run with Naftiko Jina AiReranker

What You Can Do

POST
Rerank — Rerank documents against a query
/v1/rerank

MCP Tools

rerank-documents-against-query

Rerank documents against a query

read-only

Capability Spec

reranker-reranker.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Jina AI Reranker API — Reranker
  description: 'Jina AI Reranker API — Reranker. 1 operations. Lead operation: Rerank documents against a query. Self-contained
    Naftiko capability covering one Jina Ai business surface.'
  tags:
  - Jina Ai
  - Reranker
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    JINA_AI_API_KEY: JINA_AI_API_KEY
capability:
  consumes:
  - type: http
    namespace: reranker-reranker
    baseUri: https://api.jina.ai/v1
    description: Jina AI Reranker API — Reranker business capability. Self-contained, no shared references.
    resources:
    - name: rerank
      path: /rerank
      operations:
      - name: rerank
        method: POST
        description: Rerank documents against a query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.JINA_AI_API_KEY}}'
  exposes:
  - type: rest
    namespace: reranker-reranker-rest
    port: 8080
    description: REST adapter for Jina AI Reranker API — Reranker. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/rerank
      name: rerank
      description: REST surface for rerank.
      operations:
      - method: POST
        name: rerank
        description: Rerank documents against a query
        call: reranker-reranker.rerank
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: reranker-reranker-mcp
    port: 9090
    transport: http
    description: MCP adapter for Jina AI Reranker API — Reranker. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: rerank-documents-against-query
      description: Rerank documents against a query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: reranker-reranker.rerank
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.