Skip to main content
Glama

Update navigation bar

update_navigation_bar
DestructiveIdempotent

Change the Navigation Bar in the current version's draft, like the dashboard's Navigation Bar screen: title style and color, background color, logo size and button sizes and spacing. A title style or color given as a theme name follows the App Theme. 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_navigation_bar"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe application_id recorded in this project's Twinr section.
logo_widthNoIn points, 15 to 200. Leave out to keep it.
logo_heightNoIn points, 15 to 200. Leave out to keep it.
title_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
title_styleNoA theme text style name or a custom style. Leave out to keep it.
button_widthNoIn points, 15 to 40. Leave out to keep it.
button_heightNoIn points, 15 to 40. Leave out to keep it.
button_spacingNoIn points, 0 to 25. Leave out to keep it.
background_colorNoA theme color name or a color with hex and opacity. Leave out to keep it.
button_leading_spacingNoIn points, 1 to 30. Leave out to keep it.
button_trailing_spacingNoIn points, 1 to 30. Leave out to keep it.

Output Schema

NameRequiredDescriptionDefault
messageYes
next_stepYes
navigation_barYes
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?

Adds substantial behavior beyond the annotations: partial-update semantics ('what you leave out stays'), what happens on version or plan refusals, the rule against unprompted publish/build calls, and the need to relay reply messages. These are operationally important details not captured by destructiveHint or idempotentHint.

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 purpose is front-loaded, followed by ordered operational instructions. It is dense and long, but most sentences carry actionable workflow or error-handling information rather than filler.

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 an 11-parameter mutation tool with an output schema, the definition covers the missing context an agent needs: app_id discovery, theme lookup, partial update semantics, refusal handling, next-step branching, and merchant communication. Nothing essential appears absent.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all parameters. The description adds some semantic value by explaining that theme color/style names resolve against the App Theme, but it largely repeats schema text such as the 'Inter'/'app_font' example and does not clarify the spacing parameters beyond the 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?

States a specific verb and resource: 'Change the Navigation Bar in the current version's draft,' and enumerates the affected properties (title style/color, background, logo size, button sizes and spacing). It does not explicitly name sibling tools like update_tab_bar or update_status_bar, but the resource is specific enough to distinguish it.

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?

Gives explicit when-to-use guidance: call get_app_theme first, send only changed values, handle refusal types differently, and follow next_step routing to publish_changes or start_build. It also specifies app_id discovery via list_apps and a required merchant-facing announcement before the call.

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