Skip to main content
Glama

Publish a code update

approve_code_update
Destructive

Publish one proposed article update from Code updates, as drafted or with your edited Markdown. The article is saved like an editor save and goes live.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYesThe proposal id from get_code_updates.
proposedNoThe whole article file to publish instead, front matter included.
productIdYesProduct id from list_products.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds real context beyond that by stating the article 'is saved like an editor save and goes live,' which tells the agent the effect is a production publish. It does not disclose whether the live article is overwritten, whether the action is reversible, or whether confirmation is required.

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

Conciseness5/5

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

Two sentences, no filler, and the core action and its effect are front-loaded. Every clause earns its place by clarifying scope and outcome.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a mutation tool whose schema is fully documented and whose annotations carry the safety hints. Still, for a destructive publish with no output schema, it omits what happens to the previously live article and whether the publish can be undone, which an agent should know before invoking it.

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 description coverage is 100%, so all three parameters are already documented; the description's mention of 'as drafted or with your edited Markdown' maps loosely to the optional 'proposed' field but adds no syntax or format detail beyond the schema's 'whole article file ... front matter included.' Baseline 3 is appropriate.

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 (publish) and resource (one proposed article update from Code updates), and clarifies the two modes of operation (as drafted, or with your edited Markdown). An agent can distinguish this from edit_code_update, discard_code_update, and decide_code_update_batch without opening any schema.

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

Usage Guidelines3/5

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

Usage is implied by 'publish one proposed article update,' and the outcome ('goes live') hints at when the agent would want this rather than editing. However, it never names the alternatives (edit_code_update, discard_code_update, decide_code_update_batch) or states preconditions/exclusions, leaving routing to inference.

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