Back to blog
Guide · Retrieve

Set up your agent's retrieval in 5 minutes with Claix Retrieve

Your agent does not need the whole schema or database credentials. Define what it can query and connect it over MCP, REST or A2A.

Claix · Updated November 2026. Product: Claix Retrieve (https://www.claix.dev/). MCP: https://claix.dev/mcp. Docs: https://www.claix.dev/documentation/mcp.

Your agent already talks, follows instructions and uses tools. What it still needs is the data that matters: orders, bookings, inventory, customers, or anything else that lives in your database. Claix Retrieve puts that behind a controlled retrieval layer. You connect the database, decide what each agent may query, and integrate it through MCP, REST or A2A. Routes and agents are configured in a visual UI. The agent does not need your whole schema or database credentials.

PieceWhat you configure in Claix
Data sourceA SQL connection with a read-only role
Schema contextA Data Map of tables, descriptions and relationships
Access perimeterRoutes with allowed tables and columns
Agent behaviourDescription, instructions and routes
ResponseRaw rows or typed values
IntegrationMCP, REST or A2A
OversightTraces of queries and results

What agentic RAG is, and where SQL retrieval fits

RAG means a model uses information retrieved from an external source. It does not require documents, embeddings or a vector database. When an agent chooses to call a tool to fetch information, the retrieval is agentic. That tool can search documents, query an index, or run a controlled SQL query. “Agentic” describes how retrieval is triggered. “Vector” describes one way to find results. They are not synonyms.

Claix Retrieve is a tool for relational data. If the agent needs tomorrow's bookings or which orders are still pending, it can ask the live database instead of a copied index. Claix does not require copying your tables into a vector store. A precise name is controlled SQL retrieval for AI agents. It can sit inside an agentic RAG architecture without an embeddings pipeline.

When to use Claix Retrieve

Agent needExample questionUseful answer
Look up a statusWhat is the status of order 4821?string
Get a countHow many bookings are confirmed?int
Make a decisionAre there pending orders?boolean
Work with structured dataWhich orders match these conditions?json or rows
Get a dateWhat is the expected delivery date?date
Get several valuesWhich ids match the filter?array:int

Typed formats include strings, integers, booleans, dates, timestamps, JSON and some lists. In raw mode Claix returns the query rows. For semantic search over large text collections, a vector index can still be the right tool. For statuses, amounts, dates, counts and current SQL records, direct retrieval can skip an extra index.

What you need first

A Claix account, an API key, and a read-only database connection. Pick one concrete question, such as “How many orders are confirmed?”. Claix documents SQL databases including Postgres, MySQL, MariaDB and Postgres-compatible setups such as Supabase.

Step 1. Connect the database and review the Data Map

Claix drafts a Data Map of tables, descriptions and relationships for you to review. A column named status might mean payment, shipping or an internal check. The connection uses a read-only role. Retrieve is built to query data, not to run writes.

Step 2. Create a route with one job

A route is a retrieval capability: the tables and columns it may use, plus a short guide with your vocabulary and rules. A support route and an internal analytics route can share a database without exposing the same columns.

Route partExample
NameOrder status
PurposeOperational questions about orders
Allowed tableorders
Allowed columnsid, status, estimated_delivery_date
VocabularyWhat each status means
Interpretation ruleCancelled orders are not active

Step 3. Create the agent and choose the response

ModeWhat comes backWhen to use it
RawQuery rows and a truncation flagWhen your app works with the records
ReasonedA value in the format you asked forWhen you need a number, boolean, date or other typed answer

In reasoned mode every question must include the required format. If the data is missing or the type is not safe to produce, the documented result can be null.

Step 4. Connect Claix over MCP

The Claix MCP server is at https://claix.dev/mcp. The documented retrieval tool is claix.retrieve.ask. A Cursor-style config:

{
  "mcpServers": {
    "claix": {
      "url": "https://claix.dev/mcp",
      "headers": { "x-api-key": "YOUR_API_KEY" }
    }
  }
}

Keep the API key in the client's secret store. MCP is the connection. Access control still depends on the database role, the routes and the agent.

Step 5. Ask once and read the trace

curl -X POST "https://claix.dev/retrieve/order-support" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"questions":[{"question":"How many orders are confirmed?","format":"int"}]}'

Replace order-support with an active agent slug that has a published route. The response includes the questions, the results and a log_id. You can send up to five questions per request. Also try questions the route should not be able to answer.

Why this setup is low-code

TaskBuild it yourselfWith Claix Retrieve
Represent the schemaDesign how tables and relationships are describedReview and edit the Data Map
Define accessImplement your own policyConfigure routes and allowed columns
Prepare queriesWire generation and validationClaix prepares and validates read queries
Format answersDesign outputs and type checksChoose rows or typed answers
Connect toolsBuild each integrationUse MCP, REST or A2A
Review requestsBuild a retrieval logRead Claix traces

Production apps still need auth, secrets and error handling. What you stop building is the retrieval layer itself. Before go-live, check ambiguous questions, empty results and requests outside the route. If you use your own model key, test it in the Sandbox. Table access is not a substitute for per-user or per-tenant authorization.

Frequently asked questions

Do I need a vector database to use Claix?
No. Claix Retrieve queries SQL where it already lives and does not require a vector index over your tables.
Do I have to write SQL to configure the agent?
The usual setup is a connection, routes and business instructions. Claix prepares the read queries from the agent's questions and validates them before they run.
Can I use Claix with the agent I already have?
Yes. Claix is a retrieval layer, not a framework you have to rebuild around. Call it over REST, MCP or A2A.
How is this different from a generic database MCP server?
MCP connects a client to tools. Claix adds per-agent routes, allowed tables and columns, query validation, typed answers and traces.
Are my tables copied somewhere else?
Claix states that it does not copy your data into a vector store or build a vector index over it. Queries run on your database.
Can Retrieve update rows?
No. Retrieve is read-only. For proposed writes, Claix Guard returns allow or deny before your own code executes the statement.

Start with one question

Pick one useful question, connect the database with a read-only role and create a small route. When that query works and you can read its trace, widen the perimeter only if the use case needs it. Start at https://www.claix.dev/ and read the MCP docs at https://www.claix.dev/documentation/mcp.