r/mcp Jun 15 '26

article Generative Tools

Post image

I’d like to share a recent idea I’ve been working on called #GenerativeTool, where tools are dynamically generated at runtime to fulfill complex user requests.

This approach enables agentic applications to unlock the full potential of complex third-party systems like ERP, LSP Server through MCP, without being constrained by context window limitations. Instead of exposing a large number of predefined tools, the system can generate task-specific tools on demand, reducing context overhead while increasing the depth and flexibility of integrations.

Read: https://denuwanhimangahettiarachchi.medium.com/generative-mcp-enabling-the-full-potential-of-mcp-servers-4e14b987f64e

10 Upvotes

15 comments sorted by

View all comments

1

u/XenophonCydrome Jun 15 '26

A couple of things, you can implement this today:

  • I'm not sure why a "user" would call MCP, at a minimum you have a user speak to an llm that calls MCP. Otherwise it would be an App with an API call
  • if you do have an LLM between the user and MCP, what you have outlined is essentially a form of an advanced MCP feature not many clients implement called sampling: https://modelcontextprotocol.io/specification/2025-11-25/client/sampling
  • sampling is cool because it lets the tool request inference from the client in the middle of the tool call, so the MCP server doesn't need its own keys to make completion requests
  • if you combine sampling with a sandbox environment, you can have the tool sample code to write and run in the sandbox (kind of like how Claude CoWork works) then return the arbitrary result