logoalt Hacker News

tegiddronetoday at 2:15 PM1 replyview on HN

Still learning myself, but I've seen MCP tools just lightly wrap upstream json-body REST APIs. Works. But not only is the json structure more tokens but often the model just needs a small subset of fields in the payload.


Replies

zdkastertoday at 2:24 PM

To be safe if you need a full json, would make conditonal passthrough as the original raw output. Or, need to handle selective object using python via the filter plugin.