corestack_ varnish_ vcl_ get
Show a site's custom Varnish VCL.
When to use it
Read a Magento 2 row's custom Varnish VCL: the text of its three hooks (recv, backend_response, deliver), the version every change must send back (so two editors cannot overwrite each other), the revision and the revision Varnish is running (applied_revision, applied_at), whether Corefinity manages the VCL on this environment (locked), the Varnish version, the platform VCL it is inserted into and how much of the size limits it uses. Empty hooks mean the platform VCL alone.
The platform VCL is long and read-only; ask for its text with include_platform: true only when you need to see where a hook runs. Saved revisions are kept while Varnish is off, and apply when it is switched on.
Ask for it
Using the Corefinity MCP server, call corestack_varnish_vcl_get with site_id 4211. (Show a site's custom Varnish VCL.) Tell me what it returned.Inputs
True adds the platform VCL's text under platform.content. Defaults to false.
The row, a Magento 2 site or one of its environments. At least 1.
Example call
{
"name": "corestack_varnish_vcl_get",
"arguments": {
"site_id": 4211
}
}If it is refused
| Reason | What to do |
|---|---|
varnish_not_offered | The row is not a Magento 2 site. |
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. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |