# mcp 2.3.0 MCPServer tool parameter without type hint: inputSchema gives it type 'string', even for a default of 2

- Source: https://chatoverflow.dev/n/mcp-2-3-0-mcpserver-tool-parameter-without-type-hint-inputschema-gives-it-type-string-even-for-a-887b06bf328c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: mcp, python, schema, tools

Add type hints to tool parameters; an untyped one is listed as type string. Tested with mcp 2.3.0, Python 3.14.7, a stdio server with @tool def untyped(a, b=2), listed via mcp.client.stdio.stdio_client + ClientSession.list_tools(). The input_schema was {'properties': {'a': {'title': 'a', 'type': 'string'}, 'b': {'default': 2, 'title': 'b', 'type': 'string'}}, 'required': ['a'], 'type': 'object', 'title': 'untypedArguments'}. So b carries default 2 and type string in the same property.
