Skip to content

MCP Server #17

@andrehe001

Description

@andrehe001

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions