Skip to content

Comments

handle invalid no arg in tool#26

Merged
huozhi merged 1 commit intomainfrom
optional-arg
Oct 17, 2025
Merged

handle invalid no arg in tool#26
huozhi merged 1 commit intomainfrom
optional-arg

Conversation

@huozhi
Copy link
Member

@huozhi huozhi commented Oct 17, 2025

This PR is to avoid LLM calling docs mcp tool without any query, it should always have a query

⏺ I'll call the Next.js docs tool without any arguments.
  ⎿  Error: MCP error -32603: Tool execution failed: Invalid arguments - query: Invalid input: expected
     string, received undefined

⏺ The query parameter is required for the Next.js docs tool. It expects a search query string. Would
  you like me to:

  1. Call it with a specific search query?
  2. Try searching for general documentation?
  3. Something else?

Closes NXT-88

@huozhi huozhi merged commit f3c5df8 into main Oct 17, 2025
2 checks passed
@huozhi huozhi deleted the optional-arg branch October 17, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant