python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

mcp.types.Tool is not following python's naming convention

Open santosflores opened this issue 1 year ago • 0 comments

Describe the bug The input schema property is not following the snake case convention. Currently the property is defined as "inputSchema" instead of "input_schema". Ideally we can follow the convention as it is widely adopted. Additionally, not following the convention requires more lines of code on the client when passing the available tools to the API request.

https://github.com/modelcontextprotocol/python-sdk/blob/aaf32b530738ff79ba607c2884374243350f521c/src/mcp/types.py#L660

Expected behavior inputSchema get renamed to input_schema

Screenshots N/A

santosflores avatar Dec 11 '24 06:12 santosflores