Skip to content

mcp: hint agents to prefer indexed objects#36551

Open
bobbyiliev wants to merge 1 commit into
MaterializeInc:mainfrom
bobbyiliev:mcp-agent-instructions
Open

mcp: hint agents to prefer indexed objects#36551
bobbyiliev wants to merge 1 commit into
MaterializeInc:mainfrom
bobbyiliev:mcp-agent-instructions

Conversation

@bobbyiliev
Copy link
Copy Markdown
Contributor

As discussed adding a short instructions block to the MCP agent endpoint's initialize response, nudging agents to prefer indexed objects over materialized views. Pairs with the indexedColumns hint already surfaced by get_data_product_details so the agent has both session-level guidance and per-tool signals for picking the fast path.

@bobbyiliev bobbyiliev marked this pull request as ready for review May 14, 2026 16:28
@bobbyiliev bobbyiliev requested a review from a team as a code owner May 14, 2026 16:28
@bobbyiliev bobbyiliev requested review from jubrad and mtabebe May 14, 2026 16:29
@jubrad
Copy link
Copy Markdown
Contributor

jubrad commented May 14, 2026

@bobbyiliev I'm wondering if we need to be very explicit about either

  1. only showing indexes on the cluster the agent is connected to
  2. stressing that indexes are only accessible when they are on the current cluster, and that if a view with an index is queried on a cluster that does not have the index the index will not be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants