Skip to main content
Glama

Publish changes

publish_changes
DestructiveIdempotent

Publish the app's saved changes to the live app over the air, without a build, like the dashboard's Update live app. Use it only after a change whose reply had next_step publish, and only after the merchant's yes. Installed apps get the changes when users next switch back to the app. If status is needs_build, ask whether there's anything else to change, then offer start_build. If status is subscribe, relay the message and offer neither. Always relay the reply's message. 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": "publish_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe application_id recorded in this project's Twinr section.

Output Schema

NameRequiredDescriptionDefault
statusYes
messageYes
platformsYes
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?

Annotations already flag destructiveHint and idempotentHint, so the safety profile is covered; the description goes further by explaining propagation timing ('installed apps get the changes when users next switch back'), required merchant consent, the mandatory message relay, and a pre-call obligation to name the target app to the merchant. That is behavioral context the structured fields cannot express.

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?

Front-loaded with the core action and propagation behavior, then branches by status, then covers the missing-id path. It is dense and fairly long, but nearly every sentence drives a distinct agent decision; only the closing instruction about announcing the app name overlaps conceptually with the earlier consent requirement.

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?

An output schema exists, so return-value documentation is unnecessary, yet the description still tells the agent how to interpret the three statuses it will encounter. For a destructive, low-parameter publishing tool, the consent gate, pre-call announcement, and id-resolution rules close every practical gap.

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 100% and the app_id field already says it is 'the application_id recorded in this project's Twinr section.' The description adds real meaning on top: the discovery procedure when the value is absent, where to record it (replit.md vs AGENTS.md), and the prohibition on inferring it from project name or URL. It stops short of any format/length guidance beyond the schema's minLength/maxLength.

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?

States a specific verb and resource ('publish the app's saved changes to the live app over the air, without a build') and anchors it to a known dashboard behavior ('Update live app'). The 'without a build' clause implicitly separates it from start_build, so an agent can distinguish the two without opening either schema.

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 preconditions ('only after a change whose reply had next_step publish, and only after the merchant's yes') and routes the agent by status: needs_build -> offer start_build, subscribe -> relay message and offer neither. It also prescribes the fallback path (list_apps, ask the merchant, never infer) when application_id is missing.

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