wps_excel_update_chart
更新Excel图表的属性,包括标题、颜色、图例、数据标签等。 使用场景: - "把图表标题改成销售报表" -> 更新 title - "隐藏图例" -> 设置 show_legend: false - "显示数据标签" -> 设置 show_data_labels: true - "改变图表类型为折线图" -> 设置 chart_type: line 注意:需要先通过 wps_excel_create_chart 创建图表,或者指定已存在图表的名称/索引
This record as markdown: /tools/wps-office-mcp/wps-excel-update-chart.md
What wps_excel_update_chart does on Wps Office
AI agents use wps_excel_update_chart to create or update resources in Wps Office, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Wps Office environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
sheet | string | — | 图表所在的工作表名称 |
title | string | — | 新的图表标题 |
colors | array | — | 系列颜色数组,如 ["#FF0000", "#00FF00", "#0000FF"] |
chart_name | string | — | 图表名称,与chart_index二选一 |
chart_type | string | — | 更改图表类型 |
data_range | string | — | 更改数据源范围 |
chart_index | number | — | 图表索引(从1开始),与chart_name二选一 |
show_legend | boolean | — | 是否显示图例 |
legend_position | string | — | 图例位置:bottom(下)、top(上)、left(左)、right(右) |
show_data_labels | boolean | — | 是否显示数据标签 |
Parameters from the server's own tool schema.
Why wps_excel_update_chart is rated Medium
An AI agent can call wps_excel_update_chart faster than any human can review: one bad instruction and it creates or modifies resources in Wps Office by the hundred, each call as confident as the last.
Risk signalsHigh parameter count (10 properties)
Attacks that exploit this kind of access
The rule that runs wps_excel_update_chart safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Wps Office, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For wps_excel_update_chart, this is the rule to start with:
wps_excel_update_chart stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Wps Office, apply this rule, and every wps_excel_update_chart call is checked against it from then on.
Questions about wps_excel_update_chart
更新Excel图表的属性,包括标题、颜色、图例、数据标签等。 使用场景: - "把图表标题改成销售报表" -> 更新 title - "隐藏图例" -> 设置 show_legend: false - "显示数据标签" -> 设置 show_data_labels: true - "改变图表类型为折线图" -> 设置 chart_type: line 注意:需要先通过 wps_excel_create_chart 创建图表,或者指定已存在图表的名称/索引. It is categorised as a Write tool in the Wps Office MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
wps_excel_update_chart accepts 10 parameters: sheet, title, colors, chart_name, chart_type, data_range, chart_index, show_legend, legend_position, show_data_labels. The full parameter table on this page comes from the server's own tool schema.
Register the Wps Office MCP server in PolicyLayer and add a rule for wps_excel_update_chart: 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 Wps Office. Nothing to install.
wps_excel_update_chart is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the wps_excel_update_chart 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.
Set action: deny in the PolicyLayer policy for wps_excel_update_chart. 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.
wps_excel_update_chart is provided by the Wps Office MCP server (wps-office-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Wps Office, and thousands of servers like it.
This server
Across the catalogue