corestack_ site_ magento_ stores_ list
Magento stores.
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
Using the Corefinity MCP server, call corestack_site_magento_stores_list with site_id 4211. (Magento stores.) Tell me what it returned.Inputs
The site or one of its environments. At least 1.
Example call
{"name":"corestack_site_magento_stores_list","arguments":{"site_id":4211}}If it is refused
| Reason | What to do |
|---|---|
not_magento | This row is not a Magento 2 site. |
switched_off | Site commands are switched off; try later. |
not_running | The environment is not running; wait for it to become ready. |
command_running | Another command is running on the site; wait for it. |
exec_unresolved | A previous command has not been confirmed stopped; contact support. |
upstream_unavailable | Magento's stores could not be read; try again in a moment. |
temporarily_unavailable | The read cannot finish safely in this call; try again in a moment. |
invalid_arguments | The 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_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The 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_limited | Too many calls. Wait for the number of seconds the answer names. |
internal_error | Something went wrong on our side. Quote the trace id to support. |