Skip to main content
Glama
Rong-Ding

MarketCanvas-Env MCP Server

by Rong-Ding

execute_action

Apply one MarketCanvas design edit or submit action; invalid attempts consume one step without altering elements.

Instructions

Execute one edit or submit; an invalid attempt consumes one step without changing elements.

Examples: {"op":"move_element","id":"e1","x":100,"y":80}; {"op":"update_element","id":"e1","properties":{"text_color":"#000000"}}; {"op":"add_element","element":{"type":"text","role":"headline","content":"Summer Sale"}}; {"op":"submit"}. Call get_action_schema for full property definitions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers the most valuable behavioral trait: failed attempts burn a step yet leave elements unchanged, implying atomic failure and a cost penalty for guessing. It does not address reversibility of valid edits, idempotency, or permissions, but the step-cost disclosure is substantive and non-obvious.

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?

The key behavioral constraint (one action, invalid attempts cost a step) is front-loaded before the examples, so an agent gets the critical rule immediately. The examples are dense but each illustrates a distinct operation; the trailing quote and line breaks are minor formatting noise.

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?

An output schema exists, so return values need no explanation, and the description correctly offloads exhaustive property definitions to get_action_schema. Combined with the examples and the step-cost rule, an agent has enough to invoke correctly, though it must make a second call before authoring a valid payload.

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

Parameters4/5

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

Schema coverage is 0% and the single 'action' parameter is an untyped object with additionalProperties, so the schema provides essentially no semantics. The description compensates with four concrete payload shapes (move_element, update_element, add_element, submit) showing the op/id/properties/element keys, and defers exhaustive definitions to get_action_schema.

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

Purpose4/5

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

The description opens with a specific verb and scope: 'Execute one edit or submit,' which tells the agent this is the sole mutation entry point among read-only siblings like get_canvas_state and get_current_reward. The worked examples make the resource (canvas elements) concrete, though the resource is never named directly — the agent infers it from the payloads.

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?

It establishes the operational rule that exactly one action is executed per call and warns that an invalid attempt consumes a step without changing elements, which implicitly tells the agent to validate first. It also routes the agent to get_action_schema for full property definitions. It stops short of explicitly contrasting when to call this versus get_canvas_state or reset_environment.

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