Skip to main content
Glama

Edit site page

edit_site_page
Destructive

Edit the selected site's draft page at one route, including its copy, sections, product display, forms, and page-local components. Shared component edits may affect other pages using them. Starts an asynchronous internal-agent operation; poll get_agent_session. For corrections, call this same tool with its sessionId and unchanged target. Requires a provisioned site. Source edits may execute in its preview. The Replo agent uses its normal tools and connected integrations to implement and verify the requested changes. Use publish_site separately to make changes public.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeYesPage route within the selected site, such as / or /products/[handle].
siteIdYesSite ID from list_sites.
sessionIdNoOmit to start this operation. To continue, supply the returned sessionId with the same operation and target; mismatches and legacy sessions are rejected.
instructionsYesRequested changes for this operation only. Include necessary references, not conversation history, credentials, or unrelated personal data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive=true, idempotent=false, openWorld=true, but the description goes well beyond them: asynchronous internal-agent execution, polling requirement, shared-component edits affecting other pages, execution within the preview, and the correction workflow. This is meaningful side-effect and lifecycle context an agent needs.

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 scope, then the async/correction/publish mechanics. Dense and largely waste-free, though the sentence about the Replo agent's normal tools and integrations is somewhat procedural filler relative to the actionable guidance.

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

Completeness4/5

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

For an async mutation with no output schema, it covers prerequisites, lifecycle (poll get_agent_session), side effects (shared components), and the follow-up publish step. The only minor gap is not describing what the initial invocation returns, though the polling pointer largely compensates.

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%, so the baseline is 3, but the description adds real semantics: sessionId is omitted to start and supplied with an unchanged target to continue, and mismatches are rejected. That workflow meaning for sessionId exceeds a bare field description.

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 (Edit) and resource (the selected site's draft page at one route), then enumerates the editable surface: copy, sections, product display, forms, page-local components. This clearly distinguishes it from siblings like create_site_page, delete_site_page, update_site, and update_site_metadata.

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 names the alternatives and the conditions selecting them: poll get_agent_session for progress, use publish_site separately to go public, and re-call this tool with sessionId for corrections. It also states the precondition (requires a provisioned site), leaving nothing 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