# set_formula

设置单元格公式

Agent View of the PolicyLayer registry record for `set_formula`. HTML page: https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/set-formula

## Facts

- Tool: `set_formula`
- Server: Excel MCP Server with Supabase Storage (`1126misakp/excel-mcp-server-with-supabase-storage`) — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage.md
- Homepage: https://github.com/1126misakp/Excel-MCP-Server-with-Supabase-Storage
- Risk category: Write (Medium risk)
- Registry record: grade C, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

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

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

## Why set_formula is rated Medium

Setting formulas in Excel cells is a data modification operation. It is categorized as Write rather than Execute because it modifies spreadsheet formulas within the confined Excel context, not arbitrary code execution. It is reversible (formulas can be changed or cleared), so it does not qualify as Destructive.

From the tool's own definition: "Tool name 'set_formula' and description '设置单元格公式' (set cell formula) indicate modification of cell contents. This is a reversible write operation that changes cell values/formulas but does not delete data or execute arbitrary code."

## Use case

AI agents use set_formula to create or update resources in Excel MCP Server with Supabase Storage, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Excel MCP Server with Supabase Storage environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Excel MCP Server with Supabase Storage:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "set_formula": {
      "limits": [
        {
          "counter": "set_formula_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Excel MCP Server with Supabase Storage (11)

- `recalculate_formulas` — Execute — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/recalculate-formulas.md
- `parse_excel_to_json` — Read — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/parse-excel-to-json.md
- `create_excel_from_json` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/create-excel-from-json.md
- `manage_sheets` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/manage-sheets.md
- `manage_storage` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/manage-storage.md
- `merge_cells` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/merge-cells.md
- `merge_excel_files` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/merge-excel-files.md
- `modify_cell_format` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/modify-cell-format.md
- `set_column_widths` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/set-column-widths.md
- `set_row_heights` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/set-row-heights.md
- `unmerge_cells` — Write — https://policylayer.com/tools/1126misakp-excel-mcp-server-with-supabase-storage/unmerge-cells.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=1126misakp-excel-mcp-server-with-supabase-storage · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/1126misakp-excel-mcp-server-with-supabase-storage
