Skip to main content
Glama

Update tab bar

update_tab_bar
DestructiveIdempotent

Change the Tab Bar in the current version's draft, like the dashboard's Tab Bar screen. A color given as a theme color name follows the App Theme colors. A field only applies to some styles: show_titles to default and indicator; selected and unselected colors and fonts to default and indicator with titles shown (selected ones also to flashy and sliding); tab_background_color and border_color to sliding; corner_radius to sliding and floating; indicator_color to indicator and floating; indicator_type and indicator_position to indicator. Send style together with the fields it needs. 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_tab_bar"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNoLeave out to keep it.
app_idYesThe application_id recorded in this project's Twinr section.
icon_widthNoIn points, 15 to 30. Leave out to keep it.
icon_heightNoIn points, 15 to 30. Leave out to keep it.
show_titlesNoLeave out to keep it.
border_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
corner_radiusNoIn points, 0 to 50. Leave out to keep it.
selected_fontNoA font name like Inter, or app_font. Leave out to keep it.
indicator_typeNoLeave out to keep it.
selected_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
indicator_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
unselected_fontNoA font name like Inter, or app_font. Leave out to keep it.
background_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
unselected_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
indicator_positionNoLeave out to keep it.
tab_background_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.

Output Schema

NameRequiredDescriptionDefault
messageYes
tab_barYes
next_stepYes
version_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, non-read-only), the description discloses that edits land in a draft and are only surfaced by a publish or build, that omitted fields are preserved, and how refusals behave (newer-version refusal is recoverable via create_app_version; plan refusal must be relayed and not retried). It also warns that an inferred application_id is never acceptable, which is real operational risk guidance.

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?

Purpose and the style/field matrix are front-loaded, but the back half is a dense run-on of conversational workflow rules that reads as agent policy rather than tool documentation. The closing example, "Updating the icon for Shop Name…", is a copy-paste artifact from a different tool and momentarily misdirects the reader about what this tool changes.

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 16-parameter, destructive, style-conditional mutation with an output schema, the description covers what is missing from structured data: prerequisites, partial-update semantics, per-style field validity, error recovery, and the post-change publish/build handoff. Nothing an agent needs in order to call it safely is absent.

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 100%, so the baseline would be 3, but the description adds meaning the schema cannot express: which fields are valid for which style (show_titles only for default/indicator, tab_background_color and border_color only for sliding, corner_radius for sliding/floating, indicator_* for indicator/floating) and the rule to send style alongside the fields it governs. It also clarifies that theme color names track App Theme colors and that "app_font" resolves to the app's font.

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?

Opens with a specific verb and resource: "Change the Tab Bar in the current version's draft," and anchors it to a known surface ("the dashboard's Tab Bar screen"). The resource name alone separates it from siblings like update_navigation_bar and update_status_bar without needing an explicit contrast sentence.

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?

Explicitly prescribes prerequisites ("Call get_app_theme first"), partial-update behavior ("send only what changes"), and a full routing decision tree for next_step: publish_changes vs start_build vs neither on subscribe, plus the override when an earlier change needs a build. It also states hard prohibitions ("Never call publish_changes or start_build unprompted") and the app_id resolution path through list_apps.

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