Skip to main content
Glama
darved2305

groww-mcp

by darved2305

add_to_watchlist

Add stock symbols to your watchlist for tracking market data and managing equity holdings on the Groww platform.

Instructions

Add a stock symbol to your watchlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol to add, e.g. RELIANCE
exchangeNoExchangeNSE

Implementation Reference

  • The `add_to_watchlist` tool definition, input schema, and handler logic.
    server.tool(
      "add_to_watchlist",
      "Add a stock symbol to your watchlist",
      {
        symbol: z.string().describe("Stock symbol to add, e.g. RELIANCE"),
        exchange: z.enum(["NSE", "BSE"]).default("NSE").describe("Exchange"),
      },
      async ({ symbol, exchange }) => {
        try {
          const sym = normalizeSymbol(symbol);
          const result = await growwClient.addToWatchlist(sym, exchange);
          return mcpText(`✅ ${sym}.${exchange} added to watchlist`);
        } catch (err) {
          return mcpError(normalizeError(err));
        }
      }
    );
  • The `addToWatchlist` API client method that executes the actual HTTP request.
    async addToWatchlist(symbol: string, exchange: string): Promise<{ status: string; message: string }> {
      if (isMockMode()) return { status: "success", message: `${symbol} added to watchlist` };
      return this.request("POST", "/watchlist/add", { 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