apply_formula
Validate and write a formula into an Excel cell, then verify its serialized text before saving. Rejects unsafe functions, lossy text, and protected workbook saves.
Instructions
Apply a validated formula and verify its serialized text before saving. Maximum 8192 UTF-16 units; lossy text and unsafe functions are refused. Does not calculate formulas. Protected XLSX loss blocks the save.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filepath": "<filepath>",
"sheet_name": "<sheet_name>",
"cell": "<cell>",
"formula": "<formula>"
},
"name": "apply_formula"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| formula | Yes | ||
| filepath | Yes | Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing. | |
| sheet_name | Yes |