Skip to main content
Glama

Change the app

myapp_change
Destructive

Change what exists in the app, as a draft that can be undone: colors, fonts, layout (template), style, visibility, images, logo, icons, texts, links, copying the design of another page, following the app's common style or having an own style, order, menu type and page settings. One call holds 1 to 20 changes on one target and makes one step that myapp_undo reverts; a change of image, a copy of design or a change of common style goes alone in its call. Each change names an address read with myapp_get_app (intent, and role, item and detail when the read gives them) and a value; a role without item changes every element of that role in the part. Colors are #RRGGBB, transparent or a color name of the app palette; gradients {from, to, angle} with an angle in steps of 45; fonts a family name or Family:weight (e.g. Poppins:600); without a weight, the current weight is kept when the new family has it, otherwise 400 or the family's first weight; icons an icon name or {icon_id}, as found with myapp_get_app (include icons and query); a word that names no icon is refused with the closest icons; sizes numbers within the allowed range; choices one of the allowed labels; images a public https URL; links {page}, {url}, {phone}, {sms}, {email} or {stores}; order {position}, {before} or {after}, and for a page {menu, position} to move it into the menu (true) or out of it (false), or {folder, position}; null removes an image, a link or a gradient. On a page without a part, visibility publishes or hides the page, icons changes the icon of the page, shown on its tile in a folder list (the icon of a tab is that of its menu item: scope menu_item, item item.icon) and order moves it. These changes stay in the app's draft: users see them at the next Publish of the back office, unlike content added or changed with content_add and content_change, visible at once. The answer gives each change before and after, the change_id and a preview link; a refusal says why and what is possible instead. The app can also change outside this conversation: before acting on what was read earlier, read it again with myapp_get_app; after a conflict or an unexpected result, read it again before trying again. With draft, some changes come once the app is kept in the user's account (images and other files, content, sources, extensions, user groups, changes that cannot be undone): the refusal says which, and myapp_create with the draft keeps the app. On a draft only, intent look, alone in its call with target scope app, changes what the app starts from: value {theme, menu_type, name}, at least one, theme a look id from myapp_propose; the changes made are applied again on it.

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": {
      "target": "<target>",
      "changes": "<changes>"
    },
    "name": "myapp_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
draftNoSecret of a draft, returned once by myapp_create without an account: the app as it takes shape, before it is kept in the user's account. Pass it back as draft, instead of app, to read, preview and change it, until myapp_create with this draft keeps the app in the account. It is not an id: do not show it to the user.
targetYesWhere the change applies, with names read with myapp_get_app.
changesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / changes / items / properties / item / description
      Previous value: -"Named element of the target, as read with myapp_get_app."New value: +"Named element of the target, as read with myapp_get_app. A change has no element: a setting read with element belongs to a sub-element, named by target.element, one sub-element per call."
    • changedInput schema / properties / target / properties / part / description
      Previous value: -"Not for a screen: a screen (walkthrough, cart…) is named by target.item, not by part. Part of the target: list (the list of a page), item_page (the page of one item), header, category_bar, comments, search, settings (page settings), block (a home block), menu parts, which depend on the menu type (read target scope menu without part to get them; for example, a floating tab bar has menu, menu_button and more_button), app-wide design parts (palette, typography, background, buttons, fields, floating_button, haptics, icon_set, login_screen, spacing, thumbnails), and home."New value: +"Not for a screen: a screen (walkthrough, cart…) is named by target.item, not by part. Part of the target: list (the list of a page), item_page (the page of one item), header, category_bar, comments, search, settings (page settings), block (a home block), menu parts, which depend on the menu type (read target scope menu without part to get them; for example, a floating tab bar has menu, menu_button and more_button), app-wide design parts (palette, typography, background, buttons, fields, floating_button, haptics, icon_set, login_screen, spacing, thumbnails), and home, a part of scope app with no setting to read or change: the home page is a page (part settings), and each block of the home is a target of scope home_block (part block)."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=false), the description discloses the draft/publish lifecycle, that myapp_undo reverts one call as one step, the 1-20 change limit per call, that refusals explain why and what is possible instead, and that some changes only land once the app is kept in the account. It also documents conflict recovery. This is far more behavioral context than the annotations carry.

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

Conciseness3/5

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

Almost every sentence carries real information, but the whole definition is delivered as two dense, run-on paragraphs with no line breaks or grouping, mixing format specs, lifecycle rules, and conflict handling together. The key scoping fact (draft vs. immediate content) is buried mid-paragraph. A bulleted or sectioned layout would make it substantially easier to scan.

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?

For a 4-parameter, nested-object mutation tool with no output schema and only 50% schema coverage, the description covers everything an agent needs: target/scope semantics, value formats, draft lifecycle, atomicity, failure/refusal behavior, and recovery steps. Nothing material about calling it correctly is missing.

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 coverage is only 50% and the description compensates heavily: it defines value formats for colors (#RRGGBB, transparent, palette names), gradients ({from, to, angle} in 45° steps), fonts (Family:weight with weight-fallback rules), icons (name or {icon_id}), links ({page}, {url}, {phone}, {sms}, {email}, {stores}), order ({position}/{before}/{after}, page move forms), and null-removal semantics. It also explains that each change pairs an address read with myapp_get_app with a value.

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 opening states a specific verb and resource ('Change what exists in the app, as a draft that can be undone') and then enumerates the design surfaces it touches (colors, fonts, layout, visibility, images, icons, texts, links, order, menu type). It also explicitly distinguishes itself from content_add/content_change ('visible at once' vs. the draft published at the next Publish). The enumeration is a long laundry list that makes the tool's boundary slightly fuzzy, but the verb+resource core is clear.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use and when-not-to-use guidance: it names the sibling content_add/content_change and states the distinguishing condition (immediate visibility vs. draft until Publish). It also gives operational rules — re-read with myapp_get_app before acting on earlier reads and after a conflict, keep image/copy_design/common-style changes alone in their call, and use intent look only on a draft with scope app.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.