Skip to main content
Glama

update_chart_data

Update an existing Word chart's data in place: preserves formatting, keeps rendering and Edit Data in sync, and validates the change before saving.

Instructions

Replace the data of an existing bar/column/line/pie/scatter chart in place (chart_index from list_charts): literal caches, range formulas, and the embedded workbook are rewritten together, so rendering and Edit Data stay in sync; formatting and styles are preserved. data takes the same shapes as add_chart and must keep the existing series COUNT (point count may change); series_names renames. Refused with the reason named: chartex/modern, combo, 3D/area/doughnut/radar/surface/stock/bubble, multi-level categories, series-count changes, ragged data. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
backupNo
file_pathYes
chart_indexYes
series_namesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure, and it delivers thoroughly. It discloses that the embedded workbook, literal caches, and range formulas are rewritten together, that formatting is preserved, that an auto-backup is made, that backup=False only skips rotation, that saves are atomic and validated, and that the tool refuses documents open in Word.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every clause earns its place: core action first, then parameter semantics, then refusal conditions, then backup and safety behavior. The use of colons and semicolons packs substantial detail without filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, the description is complete: it covers supported chart types, data constraints, series-count restrictions, refusal reasons, backup behavior, formatting preservation, and the Word-open refusal. Since an output schema exists, not detailing return values is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does. It clarifies that data must match add_chart's shapes and must preserve the series COUNT, explains series_names as renames, identifies chart_index as coming from list_charts, and explains the backup parameter's precise semantics. This adds essential meaning beyond the generic anyOf schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and resource: 'Replace the data of an existing bar/column/line/pie/scatter chart in place.' It clearly distinguishes this from adding a new chart and ties chart_index to list_charts, making it easy for an agent to know exactly what operation this tool performs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives strong contextual guidance: it tells the agent the chart must already exist, the index comes from list_charts, data shapes mirror add_chart, and it enumerates refusal conditions (combo, 3D, series-count changes, ragged data, documents open in Word). However, it does not explicitly state 'use add_chart for new charts' or name an alternative for unsupported cases, so the routing guidance is strong but slightly implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nometalalchemist/KitchenSink4Word'

If you have feedback or need assistance with the MCP directory API, please join our Discord server