Skip to content

Ensure MCP works when inputSchema.properties is missing #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Apr 7, 2025

Resolves #449 - TLDR, OpenAI's API expects the properties field to be present, whereas the MCP schema explicitly allows omitting the properties field. MCP Spec

@rm-openai rm-openai merged commit 50bbfdd into main Apr 7, 2025
10 checks passed
@rm-openai rm-openai deleted the rm/pr454 branch April 7, 2025 22:38
Lightblues pushed a commit to Lightblues/openai-agents-python that referenced this pull request Apr 13, 2025
Resolves openai#449 - TLDR, [OpenAI's
API](https://platform.openai.com/docs/api-reference/responses/create)
expects the properties field to be present, whereas the MCP schema
explicitly allows omitting the properties field. [MCP
Spec](https://github.com/modelcontextprotocol/specification/blob/main/schema/2025-03-26/schema.json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAI Agents SDK calls OpenAI API with invalid schema when MCP tool definitions have no properties field
2 participants