Skip to main content
Glama

Set page URL

set_site_url
Idempotent

Assign a full URL to a Convika landing page, including custom-domain paths such as https://www.example.com/ or https://www.example.com/lp2.

Use this when the user asks to create, move, preview, or publish a page at a specific URL. Prefer this over setup_custom_domain when a path is included.
- A root URL such as https://example.com/lp2 is connected as https://www.example.com/lp2: www.example.com is the site, and example.com redirects to it (301, path kept) once the user adds the records in guidance.rootRedirect (A @ to Convika's IPv4, CNAME www). If example.com already shows another site, Convika connects only www and leaves example.com alone; guidance.rootRedirect says so. If the response has guidance.rootNotServed instead, example.com won't open the page: tell the user to share the www URL.
- If the site is new, Convika creates the custom-domain claim and returns the CNAME routing record plus TXT ownership record.
- If the site is already connected to this workspace, Convika only adds the path route. An active site needs no DNS work. A site still pending verification keeps the CNAME and TXT values from its first setup: the response repeats them, and the TXT value stays the same across calls.
- invalid_hostname means the site can't be used as a custom domain (for example, reserved names such as anything.example.com). Ask the user for a site on a domain they own. It is not a DNS delay and not a Convika-side fault.
- If another workspace has a pending claim, Convika can still start DNS control verification for this workspace; pending claims are not ownership.
- If another workspace actively manages the site, do not take over automatically. Explain the options: ask for an invite, use another domain, or explicitly start DNS control verification and then move the domain to this workspace (activate_domain_handover).
- Path routing is exact: /lp2 and /lp2/ normalize to the same route, but /lp2/thanks is a different route.
- If guidance.existingSite is present, another site shows there now and connecting would replace that whole site. Tell the user before any DNS change, as the text says.
- Outside Convika: the tool looks the hostname up in public DNS and requests what it serves now (for guidance.existingSite), and registers a hostname new to Convika with Convika's certificate provider, which issues its HTTPS certificate once the DNS records point at Convika. The user's DNS settings change only when the user adds the records.
- On a site already connected, a published page opens at the URL at once. It adds a route and removes no page: a path another page serves is refused (route_conflict), and a path left by move_page answers this page in place of its redirect.
- After this tool succeeds, use create_preview; the preview response can use the assigned URL path.

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": {
      "siteId": "<siteId>",
      "url": "<url>"
    },
    "name": "set_site_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe full URL to assign, for example 'https://www.example.com/' or 'https://www.example.com/lp2'. Query strings and hashes are ignored.
siteIdYesThe ID of the page to assign the URL to
makePrimaryNoWhether this URL should become the page's canonical/primary URL. On a domain not connected yet, it becomes primary once the domain connects (route.mainOnConnect true, isPrimary false until then).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / makePrimary / description
      Previous value: -"Whether this URL should become the page's canonical/primary URL."New value: +"Whether this URL should become the page's canonical/primary URL. On a domain not connected yet, it becomes primary once the domain connects (route.mainOnConnect true, isPrimary false until then)."
  3. Changed2 schema fields changed
    • changedInput schema / properties / makePrimary / description
      Previous value: -"Whether this URL should become the site's canonical/primary URL."New value: +"Whether this URL should become the page's canonical/primary URL."
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to assign the URL to"New value: +"The ID of the page to assign the URL to"
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations cover safety (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), and the description adds substantial context beyond them: external DNS lookups, certificate-provider registration, 301 root redirect behavior, idempotency details ('the TXT value stays the same across calls'), and refusal semantics (route_conflict). The one strain is that connecting can replace a whole existing site while destructiveHint=false — the description warns about it rather than contradicting the annotation, but an agent must reconcile the two.

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

Conciseness3/5

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

The purpose and routing rule are correctly front-loaded, and nearly every bullet carries operational information, so it is not padding. But the block is long and several sentences are contorted (for example the 'Outside Convika' bullet and the root-redirect explanation), making it harder to scan than the content warrants.

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?

There is no output schema, and the description compensates thoroughly by naming the response fields an agent must branch on (guidance.rootRedirect, guidance.rootNotServed, guidance.existingSite, route.mainOnConnect, route_conflict). For a mutation with external DNS side effects, the failure taxonomy (invalid_hostname, route_conflict) is also spelled out.

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; the description earns an extra point by adding semantics the schema does not carry, notably exact path-routing normalization (/lp2 and /lp2/ are the same, /lp2/thanks is not) and how the canonical flag behaves on an unconnected domain. It still says little about makePrimary in its own text, leaving most of that to the schema.

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?

The opening sentence names a specific verb (assign) and resource (a full URL on a Convika landing page) and immediately scopes it to custom-domain paths with concrete examples. It also explicitly distinguishes itself from the nearest sibling: 'Prefer this over setup_custom_domain when a path is included.'

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?

It gives explicit when-to-use ('create, move, preview, or publish a page at a specific URL'), an explicit routing rule to a sibling (setup_custom_domain), and conditional branches for contested cases (another workspace pending vs. actively managing, with activate_domain_handover named). It also states a follow-up step (create_preview) and a client-facing obligation before DNS changes when guidance.existingSite is present.

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.