# buyStock

A financial tool on the Zerodha Kite MCP Server MCP server.

Agent View of the PolicyLayer registry record for `buyStock`. HTML page: https://policylayer.com/tools/121yaseen-zerodha-mcp/buystock

## Facts

- Tool: `buyStock`
- Server: Zerodha Kite MCP Server (`121yaseen/zerodha-mcp`) — https://policylayer.com/tools/121yaseen-zerodha-mcp.md
- Homepage: https://github.com/121yaseen/Zerodha-MCP
- Risk category: Financial (Critical risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Approval-gated

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "buyStock",
    "arguments": {}
  }
}
```

## Why buyStock is rated Critical

Despite an empty tool description, the name 'buyStock' on a Zerodha Kite trading server clearly indicates it places buy orders for stocks, which constitutes a financial transaction. Misuse could result in unauthorized stock purchases and significant financial loss.

From the tool's own definition: "Tool name 'buyStock' on a server described as 'allowing users to buy/sell stocks'; sibling tools include 'sellStock', confirming financial trading context."

## Use case

AI agents use buyStock to commit financial operations through Zerodha Kite MCP Server, usually the final step of a payment, billing, or trading workflow. A call moves real money.

## Recommended policy (PolicyLayer)

Verdict: **Approval-gated**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Zerodha Kite MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "buyStock": {
      "deny_if": [
        {
          "conditions": [],
          "on_deny": "Requires human approval."
        }
      ]
    }
  }
}
```

## Other tools on Zerodha Kite MCP Server (4)

- `sellStock` — Financial — https://policylayer.com/tools/121yaseen-zerodha-mcp/sellstock.md
- `getHoldings` — Read — https://policylayer.com/tools/121yaseen-zerodha-mcp/getholdings.md
- `getPositions` — Read — https://policylayer.com/tools/121yaseen-zerodha-mcp/getpositions.md
- `add` — Write — https://policylayer.com/tools/121yaseen-zerodha-mcp/add.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=121yaseen-zerodha-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/121yaseen-zerodha-mcp
