CorefinityCorefinityDocs
Open the Control PanelControl Panel
Domains · 7 of 8

corestack_site_magento_stores_list

Magento stores.

Scope readNo secrets returned
On this page

When to use it

Read a Magento 2 site's websites and store views before choosing which address shows each one. The answer includes active state, shown_on, base URLs, default_store, default_hosts (addresses using the default), nginx_version, domains_version, warnings, read_at and store_hosts. The store snapshot is at most a minute old. Each website stays on the same Control Panel site as the rest of its Magento install.

Each website has id, code, name, default_group_id, is_default, active, shown_on, base_url, base_url_elsewhere, base_url_own and store_views. A store view has id, code, name, website_id, group_id, is_active, active, shown_on, base_url, base_url_elsewhere and base_url_own. Missing names are empty strings, missing group ids are 0 and a missing is_default is false. default_store is {code, type} or null; default_hosts is always a list.

base_url_own is a boolean: true when the effective secure base URL's host is the site's preview address, primary domain or its www form, so it moves automatically when the store gets a domain. It is false for another host or when no base URL is known. Use this decision from the read rather than rebuilding a host list. base_url_elsewhere separately says whether the base URL's host is outside the addresses showing that store.

After the store change completes and before changing DNS:

Request / with corestack_site_smoke_test, setting host to the store domain. The final URL must be on that store's base_url host from corestack_site_magento_stores_list (the domain itself, or its bare or www form when the base URL uses it), and the title must be that store's. Magento redirects to the store's base URL; a redirect to any other host means its base URL points elsewhere. GraphQL picks its store from the Store header, so it cannot prove a domain's store.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_site_magento_stores_list with site_id 4211. (Magento stores.) Tell me what it returned.

Inputs

site_idintegerRequired

The site or one of its environments. At least 1.

Example call

tools/call
{"name":"corestack_site_magento_stores_list","arguments":{"site_id":4211}}

If it is refused

ReasonWhat to do
not_magentoThis row is not a Magento 2 site.
switched_offSite commands are switched off; try later.
not_runningThe environment is not running; wait for it to become ready.
command_runningAnother command is running on the site; wait for it.
exec_unresolvedA previous command has not been confirmed stopped; contact support.
upstream_unavailableMagento's stores could not be read; try again in a moment.
temporarily_unavailableThe read cannot finish safely in this call; try again in a moment.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT