---
title: "corestack_admin_login_reset"
url: https://docs.corefinity.com/mcp/tools/corestack_admin_login_reset
type: tool
last_updated: 2026-11-13
feature: functions
related:
  - https://docs.corefinity.com/guides/sites/create-and-manage/platform-tools.md
---
# corestack_admin_login_reset

**Reset an admin login.** Set a new password for one of the site's administrators (WordPress, Magento 2, Shopware) and show it once. Name the administrator, or leave username out to reset the one the site's current database was given; pass confirm: true. Use it when a one-time login was already shown. Scope: exec. The secret opens in the person's browser; set reveal_to_agent to true to receive it yourself (needs exec).

- Scope: `exec`
- Runs as a task: no
- Returns a secret only when `reveal_to_agent` is set

## When to use it

Set a new password for one of the site's administrators (WordPress, Magento 2, Shopware) and show it once. Name the administrator, or leave username out to reset the one the site's current database was given; pass confirm: true. Use it when a one-time login was already shown.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `username` (string, 1–60 characters): The administrator to reset. Leave it out for the site's current administrator.
- `confirm` (boolean, default `false`)
- `reveal_to_agent` (boolean, default `false`): Return the secret to you instead of opening it in the person's browser. Needs exec.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "confirm": {
      "default": false,
      "type": "boolean"
    },
    "reveal_to_agent": {
      "default": false,
      "description": "Return the secret to you instead of opening it in the person's browser. Needs exec.",
      "type": "boolean"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    },
    "username": {
      "description": "The administrator to reset. Leave it out for the site's current administrator.",
      "maxLength": 60,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- `invalid_arguments`: `confirm` is not true (pass `confirm: true` once the person has agreed), or no `username` was given and the site has no recorded administrator (ask the person which one).
- `not_available`: this site has no CMS administrator to reset (a Laravel or PHP site); stop.
- `managed_elsewhere` (message: "This site is managed by another control panel"): another control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
- 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_admin_login_reset",
  "arguments": {
    "site_id": 4211,
    "username": "admin",
    "confirm": true
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_admin_login_reset with site_id 4211, username admin. (Reset an admin login.) Tell me what it returned.
```

## The same task elsewhere

- Guide: [Platform tools](https://docs.corefinity.com/guides/sites/create-and-manage/platform-tools.md)
