Skip to main content
Glama
t0knight
by t0knight

update_widgets

Update widget properties in an Appsmith app with deep merging and automatic binding of triggers and dynamic expressions.

Instructions

Apply property updates to one or more widgets. Each entry is {"widget_id": <id>, "props": {<prop>: <value>, ...}}.

Dict values are deep-merged with existing state — so to change just one sub-key you
can pass `{"srcDoc": {"css": "..."}}` without resending html/js. Non-dict values are
replaced.

Bindings and triggers are wired automatically:
  - properties whose name starts with `on` (e.g. `onClick`) are registered as triggers.
  - string values containing `{{...}}` are registered as dynamic bindings.
  - any other value is a literal and is removed from the dynamic path lists.

Composite widgets (Statbox) and Modal show/hide are delegated automatically.
Returns a list of per-widget results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
updatesYes
Behavior4/5

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

Discloses key behaviors such as deep-merge semantics, automatic registration of triggers and bindings, and delegation for modals/statboxes. Mentions return value but lacks clarity on error handling or authentication needs. Since no annotations exist, the description carries full burden and does so well.

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

Conciseness4/5

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

Several sentences but well-structured, front-loading the main action and then detailing subtleties. Could be slightly more concise, but each sentence adds value.

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

Completeness4/5

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

Comprehensive for a complex tool with one parameter and no output schema. Covers input format, behavior, and return. Minor omissions like error handling or invalid IDs, but sufficient for most use cases.

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?

Compensates for 0% schema coverage by fully explaining the structure of the 'updates' parameter: each entry must have widget_id and props, and describes how different value types are handled (dict deep-merge, non-dict replace, bindings/triggers).

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?

Clearly states 'Apply property updates to one or more widgets,' using a specific verb and resource. Distinguishes from sibling tools like delete_widgets, add_widgets, and reparent_widgets.

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?

Provides detailed instructions on how to structure updates, including deep merging, automatic binding/triggers, and delegation for composite widgets. However, it does not explicitly state when to avoid using this tool.

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/t0knight/appsmith-mcp'

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