Skip to content

feat: add update_order MCP tool (razorpay-mcp-tool-gen)#98

Open
rzp-slash[bot] wants to merge 1 commit intomainfrom
feat/update-order-tool
Open

feat: add update_order MCP tool (razorpay-mcp-tool-gen)#98
rzp-slash[bot] wants to merge 1 commit intomainfrom
feat/update-order-tool

Conversation

@rzp-slash
Copy link
Copy Markdown

@rzp-slash rzp-slash Bot commented Mar 26, 2026

Summary

  • Implements update_order tool for PATCH /v1/orders/{id} using the razorpay-mcp-tool-gen skill
  • Improves tool description to follow LLM-friendly guidelines: clearly states what the tool does, when to use it, and the immutability constraint (only notes can be updated)
  • All existing unit tests pass ✅

API Reference

Endpoint: PATCH /v1/orders/{order_id}

Required params:

  • order_id — Order ID with order_ prefix
  • notes — Key-value pairs (max 15, 256 chars each)

Response: Full updated order object

Test plan

  • go test ./pkg/razorpay/... -v -run Test_UpdateOrder — 4 tests passing
  • Manual verification with MCP client

References

🤖 Generated with Claude Code

Update the description of the update_order MCP tool to follow
LLM-friendly description guidelines from the razorpay-mcp-tool-gen
skill — clearly stating what the tool does, when to use it, and
the immutability constraint on non-notes fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.35%. Comparing base (7950d51) to head (7da0eae).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #98   +/-   ##
=======================================
  Coverage   97.35%   97.35%           
=======================================
  Files          35       35           
  Lines        7567     7570    +3     
=======================================
+ Hits         7367     7370    +3     
  Misses        136      136           
  Partials       64       64           
Flag Coverage Δ
unittests 97.35% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

6 participants