Skip to main content
Glama

Sync site plan with the site

sync_site_plan
Destructive

Brings the site plan (.xodia/plan.json) in line with the site on a branch and writes it, the same as the Plan tab's sync. Xodia reads the site's files (the latest edits included): pages and their paths, the top-level sections on each page by their data-section ids and in order, the nav and footer links and the theme tokens. The site is the truth for what exists, the plan for intent: pages and sections on the site join the plan, sections follow the site's order, the nav, footer and brand colours and fonts follow the site, and statuses are read from the code. Anything that would drop intent (a built page gone from the site, a removed section with a purpose or notes) is kept for the owner to review in the Plan tab, never removed. With no plan on the branch (or one with no pages), it makes the plan from the site and first stamps missing data-section ids on the page files and the layout (saved like any edit). Use it after you add, rename, remove or reorder pages or top-level sections outside a plan request, when unsure whether the plan matches; requests from Xodia sync on their own when you reply. Answers what changed, what waits for review and the new etag. Nothing is written when the plan already matches. Refuses with site_unreadable when Xodia can't read the site right now (nothing changes; carry on).

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": {
      "projectId": "<projectId>"
    },
    "name": "sync_site_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
etagNoOptional: the etag from your last get_site_plan; when given and the plan changed since, it answers plan_conflict and writes nothing.
branchNoDefault: the branch the workspace has open. Pass the request's branch when a request names one.
renamesNoPages you renamed or moved in code, old path to new, so the plan moves their entries (purpose, notes, SEO) instead of treating them as a removed page and a new one. Optional: Xodia also matches by page file and section ids.
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag a destructive, non-read-only write, and the description adds real context: merge semantics (site is truth for existence/order, plan for intent), a safety guarantee that intent-dropping changes are never removed but queued for review, idempotence ('nothing is written when the plan already matches'), and a named failure mode (site_unreadable, nothing changes). It also discloses a side effect beyond the plan write when no plan exists: stamping missing data-section ids onto page files and the layout. Not a 5 only because the exact write surface (which files can be modified, and whether the id-stamping can ever touch existing content) remains slightly open.

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?

Purpose is front-loaded and the sentences are dense with substance rather than filler, but the single long paragraph mixes merge rules, creation path, trigger conditions and failure modes with semicolon-chained clauses. A short structured split (what it does / what is protected / when to call) would read faster without losing content.

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 stateful sync tool with no output schema and a destructive annotation, the description covers return content ('what changed, what waits for review and the new etag'), the no-op case, the unreadable-site case and the intent-preservation policy. An agent can call this correctly without further information.

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 etag, branch and renames are already fully documented in the schema, including the plan_conflict outcome for etag. The description's coverage of the new etag and branch is essentially a restatement of what the structured data provides, so baseline 3 applies.

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: it brings the site plan (.xodia/plan.json) on a branch in line with the site and writes it, and even anchors it to a known behavior ('the same as the Plan tab's sync'). It lists exactly what is read from the site (pages and paths, top-level sections by data-section id and order, nav/footer links, theme tokens), which no sibling name implies.

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 an explicit trigger ('after you add, rename, remove or reorder pages or top-level sections outside a plan request, when unsure whether the plan matches') and an explicit exclusion ('requests from Xodia sync on their own when you reply'), plus a fallback instruction for the failure case ('carry on'). An agent knows both when to call it and when not to.

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