Skip to main content
Glama

Generate and PUBLISH location pages

publish_location_pages
Destructive

Same as generate_location_page_drafts but the pages go live on WordPress immediately. Slow; waits and returns per-target results. Destructive: the first call returns a summary and a confirmToken; call again with confirmToken to proceed.

Input Schema

NameRequiredDescriptionDefault
siteYesThe site to act on. One of: fencestainingdenver.com.
targetsYes
locationIdNoWhich saved business location the pages speak for (default: the primary one).
baseKeywordNoThe service or product the pages are about, for example "plumber".
slugPatternNo
titleSuffixNo
confirmTokenNoConfirmation token from a previous call of this tool with the same arguments. Omit on the first call to get a summary and a token.
stripPhrasesNoPhrases to remove from the cloned copy.
titlePatternNo
templatePageIdYesThe WordPress page to clone, from list_page_templates.
templatePurposeNoWhat each page is: a town or area (default), a product or brand, or an event.
generateFeaturedImageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is covered; the description adds real value by disclosing the latency ('slow; waits'), the per-target result shape, and the confirmToken gating mechanism that explains how the destructive action is controlled. It doesn't say what happens to an existing page at a colliding slug or what authorization is needed.

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?

Three tight sentences, each earning its place: the sibling comparison, the latency/return behavior, and the destructive two-phase flow. The most consequential information (live publication + confirmation) is front-loaded.

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 a 12-parameter destructive tool with no output schema, the description covers purpose, alternative, latency, return granularity, and the confirmation protocol well. Remaining gaps — slug-collision behavior, per-target failure handling, and rate limits — are secondary but non-trivial for a publish action.

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 58%, so the schema documents roughly half the parameters (site, targets, baseKeyword, etc.). The description adds usage meaning for confirmToken (omit on first call to get a summary and token), which is useful, but says nothing about targets, templatePageId, templatePurpose, or the other 9 parameters.

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?

Names a specific verb+resource (publish location pages) and anchors it against the sibling generate_location_page_drafts, making the key distinction — pages go live on WordPress immediately — explicit. An agent can separate this from the draft-generating sibling 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 Guidelines4/5

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

The comparison to generate_location_page_drafts implicitly routes the agent: use that tool for drafts, this one for live pages. It also spells out the two-phase confirmation workflow. It stops short of an explicit 'when not to use' (e.g. don't call without reviewing the first-call summary).

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.