Skip to main content
Glama
darved2305

groww-mcp

by darved2305

cancel_sip

Cancel a Systematic Investment Plan (SIP) permanently on Groww by providing the SIP ID to stop future investments.

Instructions

Cancel a SIP permanently

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sip_idYesSIP ID to cancel

Implementation Reference

  • The handler function for cancel_sip, which uses growwClient to cancel the SIP.
    async ({ sip_id }) => {
      try {
        const result = await growwClient.cancelSIP(sip_id);
        const text = [
          `🛑 SIP CANCELLED`,
          `${"─".repeat(40)}`,
          `SIP ID:  ${result.sipId}`,
          `Status:  ${result.status}`,
          `${result.message}`,
          ``,
          `⚠️ This action is permanent. You'll need to create a new SIP to resume investing.`,
        ].join("\n");
        return mcpText(text);
      } catch (err) {
        return mcpError(normalizeError(err));
      }
    }
  • Tool registration for cancel_sip, including input schema definition.
    server.tool(
      "cancel_sip",
      "Cancel a SIP permanently",
      {
        sip_id: z.string().describe("SIP ID to cancel"),
      },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/darved2305/groww-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server