corestack_ nginx_ policy_ get
nginx rules policy.
When to use it
What custom nginx rules may contain: per hook the allowed directives with their argument checks, the refused ones with the reason and where to go instead, the governed headers and the limits. Pass site_id for that environment's platform, nginx image and hooks.
With site_id, rate_limit_presets lists only the platform rate-limit presets (limit_req zone=cf_rl_*) that environment's runtime supports: none on a runtime without them, or before its one-time update. Without site_id it is the platform's whole list.
Ask for it
Using the Corefinity MCP server, call corestack_nginx_policy_get with site_id 4211. (nginx rules policy.) Tell me what it returned.Inputs
Without site_id: the nginx image whose directives apply (default the runtime image).
base/nginx:1.30.2-1nginx:1.30.6-r1Without site_id: one platform's presets only.
laravelmagento2shopware5wordpressAn environment row: picks its platform, nginx image and hooks. Leave it out for the policy without a row. At least 1.
Example call
{
"name": "corestack_nginx_policy_get",
"arguments": {
"site_id": 4211
}
}If it is refused
| Reason | What to do |
|---|---|
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. |