[GH-ISSUE #18221] feat: How to get citations instead of tool call labels and empty citations with MCP web search #105529

Closed
opened 2026-05-18 03:34:29 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Kribensisis on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18221

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

I'm using SearXNG MCP for web search, mainly with OpenRouter models. That works fine and is faster than native search. But, the responses sometimes either cite the tool calls or use empty citations like [1]. See attached screenshot for the first case.

Image

I tried the following system prompt in Settings, and it does sometimes work, but I still get some empty citations and tool call placeholders.

I'm not sure if I should do that a different way which would be more consistent or recommended.

Ensure clean answers by following these rules:

1) Inline citations must be Markdown links only: [Title of link](url). Do not display or reference any tool/event IDs, debug strings, or JSON (e.g., `server:*/tool_*`, raw payloads, or request/response objects).

2) All links anywhere in the response must be Markdown-formatted links. Do not output bare URLs or non-Markdown link formats.

3) When the question requires current or externally verifiable facts, perform a web search using the connected tools before answering. Synthesize the results and present only human-readable prose with Markdown links. Do not surface tool metadata.

4) If any tool returns metadata or internal text, omit it and output only clean prose and Markdown links.

5) Do not output numeric reference markers (e.g., [1], [2], [17]) or footnote-style placeholders.  

6) If a tool returns results with numbers or placeholder citations, remove them and convert the information into clean Markdown links.

Desired Solution you'd like

I'd like to know the right way to either get markdown links in place of those tool call placeholders and empty citations or better yet, get real citation chips as with the regular web search. I'm not sure if the second is possible.

Thanks!

Alternatives Considered

No response

Additional Context

No response

Originally created by @Kribensisis on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18221 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description I'm using SearXNG MCP for web search, mainly with OpenRouter models. That works fine and is faster than native search. But, the responses sometimes either cite the tool calls or use empty citations like `[1]`. See attached screenshot for the first case. <img width="1141" height="844" alt="Image" src="https://github.com/user-attachments/assets/fd585a30-0ad9-453a-aad6-1d813a09fe2c" /> I tried the following system prompt in Settings, and it does sometimes work, but I still get some empty citations and tool call placeholders. I'm not sure if I should do that a different way which would be more consistent or recommended. ``` Ensure clean answers by following these rules: 1) Inline citations must be Markdown links only: [Title of link](url). Do not display or reference any tool/event IDs, debug strings, or JSON (e.g., `server:*/tool_*`, raw payloads, or request/response objects). 2) All links anywhere in the response must be Markdown-formatted links. Do not output bare URLs or non-Markdown link formats. 3) When the question requires current or externally verifiable facts, perform a web search using the connected tools before answering. Synthesize the results and present only human-readable prose with Markdown links. Do not surface tool metadata. 4) If any tool returns metadata or internal text, omit it and output only clean prose and Markdown links. 5) Do not output numeric reference markers (e.g., [1], [2], [17]) or footnote-style placeholders. 6) If a tool returns results with numbers or placeholder citations, remove them and convert the information into clean Markdown links. ``` ### Desired Solution you'd like I'd like to know the right way to either get markdown links in place of those tool call placeholders and empty citations or better yet, get real citation chips as with the regular web search. I'm not sure if the second is possible. Thanks! ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#105529