---
title: "corestack_command_list"
url: https://docs.corefinity.com/mcp/tools/corestack_command_list
type: tool
last_updated: 2026-11-13
feature: commands
related:
  - https://docs.corefinity.com/mcp/long-running-tasks.md
---
# corestack_command_list

**List commands.** List the commands run on an environment, newest first — control panel functions and agents' commands — with their status and exit code. Filter with kinds[] or origin (mcp or panel); page with cursor. Scope: read.

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

## When to use it

List the commands run on an environment, newest first — Control Panel functions and agents' commands — with their status and exit code. Filter with kinds[] or origin (mcp or panel); page with cursor.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `limit` (integer, 1–100, default `25`)
- `cursor` (string, up to 40 characters)
- `kinds` (array of one of `flush_cache`, `reset_opcache`, `restart_php`, `restart_site`, `maintenance`, `cloudflare_purge`, `email_test`, `wp_updates_list`, `wp_update`, `wp_admin_reset`, `wp_admin_create`, `wp_login_link`, `wp_debug`, `laravel_optimize_clear`, `laravel_queue_restart`, `laravel_migrate`, `laravel_storage_link`, `magento_cache_flush`, `magento_reindex`, `setup_upgrade`, `cron_unlock`, `magento_2fa_enable`, `shopware_reindex`, `shopware_es_index`, `shopware_theme_compile`, `shopware_assets_install`, `shopware_updates_list`, `shopware_plugin_update`, `shopware_core_update`, `shopware_queue_restart`, `shopware_failed_messages`, `shopware_scheduled_task_run`, `shopware_sitemap_generate`, `shopware_thumbnails_generate`, `shopware_staging_mode`, `shopware_config_restore`, `shopware_apps_url_change`, `shopware_admin_create`, `shopware_admin_reset`, `flush_all`, `rabbitmq_toggle`, `fix_group_access`, `releases_flatten`, `url_change_preview`, `url_change_rewrite`, `production_activate`, `site_install`, `stamp_read`, `mcp_command`, `mcp_db_export`, `mcp_db_import`, `mcp_files_sync`, `mcp_file_write`, `mcp_transfer_pack`, `mcp_upload`, up to 40 items)
- `origin` (one of `mcp`, `panel`)

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "maxLength": 40,
      "type": "string"
    },
    "kinds": {
      "items": {
        "enum": [
          "flush_cache",
          "reset_opcache",
          "restart_php",
          "restart_site",
          "maintenance",
          "cloudflare_purge",
          "email_test",
          "wp_updates_list",
          "wp_update",
          "wp_admin_reset",
          "wp_admin_create",
          "wp_login_link",
          "wp_debug",
          "laravel_optimize_clear",
          "laravel_queue_restart",
          "laravel_migrate",
          "laravel_storage_link",
          "magento_cache_flush",
          "magento_reindex",
          "setup_upgrade",
          "cron_unlock",
          "magento_2fa_enable",
          "magento_admin_reset",
          "varnish_purge",
          "sw5_cache_clear",
          "sw5_theme_compile",
          "sw5_plugins_list",
          "sw5_es_index",
          "sw5_es_backlog_sync",
          "sw5_seo_rebuild",
          "sw5_admin_create",
          "sw5_admin_reset",
          "sw5_config_restore",
          "flush_all",
          "rabbitmq_toggle",
          "fix_group_access",
          "releases_flatten",
          "url_change_preview",
          "url_change_rewrite",
          "production_activate",
          "site_install",
          "stamp_read",
          "node_packages_check",
          "node_caches_clear",
          "mcp_command",
          "mcp_db_export",
          "mcp_db_import",
          "mcp_files_sync",
          "mcp_file_write",
          "mcp_transfer_pack",
          "mcp_upload",
          "magento_varnish_config",
          "platform_plugins_set",
          "app_cache_header_set",
          "host_migration_run",
          "restore_hold_release"
        ],
        "type": "string"
      },
      "maxItems": 40,
      "type": "array"
    },
    "limit": {
      "default": 25,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "origin": {
      "enum": [
        "mcp",
        "panel"
      ],
      "type": "string"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "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_command_list",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_command_list with site_id 4211. (List commands.) Tell me what it returned.
```

## The same task elsewhere

- Guide: [Long-running tasks](https://docs.corefinity.com/mcp/long-running-tasks.md)
