π The fast, Pythonic way to build MCP servers and clients.
Update tool.py
Jeremiah Lowinc3054fb83e6a
diff --git a/src/fastmcp/tools/tool.py b/src/fastmcp/tools/tool.pyindex aa613b612..492dbeaca 100644--- a/src/fastmcp/tools/tool.py+++ b/src/fastmcp/tools/tool.py@@ -126,7 +126,7 @@ class Tool(BaseModel):if isinstance(parsed_args.get(param_name, None), str):try:parsed_args[param_name] = json.loads(parsed_args[param_name])- except Exception:+ except json.JSONDecodeError:passtype_adapter = get_cached_typeadapter(self.fn)