diff --git a/azure/functions/decorators/core.py b/azure/functions/decorators/core.py index cbd60b5..b9e3f7d 100644 --- a/azure/functions/decorators/core.py +++ b/azure/functions/decorators/core.py @@ -85,8 +85,8 @@ class McpPropertyType(StringifyEnum): """MCP property types.""" INTEGER = "integer" """Integer type.""" - FLOAT = "float" - """Float type.""" + FLOAT = "number" + """Float type represented as the JSON Schema "number" type.""" STRING = "string" """String type.""" BOOLEAN = "boolean" diff --git a/tests/decorators/test_mcp.py b/tests/decorators/test_mcp.py index 7a07e44..989153b 100644 --- a/tests/decorators/test_mcp.py +++ b/tests/decorators/test_mcp.py @@ -389,7 +389,7 @@ def add_numbers(a) -> int: self.assertEqual(trigger.tool_name, "add_numbers") self.assertEqual(trigger.tool_properties, '[{"propertyName": "a", ' - '"propertyType": "float", ' + '"propertyType": "number", ' '"description": "", ' '"isArray": false, ' '"isRequired": true}]')