---
title: "corestack_deployments_template_get"
url: https://docs.corefinity.com/mcp/tools/corestack_deployments_template_get
type: tool
last_updated: 2026-11-13
feature: deployment-templates
related:
  - https://docs.corefinity.com/api/reference/deployments/get-deploy-template.md
  - https://docs.corefinity.com/guides/sites/code-and-deployments/deployment-templates.md
---
# corestack_deployments_template_get

**Deployment template.** One platform's deployment template: both configurations' stages as your company set them, what each environment receives from every template that applies to it, its revision and lock. Read an earlier revision, or compare two. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

Read one platform's deployment template: both configurations (`production`, and `uat` for every environment that is not production) with the four stages as your company set them (`inherit` or `replace`), what environments receive from every template that applies to them, the template's `revision` (send it with a change) and its lock. Pass `version` to read an earlier revision, `compare_to` for each stage's before and after. A token limited to some sites gets no environment counts.

The same action in the public REST API, with the same checks, refusals and scope: `GET /api/corestack/companies/{company}/deploy-templates/{platform}`.

## Inputs

- `platform` (string, required)
- `version` (integer, ≥ 1): A kept revision to read instead of the current one.
- `compare_to` (`current`, `previous` or an integer ≥ 1): current, previous or a revision: adds each stage's before and after.
- `upstream` (string): One upstream as upstreams[].upstream names it.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "compare_to": {
      "anyOf": [
        {
          "enum": [
            "current",
            "previous"
          ],
          "type": "string"
        },
        {
          "minimum": 1,
          "type": "integer"
        }
      ],
      "description": "current, previous or a revision: adds each stage's before and after."
    },
    "platform": {
      "enum": [
        "magento2",
        "laravel",
        "wordpress",
        "shopware5"
      ],
      "type": "string"
    },
    "upstream": {
      "description": "One upstream as upstreams[].upstream names it.",
      "pattern": "^(none|agency:[1-9][0-9]{0,18})$",
      "type": "string"
    },
    "version": {
      "description": "A kept revision to read instead of the current one.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "platform"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_deployments_template_get",
  "arguments": {
    "platform": "magento2",
    "compare_to": "previous"
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_deployments_template_get with platform magento2, compare_to previous. (Deployment template.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/companies/{company}/deploy-templates/{platform}](https://docs.corefinity.com/api/reference/deployments/get-deploy-template.md)
- Guide: [Deployment templates](https://docs.corefinity.com/guides/sites/code-and-deployments/deployment-templates.md)
