Skip to content

request exampe - "arguments" field - confusing #54

Open
@peterborkuti

Description

@peterborkuti

I do not understand the "arguments" field in the JSON-RPC request example
https://huggingface.co/learn/mcp-course/unit1/communication-protocol

{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "weather", "arguments": { "location": "San Francisco" } } }

I thought that the "method" field contains the name of the method to call. Yes, it is a very obscure name for a method "tools/call", so I have doubts.
I checked https://www.jsonrpc.org/specification#request_object and there is no "arguments" in the examples and "method" really contains the name of the method-to-be-called".
So I can not imagine, what this "arguments" field is for. I rather think this would be enough:

{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "location": "San Francisco" } }

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