How to add field description for a third-party class which is a tool input #553
-
Tagging experts here! @halter73 @stephentoub Hello! I have such a tool
Note that Foo class is NOT my source code, it lies in a third-party package, which I can't control at all. It's a complex class having nested classes as childs and also inherits from other class, like
For sure, there isn't any
My requirement: add
I expect to see inputschema is like
Is there an elegant way to achieve? I have some hacky and bad ideas, like creating my own facade class (adding description) based on the third party class, and use it as tool input. I would have hunderds of tools in one mcp server, need an elegant and efficient way . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It should be possible to customize your generated schema using a schema transformer delegate. This can be found in the |
Beta Was this translation helpful? Give feedback.
-
And which I shared an example of in an answer to another question from you yesterday 😄 |
Beta Was this translation helpful? Give feedback.
And which I shared an example of in an answer to another question from you yesterday 😄
#543 (comment)