{"product":"tool-definition-check","free":true,"input":{"tool_definition":"{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"description\":\"Current weather for a city\",\"strict\":true,\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"},\"unit\":{\"type\":\"string\",\"enum\":[\"c\",\"f\"]}},\"required\":[\"city\",\"country\"],\"additionalProperties\":false}}}","format":"openai"},"output":{"ok":true,"result":{"valid":false,"reason":"definition_has_errors","format":"openai","shape":"chat_completions","tool_name":"get_weather","strict_mode":"on","dialect":"2020-12, earlier drafts as warnings","error_count":2,"warning_count":0,"problems_total":2,"offset":0,"problems":[{"severity":"error","code":"required_not_in_properties","path":"/function/parameters/required/1","path_truncated":false,"message":"The required name is not in properties and additionalProperties is false; OpenAI strict mode needs it defined.","expected":"the name defined in properties, or removed from required"},{"severity":"error","code":"strict_property_not_required","path":"/function/parameters/properties/unit","path_truncated":false,"message":"With strict: true, OpenAI strict mode requires every property to be listed in required.","expected":"the name in required; type [\"...\", \"null\"] for an optional value"}],"problems_truncated":false,"next_offset":null,"parameter_count":2,"required_count":2,"standard":"OpenAI Chat Completions and Responses API references, function-calling guide; JSON Schema meta-schemas"},"warnings":[]},"paid_url":"https://forge.fizzl.eu/p/tool-definition-check"}