Skip to content

Conversation

@rodneyshibu
Copy link
Collaborator

@rodneyshibu rodneyshibu commented Nov 20, 2025

Context
We occasionally see agents pass in args without the prompts field specified (particularly when arguments are optional for the tool). This results in an error when calling our MCP tools

What changes are proposed in this pull request?
This PR normalizes the args to pass in an empty prompts to the tool if prompts isn't specified, which should resolve the issue.

How was this tested?
Tested this by deploying to preview env
Screenshot 2025-11-11 at 19 33 03

#LKB-6294

@rodneyshibu rodneyshibu changed the title fix: fix destructuring issue when agent does not pass params fix: resolve destructuring issue when agent does not pass params Nov 20, 2025
@rodneyshibu rodneyshibu marked this pull request as ready for review November 20, 2025 16:30
@github-actions
Copy link

🚀 Preview deployment ready: https://preview-mcp.neon.tech

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants