Skip to main content
Glama

Bubble to Cloudflare App & Data Migrator

Build the old-to-new redirect map (paid)

nc_redirects
Idempotent

Builds redirects.json (301s from old Bubble® paths and query forms to the new routes), a redirects.ts module, an _redirects file, legacy-urls.json and legacy-redirects.ts (saved into legacy_parity for compilation), and a curl script that tests every URL. Old URLs come from sitemap_url, url_list, gsc_urls, or wayback: true; compiled route patterns (path_patterns) and legacy slug matching run automatically on url_list as well as gsc_urls. A URL whose route or query filter still answers 200 is listed as unchanged; a URL it cannot place is listed as unmapped with the reason, never guessed. Give new routes with page_routes, for example { "listing_detail": "/rooms/:slug" }. Paid: needs a pass for the app, or the free trial for plans up to 1,000 records.

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": {
      "job_id": "<job_id>"
    },
    "name": "nc_redirects"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
replaceNoStart the job's stored legacy URL map again from this call alone. Without it the URLs of this call are added to what earlier calls recorded.
upgradeNoSet true to pay the difference to the next pass that fits, only when the app is past its pass's (or free trial's) record or file limit.
waybackNoQuery Wayback CDX for historical 200 URLs on the app's domain.
app_specNoapp-spec.json, for the page list. Default: the one given to nc_audit.
go_aheadNoSet true only when a charge applies, once the owner has seen the estimate and agreed to it. Not needed under the free trial or a pass that already covers the app. Needed again after a pass has expired.
gsc_urlsNoSearch Console top pages URL list (old indexed URLs).
new_baseNoOrigin of the new app for the expected Location, for example https://www.example.com. Default: the old URL's own origin.
url_listNoOld URLs, absolute or paths.
r2_bucketNoAn R2 bucket in that account, for staging and schema files.
job_secretNoThe job_secret returned when this job was made (or the job's signed editor link). Required with job_id when no API key is sent: the job_id alone does not open a job.
page_typesNoOld page key to the data type it shows, when the name does not say.
id_slug_mapNo{ type: { bubble id: slug } }. Default: read from the loaded slug columns.
page_routesNoOld page key to its new route. A route with :slug or :id takes one thing, for example /rooms/:slug.
sitemap_urlNoThe old app's sitemap.xml (a sitemap index is followed).
cf_api_tokenNoA Cloudflare API token with D1 edit permission on that account. Sealed in the job, deleted when it ends. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available.
cf_account_idNoThe customer's Cloudflare account id.
path_patternsNoMulti-segment path to query param mapping by route, for example { "/directory": ["trade", "loc"] }.
r2_access_key_idNoAccess key id of an R2 API token that can read and write that bucket. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available.
r2_secret_access_keyNoIts secret. Sealed in the job, deleted when it ends. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / replace
      Added value: +{
      +  "description": "Start the job's stored legacy URL map again from this call alone. Without it the URLs of this call are added to what earlier calls recorded.",
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / gsc_urls
      Added value: +{
      +  "description": "Search Console top pages URL list (old indexed URLs).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / path_patterns
      Added value: +{
      +  "description": "Multi-segment path to query param mapping by route, for example { \"/directory\": [\"trade\", \"loc\"] }.",
      +  "type": "object"
      +}
    • addedInput schema / properties / wayback
      Added value: +{
      +  "description": "Query Wayback CDX for historical 200 URLs on the app's domain.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / job_secret
      Added value: +{
      +  "description": "The job_secret returned when this job was made (or the job's signed editor link). Required with job_id when no API key is sent: the job_id alone does not open a job.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only mark it as a non-read-only, open-world, idempotent, non-destructive write; the description goes well beyond that by disclosing the exact outputs written, where they land (legacy_parity), the decision rule for unchanged vs unmapped URLs, and the guarantee that an unplaceable URL is 'never guessed'. It also surfaces the billing model (pass, free-trial record cap, go_ahead after expiry, upgrade to pay the difference), which an agent cannot infer from annotations.

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?

Everything is packed into a single dense paragraph with the artifact list, sourcing rules, matching semantics, and pricing all in one run-on sentence chain. It is front-loaded correctly, but the page_routes example restates the schema and the parenthetical artifact list is hard to scan; some sentences could be split or trimmed.

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 20-parameter, nested-object tool with no output schema, the description covers outputs (as files produced), input sourcing, matching behavior, and payment gating thoroughly. The remaining gap is the immediate return value of the call itself — job id, status, or summary — and how to follow progress, which is left unstated.

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 already 95%, so the baseline is a 3, but the description adds concrete shape to the two hardest nested objects: page_routes with a worked example {"listing_detail": "/rooms/:slug"} and the :slug/:id arity rule, plus path_patterns' multi-segment-to-query mapping. It also clarifies that route compilation and slug matching run automatically against both url_list and gsc_urls, which the schema does not state.

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 (builds) and enumerates the concrete artifacts produced (redirects.json, redirects.ts, _redirects, legacy-urls.json, legacy-redirects.ts, curl script), so there is no ambiguity about what the tool does. The title's '(paid)' marker plus the closing billing note makes it distinguishable from the free planning/compilation siblings.

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?

States the four ways old URLs can be supplied (sitemap_url, url_list, gsc_urls, wayback) and the precondition that it needs a pass or trial, which is real usage context. However, it never says when to choose this over nc_cutover or nc_compile_plan, and there are no explicit when-not conditions.

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.