Skip to content

Question: tool/call execution not working #45

@lmcdasi

Description

@lmcdasi

I'm having an issue making the starter-webflux-server working. I do have the tool registered but when a tool/call is sent the weather tool does not get invoked
I use starter-stdio-server to try to understand more and I send the following two json requests:

  1. {"jsonrpc": "2.0","method": "initialize","params": {"protocolVersion": "2024-11-05","model": "gpt-4","tools": ["getWeatherForecastByLocation", "getAlerts"], "capabilities": {"tools": {}}},"id": 1}

which gives:
2025-05-26T09:25:19.635-04:00 DEBUG 24580 --- [pool-2-thread-1] i.m.s.t.StdioServerTransportProvider : Received JSON message: {"jsonrpc": "2.0","method": "initialize","params": {"protocolVersion": "2024-11-05","model": "gpt-4","tools": ["getWeatherForecastByLocation", "getAlerts"], "capabilities": {"tools": {}}},"id": 1}
2025-05-26T09:25:19.637-04:00 DEBUG 24580 --- [pool-2-thread-1] io.modelcontextprotocol.spec.McpSchema : Received JSON message: {"jsonrpc": "2.0","method": "initialize","params": {"protocolVersion": "2024-11-05","model": "gpt-4","tools": ["getWeatherForecastByLocation", "getAlerts"], "capabilities": {"tools": {}}},"id": 1}
2025-05-26T09:25:19.656-04:00 DEBUG 24580 --- [pool-2-thread-1] i.m.spec.McpServerSession : Received request: JSONRPCRequest[jsonrpc=2.0, method=initialize, id=1, params={protocolVersion=2024-11-05, model=gpt-4, tools=[getWeatherForecastByLocation, getAlerts], capabilities={tools={}}}]
2025-05-26T09:25:19.666-04:00 INFO 24580 --- [pool-2-thread-1] i.m.server.McpAsyncServer : Client initialize request - Protocol: 2024-11-05, Capabilities: ClientCapabilities[experimental=null, roots=null, sampling=null], Info: null

  1. {"jsonrpc": "2.0","method": "tools/call","params": {"name": "getWeatherForecastByLocation","arguments": {"arg0": 47.6062,"arg1": -122.3321}},"id": 2}

2025-05-26T09:26:36.458-04:00 DEBUG 24580 --- [pool-2-thread-1] i.m.s.t.StdioServerTransportProvider : Received JSON message: {"jsonrpc": "2.0","method": "tools/call","params": {"name": "getWeatherForecastByLocation","arguments": {"arg0": 47.6062,"arg1": -122.3321}},"id": 2}
2025-05-26T09:26:36.460-04:00 DEBUG 24580 --- [pool-2-thread-1] io.modelcontextprotocol.spec.McpSchema : Received JSON message: {"jsonrpc": "2.0","method": "tools/call","params": {"name": "getWeatherForecastByLocation","arguments": {"arg0": 47.6062,"arg1": -122.3321}},"id": 2}
2025-05-26T09:26:36.463-04:00 DEBUG 24580 --- [pool-2-thread-1] i.m.spec.McpServerSession : Received request: JSONRPCRequest[jsonrpc=2.0, method=tools/call, id=2, params={name=getWeatherForecastByLocation, arguments={arg0=47.6062, arg1=-122.3321}}]

And there is no actual execution of the getWeatherForecastByLocation tool (I had added a logger.info).

Any idea what I do wrong ?

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