Skip to main content
Glama

Update app theme

update_app_theme
DestructiveIdempotent

Change the App Theme in the current version's draft, like the dashboard's App Theme screen: colors, text_styles (size, weight, font) and the primary and secondary buttons. Tab bar and navigation bar colors set to a theme color name follow the App Theme colors. A font is a name like "Inter", or "app_font" to use the app's font. Call get_app_theme first and send only what changes; what you leave out stays. A refusal saying a newer app version is needed: offer a new version, asking the merchant for its number, then call create_app_version and this tool again. A refusal about the merchant's plan: relay it and don't retry. Always relay the reply's message. When the reply has a next_step, first ask whether there's anything else to change, since one publish or build covers every change so far. Then for publish, offer publish_changes; for build, offer start_build; for subscribe, relay the message and offer neither. If you made a change earlier in this conversation that needs a build, offer a build instead of a publish. Never call publish_changes or start_build unprompted. If this project's Twinr section (replit.md on Replit, otherwise AGENTS.md) has no application_id, call list_apps, show the merchant every organization and its apps, and ask which app this project is. Never choose one yourself, and never infer it from the project's name or URL. Then record it in the project's Twinr section. Before calling this tool, tell the merchant which app you are changing by name, e.g. "Updating the icon for Shop Name…".

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": {
      "app_id": "<app_id>"
    },
    "name": "update_app_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe application_id recorded in this project's Twinr section.
colorsNoTheme colors to change. Leave out to keep it.
buttonsNoButton styles to change. Leave out to keep it.
text_stylesNoTheme text styles to change. Leave out to keep it.

Output Schema

NameRequiredDescriptionDefault
messageYes
app_themeYes
next_stepYes
version_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint false, destructiveHint true, idempotent true, openWorldHint false), so the description carries the real burden and does so: it discloses partial-merge semantics ('what you leave out stays'), version-conflict behavior, plan-refusal behavior, and the rule that a single publish or build covers all accumulated changes. It also requires confirming the app with the merchant before invoking and forbids guessing the app_id from project name or URL. None of this is recoverable from the annotations.

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?

It is front-loaded correctly, opening with what changes, but the body is a long, dense braid of workflow, error handling, and conversation policy, with some redundancy (the relay instruction appears twice, once generally and once in the subscribe branch). There is also a misleading artifact: the pre-call confirmation example reads 'Updating the icon for Shop Name…', which belongs to a different tool and could nudge an agent toward the wrong phrasing. Most sentences earn their place, but the density and the stray 'icon' example cost this dimension.

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 a mutating tool with an output schema, nested optional inputs, and a multi-step publish/build workflow, the description covers the prerequisites, the partial-update contract, the refusal paths, and the follow-up offers. Return-value semantics are left to the output schema, which is appropriate. Nothing an agent needs to call this correctly in context appears to be missing.

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 description coverage is 100%, so the baseline is 3; the description goes beyond it by explaining the partial-update contract for the optional colors/buttons/text_styles objects and the font convention ('a name like "Inter", or "app_font" to use the app's font'). It also explains where app_id must come from. It does not clarify the shape of the nested color/button objects, but the schema already does that well.

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 gives a specific verb and resource and pins the scope: 'Change the App Theme in the current version's draft', with the editable areas enumerated (colors, text_styles, primary/secondary buttons) and an analogy to the dashboard's App Theme screen. It also implicitly separates itself from sibling bar tools by noting that tab bar and navigation bar colors set to a theme color name follow the App Theme colors. It stops short of naming the sibling tools it might be confused with, so a 4 rather than a 5.

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 sequencing ('Call get_app_theme first and send only what changes'), explicit refusal handling (offer a new version, then create_app_version; relay a plan refusal and don't retry), and explicit branching on next_step into publish_changes or start_build. It also states prohibitions ('Never call publish_changes or start_build unprompted') and a prerequisite fallback via list_apps when application_id is missing. This is about as complete a when-to-use and when-to-call-others specification as a definition can carry.

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.

Resources