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.
0 replies
-
And which I shared an example of in an answer to another question from you yesterday 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
[Description]
attribute in the third-party code, by default, theInputSchema
generated by sdk will be like.My requirement: add
[Description]
on each field of the third-party classes, similar like(note: I can't modify their source code, just for illustration here). I need add descriptions for AI to understand schema for each single field.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.
All reactions