-
Notifications
You must be signed in to change notification settings - Fork 84
Description
When running the 3.1-sk-with-mcp.ipynb whatever is entered as question, the MCP server returns following error:
Function failed. Error: Parameter params is required but not provided in the arguments.
Error invoking function ContosoMCP-get_subscription_detail: Parameter params is required but not provided in the arguments..
Traceback (most recent call last):
File "c:\Trainwork\semantic-kernel-workshop.venv\Lib\site-packages\semantic_kernel\kernel.py", line 423, in _inner_auto_function_invoke_handler
result = await context.function.invoke(context.kernel, context.arguments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Trainwork\semantic-kernel-workshop.venv\Lib\site-packages\semantic_kernel\functions\kernel_function.py", line 258, in invoke
raise e
File "c:\Trainwork\semantic-kernel-workshop.venv\Lib\site-packages\semantic_kernel\functions\kernel_function.py", line 250, in invoke
await stack(function_context)
File "c:\Trainwork\semantic-kernel-workshop.venv\Lib\site-packages\semantic_kernel\functions\kernel_function_from_method.py", line 102, in _invoke_internal
function_arguments = self.gather_function_parameters(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Trainwork\semantic-kernel-workshop.venv\Lib\site-packages\semantic_kernel\functions\kernel_function_from_method.py", line 188, in gather_function_parameters
raise FunctionExecutionException(
semantic_kernel.exceptions.function_exceptions.FunctionExecutionException: Parameter params is required but not provided in the arguments.
It seems as the def get_subscription_detail(params: SubscriptionIdParam) -> SubscriptionDetail: doesn't get an argument.