fastapi_mcp icon indicating copy to clipboard operation
fastapi_mcp copied to clipboard

[BUG] Incalid tools[0].funcation.decription : string too ling. Expected a string with maximum length 1024,bug got a string witrh length

Open mio-hu opened this issue 9 months ago • 3 comments

Describe the bug

Image I suspect that all the arguments were generated into the tool's comments, which led to this long error

To Reproduce My tool has a lot of parameters, about 20 parameters

System Info python 3.10.4

mio-hu avatar Apr 22 '25 10:04 mio-hu

Can you please provide more detail on this?

  • a code snippet of your api endpoint
  • at what stage are you seeing this? the tool was generated successfully but when you run it with a client you get this? which mcp client did you use?

shira-ayal avatar Apr 24 '25 13:04 shira-ayal

Image Here's my tool using this parameter class

mio-hu avatar Apr 27 '25 03:04 mio-hu