Skip to content

Stop offering productFilter on the internal docs MCP - #5110

Closed
reakaleek wants to merge 1 commit into
mainfrom
internal-mcp-product-filter-and-content-date
Closed

reakaleek wants to merge 1 commit into
mainfrom
internal-mcp-product-filter-and-content-date

Conversation

@reakaleek

Copy link
Copy Markdown
Member

The internal docs MCP no longer offers productFilter on search_internal_docs and find_related_internal_docs, because it drops nearly every internal page. The public server keeps it.

Affects: MCP

Prompt summary: Improve how well the Elastic Internal Docs MCP finds the right page, starting from an 18-call evaluation of its tools. This PR is the first change that the index measurements support.

Why

On the production internal index, 15 of 6,989 pages have related_products and 9 have product (about 0.2%). A productFilter of kibana on "release process" returned 9 hits, and the top one was an unrelated page. The agent gets a confident answer and never learns that the filter hid the Kibana team's real release pages. sectionFilter and a product name in the query both work on internal pages.

What

Profile switch

McpServerProfile gains OffersProductFilter. It is true for the public profile and false for the internal one.

Tool schema

McpToolRegistration passes the flag to the SDK schema options, so the productFilter parameter is absent from the internal search tools. The tool classes and the public schemas stay the same, and no snapshot changes.

Out of scope: the result date. #5108 already moves search results to content_last_updated. Ranking changes for generated mirrors and a "no keyword match" signal follow separately.

Verify

dotnet test --project tests/Mcp.Remote.Tests

McpToolSchemaTests checks both profiles. Setting the internal flag to true makes it fail.

Only 15 of 6,989 internal pages carry a product, so a productFilter
silently drops almost every relevant page and still returns a confident
top hit. The internal profile now leaves the parameter out of its search
tool schemas. The public profile keeps it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@reakaleek
reakaleek requested a review from a team as a code owner December 2, 2026 18:13
@reakaleek
reakaleek requested a review from Mpdreamz December 2, 2026 18:13
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5110/

@reakaleek reakaleek closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant