Skip to main content
Glama
darved2305

groww-mcp

by darved2305

remove_from_watchlist

Remove a stock symbol from your watchlist on Groww to declutter and focus on relevant investments.

Instructions

Remove a stock symbol from your watchlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol to remove
exchangeNoExchangeNSE

Implementation Reference

  • Tool registration and handler definition for remove_from_watchlist in the watchlist tools file.
    // ── remove_from_watchlist ─────────────────────────────────
    server.tool(
      "remove_from_watchlist",
      "Remove a stock symbol from your watchlist",
      {
        symbol: z.string().describe("Stock symbol to remove"),
        exchange: z.enum(["NSE", "BSE"]).default("NSE").describe("Exchange"),
      },
      async ({ symbol, exchange }) => {
        try {
          const sym = normalizeSymbol(symbol);
          const result = await growwClient.removeFromWatchlist(sym, exchange);
          return mcpText(`🗑️ ${sym}.${exchange} removed from watchlist`);
        } catch (err) {
          return mcpError(normalizeError(err));
        }
      }
    );
  • Actual API implementation for removing a stock symbol from the watchlist via GrowwClient.
    async removeFromWatchlist(symbol: string, exchange: string): Promise<{ status: string; message: string }> {
      if (isMockMode()) return { status: "success", message: `${symbol} removed from watchlist` };
      return this.request("DELETE", "/watchlist/remove", { symbol, exchange });
    }

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