-
Notifications
You must be signed in to change notification settings - Fork 284
[MCP] Add the Create_Record Built in tool #2906
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new built-in tool called Create_Record to the MCP (Model Context Protocol) endpoint, enabling record creation functionality through the MCP interface. The implementation leverages the existing REST infrastructure for query formation and validation while maintaining parity with the REST equivalent create operation.
- Implements comprehensive create record functionality with proper validation and authorization
- Integrates with existing DAB services including metadata providers, authorization resolvers, and mutation engines
- Provides detailed error handling and logging for various failure scenarios
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
The current PR description only covers the success case. Since the tool should also be validated against edge cases and other standard scenarios, I recommend expanding the testing section to include details on the various test cases executed to confirm the tool’s expected behavior. |
|
The unit tests are failing, please run dotnet format and that should fix most of the syntax issues. |
…e/data-api-builder into dev/aaronburtle/CreateRecordMCPTool
|
The unit tests are failing because of formatting issues, fix the formatting and re-run the tests. Approving the changes to unblock the PR, but waiting on
|
|
/azp run |
|
Azure Pipelines successfully started running 6 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 6 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 6 pipeline(s). |
Why make this change?
Closes #2828
By adding the
Create_Recordtool to the MCP endpoint.What is this change?
Add a built in tool,
Create_Recordwhich uses therestinfrastructure to form and validate the query needed to complete a create action. Behavior is at parity with the rest equivalent create operation.How was this tested?
Manually tested Insomnia using post.

Sample Request(s)