Low Risk

calculate_gratuity

calculate_gratuity

How to control calculate_gratuity ↓

What calculate_gratuity does on Mcp India Stack

AI agents call calculate_gratuity as a supporting operation in Mcp India Stack workflows.

Low Risk

Why calculate_gratuity needs a policy

Based on the tool name and server context (tax calculations, financial tools for Indian APIs), this tool likely performs a gratuity calculation — a read/compute operation with no side effects. However, the empty description lowers confidence. Gratuity calculation is a mathematical computation similar to other sibling tools like calculate_emi and calculate_fd_maturity, which are read-only calculations.

From the tool's definition Tool name is 'calculate_gratuity'; description is empty or uninformative.

Documented attack patterns abuse exactly the kind of access calculate_gratuity gives an agent:

How to control calculate_gratuity

PolicyLayer is an MCP gateway — it sits between your AI agents and Mcp India Stack, and nothing reaches the server without passing your rules. This is the rule we recommend for calculate_gratuity:

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "calculate_gratuity": {
      "limits": [
        {
          "counter": "calculate_gratuity_rate",
          "window": "minute",
          "max": 60,
          "scope": "grant"
        }
      ]
    }
  }
}

calculate_gratuity gets a rate cap, and everything else on the server is denied unless you say otherwise.

  1. Create a free account and register Mcp India Stack — nothing to install.
  2. Add this policy — paste it, or build it visually.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
SET A RULE FOR THIS TOOL →

Free to start. No card required.

Related tools and policies

Go deeper

Questions about calculate_gratuity

What does the calculate_gratuity tool do? +

calculate_gratuity. It is categorised as a Other tool in the Mcp India Stack MCP Server, which means it performs auxiliary operations.

How do I enforce a policy on calculate_gratuity? +

Register the Mcp India Stack MCP server in PolicyLayer and add a rule for calculate_gratuity: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp India Stack. Nothing to install.

What risk level is calculate_gratuity? +

calculate_gratuity is a Other tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit calculate_gratuity? +

Yes. Add a rate_limit block to the calculate_gratuity rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block calculate_gratuity completely? +

Set action: deny in the PolicyLayer policy for calculate_gratuity. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides calculate_gratuity? +

calculate_gratuity is provided by the Mcp India Stack MCP server (rehan1020/mcp-india-stack). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Mcp India Stack tool call.

Start from Mcp India Stack, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.

Free to start. No card required.

58 Mcp India Stack tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.