How to Build a Research Agent That Cites Its Sources and Admits Gaps
Build a research agent that cites its sources: five steps from grounding to admitting gaps, with research over REST and Search and extraction over MCP.
By the NeuralVerge team · 12 min read · Updated October 2026
▸On this page
To build a research agent that cites its sources, wrap one grounded research call in four more pieces: a rule for when to look something up, a check on every claim, a depth choice, and a defined way to say "I could not verify this". The research run happens over the REST API; Search, extraction and data sources are MCP tools your agent can use to double-check it. The steps below keep a fluent agent from stating a funding round, job title or registration status it never retrieved.
The short version
- —The answer. A grounded research call is necessary but not enough: the agent can still skip it, repeat a thin answer too confidently, or fill a gap with a guess. Five steps close those gaps: mark claims, ground them, verify them, route depth, disclose uncertainty.
- —Who it is for. Developers building assistants, due diligence and KYB agents, or sales and recruiting research where someone will repeat the agent's claim to a customer or a candidate.
- —What it costs. AI research is priced by depth tier, from 20 points for a Lite run to 400 for Ultima. Search and AI extraction, which you can use for verification, are 5 points per call. Plans start at $50 a month for 50,000 points.
- —How you reach it. Research is REST only. Search, extraction and every data source also work as MCP tools, with the same response shape and price as REST.
Before you start
You need three things:
- —An API key for the research call. Create one in the dashboard and keep it on your server, not in the agent's prompt.
- —An agent loop that can call tools. Any framework works; the steps are rules and checks around calls. For the pipeline underneath, see what an AI deep research API does.
- —A short list of test questions, written before you build: some the sources can answer, and at least one they cannot. Step 5 and the check at the end use them.
The examples use the fictional Acme Oy (Finland), so nothing here is a claim about a real company. To audit an answer you already have, see five signs of invented sources; this guide designs the agent so those signs do not appear.
Step 1: Mark the claims that need grounding
An agent does not automatically know which of its sentences need outside evidence. Give it a rule, because left alone it answers questions about real companies from training data in the same tone it uses for arithmetic.
The rule is short: any claim about a specific, real-world, time-sensitive fact needs grounding. That covers ownership, funding, a person's current title, whether a registration is still active, headcount, and anything with a date in it. General reasoning, summaries of what is already in the conversation, and stated hypotheticals do not.
Put the rule in the agent's instructions and make it concrete:
Before you state a fact about a specific company or person that the user
has not already given you, call a lookup tool. If you have no tool result
for a claim, do not state it as fact. Say what you could not confirm.
Draw the line too narrowly and the agent still guesses on claims it decided were common knowledge. Draw it too broadly and every reply triggers a research run, a cost no later step can fix.
Make sure the agent can see a lookup tool. A rule to ground claims only works if there is something to ground them with; an agent with no tool in reach answers from memory.
Step 2: Ground the claim with a research run
Once a claim is flagged, grounding gets an answer you can check. NeuralVerge's AI research pipeline plans the question into sub-questions, routes each to the source categories most likely to answer it, extracts and cleans the facts, cross-checks them where more than one source touches the same claim, and writes the answer with a citation attached to each claim. For company and person questions, structured sources such as corporate registries, company intelligence and professional profiles come first, with the open web as fallback.
This step has one job: produce the best-cited answer it can. Whether that answer is good enough for the agent to say is Step 3, and merging the two is the most common design mistake.
REST and MCP
Research is an asynchronous run. You start it, get a session_id straight away, and poll for the result. An MCP tool has to return inside the call, so AI research is not an MCP tool. Here is the real request for the Acme Oy question at the Core tier, followed by the poll:
# Start the research run, which returns a session_id immediately
curl https://api.neuralverge.ai/functions/v1/run-research \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"instructions": "Summarize the corporate structure and ownership of Acme Oy (Finland)",
"settings": { "country_code": "fi", "search_enabled": true, "deepsearch_model": "core" }
}'
# Poll for the result
curl "https://api.neuralverge.ai/functions/v1/get-session-status?session_id=<SESSION_ID>" \
-H "Authorization: Bearer <API_KEY>"
This is the example response from the AI research product page, shortened, with a placeholder session id:
{
"session_id": "11111111-1111-1111-1111-111111111111",
"status": "complete",
"results": {
"kind": "deepsearch",
"human": "# Acme Oy\n\nAcme Oy is a private limited company registered with YTJ...",
"machine": { "summary": "Acme Oy is a private limited company registered with YTJ..." }
}
}
results.human is the readable answer and results.machine is a structured version for code. Poll until status is complete. The Core tier costs 100 points. Check docs.neuralverge.ai for the current citation fields rather than hard-coding them from a blog post.
Wrap both calls as one function-calling tool so the agent decides when to use it and your code does the polling.
What the agent can reach over MCP is the work around the research step. Add https://mcp.neuralverge.ai/mcp to an MCP client (Claude, ChatGPT, Cursor, VS Code, Gemini CLI or any other), sign in through the browser and click Allow. Tool names use underscores where REST paths use hyphens: run_search over MCP is run-search over REST. The MCP server for Claude tutorial walks through one client; the connect-a-client guides cover the rest.
In short: the research run (run-research, 20 to 400 points by tier) is REST only; Search (run_search) and AI extraction (run_extract) are 5 points per call over REST or MCP; a data source such as run_uk_companies is priced on its own page in the catalog.
Which route to pick comes down to who decides what to call. A scheduled pipeline over a fixed list of companies belongs on REST; an interactive agent that chooses its next lookup from what it just found is what MCP is built for, with research staying on REST either way. Connected clients can be revoked under Settings, then API, in the dashboard.
Step 3: Verify before the agent speaks
This is the step that turns "the API returns citations" into "the agent does not state unsupported claims". A cited answer does not stop the agent from restating it more confidently than the citation supports, or adding a detail the run never verified. Put a check between the research result and anything the agent says.
The check is structural, not clever. For every claim in the answer:
- —Confirm it has a citation.
- —Confirm the citation points at a real, reachable source.
- —Confirm the source actually contains the claim.
- —If it fails any of these, reject the claim. Do not soften it and pass it through.
Use MCP tools as the second look
When a claim matters, let the agent check it independently of the research run. Call run_search to find a source that was not the cited one, run_extract to read the cited page and pull out the specific field the claim rests on, or a data-source tool such as run_uk_companies to compare a registration against the register itself. Each is 5 points for Search and extraction, and a data source is priced on its own page.
A Search call from an agent looks like this:
{
"tool": "run_search",
"arguments": {
"query": "Acme Oy Finland funding round",
"settings": { "country": "fi", "max_results": 10 }
}
}
Treat a second source as corroboration, not proof: two articles repeating one press release are one source. The five signs of invented sources are a good checklist for what to look for: citations that do not resolve, a real page that does not contain the claim, a suspiciously uniform source mix, a source older than the claim, and precise numbers with no quote behind them.
Do not let the prompt that wrote the answer also approve it.
Step 4: Route depth and cost
Not every claim needs the same amount of research. "Is this registration still active" has one likely authoritative source. "Summarize this company's ownership and recent funding, and flag anything inconsistent" benefits from more sub-questions and more cross-checking. Decide once, before the call, and set the depth tier on the request.
| Tier | Points per run | Typical turnaround |
|---|---|---|
| Lite | 20 | 30s to 90s |
| Base | 50 | 1m to 2m |
| Core | 100 | 2m to 4m |
| Pro | 200 | 3m to 7m |
| Ultima | 400 | 5m to 12m |
Points and turnaround are from the pricing page at the time of writing. Count the signals that a question needs more depth: distinct sub-questions, named entities, and whether it asks for a comparison or cross-check. Separately from depth, finalizer_model chooses the model that writes the final answer; check the docs for the current values.
Cost and limits
Depth routing is an optimisation, not a correctness requirement: a generous fixed depth still produces cited answers, at higher cost and latency. Limits to design around:
- —Runs take time. Lite is 30 to 90 seconds and Ultima is 5 to 12 minutes, so research suits a background step or a "working on it" message, not a blocking page load.
- —Freshness follows the sources. A registry record is only as fresh as the registry's last update, and the open-web fallback reflects whatever is publicly indexed at query time.
- —Misses can still be billed. A call whose input does not resolve can be charged; do not budget as if empty results are free.
- —Verification adds points. Each Search or extraction call is 5 points, so reserve second-source checks for claims that carry risk. Plans and per-action costs are on the pricing page.
Step 5: Say "I don't know" on purpose
This step separates an agent that hallucinates less often from one that does not invent sources. When verification rejects a claim, because there is no citation, the citation does not resolve, or sources disagree without resolution, the agent needs a defined behaviour for that case, not a fallback to its best guess.
Make it a contract. Any time verification fails, the output says so plainly, and says which part:
I could not find a verified source for Acme Oy's latest funding round.
The registry record confirms the company is active and lists its
registered owners. The funding claim is unconfirmed.
An agent that sometimes admits a gap can read as less capable than one that always sounds complete. That instinct is what produces invented sources at scale, so build the "I don't know" reply as an explicit output state with its own tests. Report the claims that passed and flag only the one that did not.
Check that it works
A five-step design that has never been run against a question that should fail is a design on paper. Use the test list from the start of this guide and run it end to end.
A worked example: one claim through all five steps
The agent is asked mid-conversation whether Acme Oy has raised funding recently.
- —Mark. The rule flags a time-sensitive fact the conversation has not established.
- —Route. One entity, one sub-question: a light tier is enough.
- —Ground. The research run searches funding and company-intelligence sources, extracts the relevant facts, and returns an answer with one citation to the source that reported the round.
- —Verify. The citation resolves and the page contains the claim. The agent states it with the source available.
- —Disclose. Vary the ending: the search came back empty because the round is not indexed anywhere. Verification rejects the missing claim and the agent says that no verified source was found, instead of recalling what companies like Acme Oy usually do.
What to test
Questions with a known, checkable answer confirm that grounding and verification work. At least one question with a sub-question the sources cannot answer confirms that Step 5 triggers. Re-run the set whenever the prompt or tool wiring changes.
Troubleshooting
- —The agent states facts without calling the tool. Step 1 is too weak. Tighten the rule and the tool description.
- —Every reply triggers a research run. Step 1 is too broad. Add exempt categories and skip claims already verified in the session.
- —Citations pass but the answer is wrong. The source may be stale. Add an independent second source in Step 3 and compare dates.
- —The agent smooths over gaps. Step 5 has no explicit state. Add the failure reply and a test question that triggers it.
- —Runs feel slow. A fixed Ultima default is the usual cause; route simple questions to a lighter tier.
How to decide
Use this design when a wrong, confident claim costs more than an extra lookup. Ask:
- —Would someone repeat the agent's claim to a customer, a candidate or a regulator? Customer-facing assistants, KYB and due diligence agents, and sales or recruiting research all do, and a citation trail is often a compliance requirement.
- —Do you need the answer inside one request? Research runs are asynchronous, so a blocking interface needs a lighter tier, a data source, or a progress message.
- —Is the job one known page or one registry record? Then use AI extraction or a data source directly, and keep research for questions with several sub-parts.
- —Will you run the test list on every prompt change? If not, expect Step 5 to decay quietly.
Frequently asked questions
Does this architecture guarantee zero hallucinations?
No. It removes the specific failure of an agent inventing an answer from training data, because every claim has to trace back to something retrieved. It does not guarantee the retrieved source is correct. Verification exists because "grounded" and "guaranteed correct" are not the same claim.
Isn't calling a grounded research API enough on its own?
No. A grounded call produces a cited answer, but nothing stops an agent from also stating something it was not asked to look up, or presenting a thin single-source answer as settled fact. Verification and uncertainty disclosure exist because the grounding call alone enforces neither.
Do I need all five steps, or can I skip some?
Skipping verification or uncertainty disclosure is the most common way a grounded agent still states unsupported claims. Depth routing is an optimisation; a fixed depth still works, just less efficiently.
How do I know it is working, not just designed correctly?
Run a standing test set: questions with known answers plus at least one the sources cannot fully answer. If the agent surfaces that gap instead of covering it, the design holds. Re-run the set when prompts or tool wiring change.
What should the agent say when it finds no source?
It should say so plainly and name the part it could not confirm, while still giving the claims that passed verification. A defined reply for this case is what separates an honest agent from one that fills the gap with something plausible.
Can I build this research agent over MCP, or only through the API?
Not the research step itself. AI research is called over the REST API, so it is not an MCP tool. NeuralVerge's hosted MCP server at https://mcp.neuralverge.ai/mcp does expose Search, AI extraction and every data source as tools, which an agent can use for verification around the research call. MCP calls are priced the same as REST and return the same response shape.
Related articles
An AI deep research API plans, searches, cross-checks and cites. How it works, what each tier costs, and why research runs over REST while Search is on MCP.
Five tests for whether a research agent invents sources, and what to ask of an AI research API with citations. Research runs over REST; MCP tools help check.
A grounded LLM answers API plans, searches, cross-checks and cites each claim. How the stages work, where products differ, and what runs over REST or MCP.
About NeuralVerge
Give your agents structured, cited, real-world data from 300+ sources and the open web — through one API or MCP server.
AI Deep Research on the NeuralVerge blog.