Skip to content
Discussion options

You must be logged in to vote

The issue comes from your MCP tool configuration. Your Tool_Parameters must be a valid JSON object, like this:

{{ $fromAI('Tool_Parameters', `Use tool parameters here`, 'json', null) }}

Make sure to pre-prompt your model to follow a Record<string, string> format; otherwise, you'll get "invalid schema" errors.

Additionally, since Tool_Parameters is defined this way, even a tool without parameters (e.g., list-collections) will still include a Tool_Parameters: {} or null key, which can cause an error.

Solution: Create two execute tools – one with parameters and one without – and guide your model to use the appropriate one.

Note: It would have been better if parameters were simply ignored for…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by furey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants