Progressive Tool Discovery for MCP Servers to Manage Context at Scale

amazon · Media & Entertainment · 2026 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Production AI agent infrastructure and MCP tool management

Amazon Prime Video needed centralized MCP tool infrastructure without forcing every agent session to load hundreds of tools into context, because excessive tool exposure degraded tool choice, increased hallucinations, and made shared cross-team servers harder to scale.

Constraints:

Architecture

Prime Video kept the shared MCP server but changed the agent's initial context surface. At initialization the server exposes only a single find-tools capability. Tools are mapped to problem categories, the MCP server tracks the agent session's current category, and a tools-list-changed notification prompts the client to fetch a refreshed category-specific tool list. The same session can switch categories later, replacing one tool subset with another while preserving centralized governance.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  agent-session["Agent session"] --> find-tools-capability["Find tools capability"]
  find-tools-capability["Find tools capability"] --> problem-category-map["Problem category map"]
  find-tools-capability["Find tools capability"] --> tool-registry["Tool registry"]
  find-tools-capability["Find tools capability"] --> mcp-session-tracker["MCP session tracker"]
  problem-category-map["Problem category map"] --> category-specific-tool-subset["Category-specific tool subset"]
  tool-registry["Tool registry"] --> problem-category-map["Problem category map"]
  tool-registry["Tool registry"] --> tool-governance-process["Tool governance process"]
  mcp-session-tracker["MCP session tracker"] --> tools-list-changed-notification["Tools list changed notification"]
  tools-list-changed-notification["Tools list changed notification"] --> mcp-client-refresh["MCP client refresh"]
  mcp-client-refresh["MCP client refresh"] --> category-specific-tool-subset["Category-specific tool subset"]
  category-specific-tool-subset["Category-specific tool subset"] --> agent-session["Agent session"]
  prime-video-production-agents["Prime Video production agents"] --> agent-session["Agent session"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Agent session The AI agent interaction that initially receives only the discovery tool and later receives task-specific tools. Find tools capability, MCP client refresh, Category-specific tool subset
Find tools capability Single initial MCP tool that lets the agent request additional tools by problem category. Agent session, Problem category map, Tool registry, MCP session tracker
Problem category map Maps operational, results, training, events, and similar problem categories to relevant tool subsets. Find tools capability, Tool registry, Category-specific tool subset
Tool registry Central shared MCP inventory of tools contributed across teams. Find tools capability, Problem category map, Tool governance process
MCP session tracker Stores the mapping from MCP session ID to the active problem category. Find tools capability, Tools list changed notification
Tools list changed notification Protocol notification that tells the client its available tool list has changed. MCP session tracker, MCP client refresh
MCP client refresh Client-side fetch of the refreshed tool list after receiving the notification. Tools list changed notification, Agent session, Category-specific tool subset
Category-specific tool subset Small active tool set exposed to the agent for the selected problem space. Agent session, Problem category map, MCP client refresh
Tool governance process Human and organizational controls for tool definitions, overlap, and shared-server contributions. Tool registry
Prime Video production agents Operational and coding agents that use shared MCP tools for production workflows. Agent session, Category-specific tool subset

Data flow

An agent session initializes against the MCP server and sees only the find-tools capability. When the agent needs a category such as operations, it calls find tools with that category. The server records the session-to-problem-space mapping, returns discovered tool names, sends a tools-list-changed notification, and the MCP client refreshes its tool list. The agent then works with the smaller category-specific subset; if the task changes, the agent invokes find tools again and the server swaps the active category and exposed tool set.

3 supporting quotes
“After initialization, the MCP server exposes only a single tool called "find tools" to the agent.”summary, stated
“The server persists the mapping between the agent session and the requested problem category, tracking which problem space the agent is operating within.”summary, stated
“The server then sends a tools list changed notification, prompting the agent to fetch an updated tool list.”summary, stated

Why this architecture

Prime Video chose progressive discovery because it preserved the organizational benefits of a central MCP server while reducing the context cost seen by any one agent session. Static per-agent configuration and sub-agent discovery were considered, but dynamic mid-session discovery better matched tasks that can move between problem spaces. The architecture accepts extra round trips because a smaller, more relevant tool context improved agent performance and tool selection.

3 supporting quotes
“While this centralization solved the duplication problem, it created a new one.”summary, stated
“But we felt for us and the problems that we were trying to solve uh and the way it would scale as well that we needed to go for a full dynamic discovery approach”transcript, stated
“For Prime Video's use cases, they found this additional latency acceptable given the performance benefits of reduced context bloat”summary, stated

Models used: MCP-compatible AI agents · MCP server · Prime Video internal agent clients

Scale

Alternatives considered (roads not taken)

Independent team-specific MCP servers

Rejected because: They duplicated tools across teams and increased maintenance overhead.

“This distributed approach led to significant duplication as teams implemented the same tools repeatedly across organizational boundaries.”summary, stated

Expose all centralized MCP tools at initialization

Rejected because: Hundreds of tools bloated context and degraded tool selection.

“given it hundreds of tools in its definition in its context blows bloats the context and reduces its ability to pick the right tools.”transcript, stated

Sub-agent tool discovery

Rejected because: It was considered but did not fit the team's scaling needs as well as full dynamic discovery.

“The first one that we looked at which has been kind of talked about a bit at this conference is the ability to do sub agent tool discovery”transcript, stated

Per-agent tool configuration files

Rejected because: Configuration distribution would become the tool-context control plane, while the team needed mid-session discovery.

“Another was maintaining per-agent tool configurations, where distribution of agent configuration files becomes the mechanism for controlling tool availability.”summary, stated

Patterns

context-engineering (context-management)

Prime Video treated tool definitions as scarce context and exposed only the discovery mechanism until the agent selected a problem category.

“given it hundreds of tools in its definition in its context blows bloats the context and reduces its ability to pick the right tools.”transcript, stated

tool-use-orchestration (architecture)

The MCP server orchestrates tool availability dynamically through find tools, category mappings, session state, notifications, and refreshed tool lists.

“The discovery flow proceeds through several steps. Initially, the agent knows only about the single find tools capability.”summary, stated

structured-output-contract (interface)

The architecture relies on MCP protocol contracts: session IDs, tools-list-changed notifications, and tool-list refresh behavior.

“the protocol supports sending notifications to agents indicating that the list of available tools has been refreshed”summary, stated

eval-driven-development (quality)

The team validated the approach by comparing tool-selection performance and hallucination behavior before and after reducing active tools.

“They confirmed that reducing from hundreds of tools to three or four context-appropriate tools produced measurable performance improvements.”summary, stated

safety-policy-enforcement (governance)

Progressive discovery did not replace governance; the shared tool server still needs standards for tool definitions, overlap, and contributions.

“Even with progressive discovery, teams must maintain standards around tool definitions, ensure there is no overlap between tools, and exercise judgment about what gets added to the shared server.”summary, stated

Tradeoffs

Keep centralized shared MCP infrastructure

Chose A common remote MCP server with progressive discovery over Independent MCP servers per team.

Rationale: Centralization reduced duplicated tool implementation, while progressive discovery limited the context cost of that centralization.

“Prime Video invested in shared infrastructure: a common remote MCP server providing a cross-cutting set of tools to reduce duplication and maintenance overhead.”summary, stated

Use dynamic discovery during the agent session

Chose Find-tools-driven mid-session category switching over Static per-agent tool configurations.

Rationale: The team needed agents to discover relevant tools as problem context changed rather than relying entirely on predistributed configuration.

“we needed to go for a full dynamic discovery approach where an agent midsession could discover tools that were relevant”transcript, stated

Pay extra discovery round trips

Chose Progressive discovery latency over Loading every tool once at initialization.

Rationale: For Prime Video's use cases, the reduced context bloat and better tool selection outweighed the added interaction overhead.

“For Prime Video's use cases, they found this additional latency acceptable given the performance benefits of reduced context bloat”summary, stated

Use MCP session tracking for category state

Chose Session ID to problem-space mapping over A fully stateless discovery protocol.

Rationale: Session tracking made it possible to know which category-specific tools should be visible to a given agent session, but created exposure to future MCP protocol changes.

“One questioner noted that session tracking functionality might be removed from the MCP protocol specification, which would significantly impact this implementation pattern.”summary, stated

Gotchas (what bit them)

Centralizing tools can move duplication out of teams but move context bloat into the agent.

Root cause: The shared MCP server accumulated hundreds of cross-team tools, while each task needed only a small subset.

Resolution: Expose only find tools initially and load category-specific tools through progressive discovery.

“While this centralization solved the duplication problem, it created a new one. As more teams contributed tools to the shared server, the tool count grew rapidly.”summary, stated

Tool bloat can reappear inside broad categories.

Root cause: Poorly designed categories or overlapping tool definitions can still expose too many tools after discovery.

Resolution: Maintain governance over tool definitions, category design, overlap, and shared-server additions.

“Tool bloat can still occur at the category level if problem categories are not well-designed or if individual categories contain too many tools.”summary, stated

Progressive discovery adds interaction latency.

Root cause: The agent must invoke find tools, receive results, handle a notification, and fetch an updated tool list.

Resolution: Accept the extra round trips for workflows where reduced context bloat improves performance enough to justify them.

“progressive discovery requires additional round-trips: invoking find tools, receiving results, getting the notification, requesting updated tool lists, and receiving the new tools.”summary, stated

Protocol non-compliance can break dynamic discovery.

Root cause: Some MCP clients do not respond correctly to tools-list-changed notifications.

Resolution: Prime Video avoided the issue by controlling its internal clients; external deployments need compatibility checks.

“many MCP client implementations are not fully compliant with the protocol specification, particularly around responding to the tools list changed notification.”summary, stated

Evaluation

Prime Video compared agent behavior before and after reducing active tool context, watching tool-selection quality, performance, and hallucinations. The case reports measurable improvement but does not disclose exact metrics.

Metrics: number of tools exposed per task · performance improvement · hallucination reduction · tool selection reliability · server tool capacity

“They confirmed that reducing from hundreds of tools to three or four context-appropriate tools produced measurable performance improvements.”summary, stated
“The exact metrics were not disclosed, but the claim of reduced hallucinations and improved tool selection suggests both accuracy and reliability improvements.”summary, stated

Outcomes

The concrete scale anchors are hundreds of available MCP tools, three or four active tools per task, one initial find-tools capability, and Prime Video production workflows including live-event streaming quality analysis.

“enabling them to operate "one server with many more tools than we would have been okay with before."”summary, stated
“The team emphasized that agents are "fully participating in how software gets built and how we operate it" with real customer impact. This production deployment context is critical because it meant that agent performance issues directly affected business outcomes.”summary, stated