Skip to content

Conversation

@DouweM
Copy link
Collaborator

@DouweM DouweM commented Oct 22, 2025

Closes #3218

cc @Kludex as you also requested this

@DouweM DouweM self-assigned this Oct 22, 2025
@github-actions
Copy link

Docs Preview

commit: 0b9f2e1
Preview URL: https://2f5ef0a5-pydantic-ai-previews.pydantic.workers.dev

@DouweM DouweM enabled auto-merge (squash) October 22, 2025 17:32
@DouweM DouweM merged commit 2f195dc into main Oct 22, 2025
29 checks passed
@DouweM DouweM deleted the mcp-list-tools-once branch October 22, 2025 17:42
@phemmer
Copy link
Contributor

phemmer commented Oct 22, 2025

This is going to break my applications. My MCP servers change their tools based on state. This is by design. The MCP protocol allows this. This will cause the agent to see tools that aren't actually available, or to not see tools that are available.

@DouweM
Copy link
Collaborator Author

DouweM commented Oct 22, 2025

@phemmer Thanks for keeping a close eye on potentially breaking changes! I'll revert this in favor of a flag on the MCPServer, and we'll keep the current behavior by default.

@phemmer
Copy link
Contributor

phemmer commented Oct 22, 2025 via email

@DouweM
Copy link
Collaborator Author

DouweM commented Oct 22, 2025

@phemmer Yep we should subscribe to those notifications at the very least.

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.

Agent run calling MCP list tools every time before calling the model provider

3 participants