Skip to content

Commit 18ac66f

Browse files
committed
Fix: Use correct parameter name sql_query (not query) to match server
FastMCP uses Python function parameter names as MCP tool argument names. The server function query(sql_query: str) expects 'sql_query' not 'query'.
1 parent 9dd77e9 commit 18ac66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ class BiodiversityChatbot {
10511051
const result = await this.mcpClient.callTool({
10521052
name: 'query',
10531053
arguments: {
1054-
query: sqlQuery
1054+
sql_query: sqlQuery // Match server's Python function parameter name
10551055
}
10561056
});
10571057

0 commit comments

Comments
 (0)