CorefinityCorefinityDocs
Open the Control PanelControl Panel
Varnish · 7 of 12

corestack_varnish_vcl_get

Show a site's custom Varnish VCL.

Scope readNo secrets returned
On this page

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

Prompt
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

include_platformboolean

True adds the platform VCL's text under platform.content. Defaults to false.

site_idintegerRequired

The row, a Magento 2 site or one of its environments. At least 1.

Example call

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

If it is refused

ReasonWhat to do
varnish_not_offeredThe row is not a Magento 2 site.
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.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
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