| searchC | Return search results in MCP format. Parametersquery:
Text to search across the enabled object types. Returnsdict
{"results": [...]} where each result object contains id,
title, text and url as defined by the MCP specification. |
| fetchA | Retrieve the full record for an identifier returned by search. Parametersidentifier:
Value from the id field of a search result, in "<type>/<id>"
format. Returnsdict
Object with id, title, text, url and metadata
fields as required by the MCP specification. |
| run_reportA | Run a read-only SQL report on Secret Server and return its rows. Call list_example_reports first: it is the reference for this tool
and lists the Secret Server database tables, columns, special fields and
tested example queries to build sql_query from. The query runs through
the Secret Server REST API reports endpoints (POST /api/v1/reports,
POST /api/v1/reports/execute, then DELETE /api/v1/reports/{id};
see https://docs.delinea.com/online-help/secret-server/api-scripting/rest-api/index.htm),
as a temporary report that is deleted after it runs. Secret Server only
executes SELECT statements and applies the configured account's
report permissions. Parameterssql_query:
The SQL query to run. Secret Server only accepts a single read-only
SELECT statement as custom report SQL (no IF, WHILE, BEGIN ... END,
TRY/CATCH, PRINT, temporary tables or database-qualified names); call
list_example_reports for the rules, table list and sample queries.
report_name:
Optional name for the temporary report.
max_rows:
Maximum rows to return (default 200, capped at 5000). Add
aggregation or a WHERE clause rather than raising this. Returnsdict
columns, rows, total_rows and truncated, or an
error key on failure. |
| list_example_reportsA | Return the reference for writing run_report SQL. Includes tested example queries, the Secret Server database tables and
columns they use, special fields, and the rules Secret Server enforces on
custom report SQL (a single read-only SELECT). Read this before composing
a run_report query. |
| get_secretA | Retrieve a secret's fields, with password-type values masked. Values of fields that the secret template marks as passwords are
replaced with ******** and listed under maskedFields. Use
summary=True for metadata only (name, folder, template, approval
and checkout requirements). To put a credential to work without
exposing it, use get_secret_environment_variable. Showing a masked
value needs reveal_secret_field, which is only available when the
server has plaintext reveal enabled. Parametersid:
Numeric secret identifier.
summary:
When True return only the summary information. Returnsdict
JSON representation of the secret on success or an error key. |
| get_folderA | Return folder metadata for the given folder ID. Parametersid:
Identifier of the folder to fetch.
all_children:
When True include childFolders with the full descendant
tree, which can be large. To page through direct children only, use
folder_management("list", params={"filter.parentFolderId": id}). Returnsdict
Folder metadata including children or an error message. |
| role_managementA | Create, update or query roles. Parametersaction:
One of "list", "get", "create" or "update".
role_id:
Identifier of the role to operate on. Required for "get" and
"update".
data:
JSON body used with "create" and "update".
params:
Optional query parameters for "list". When action is "create", data must contain the required keys
name and enabled defining the role's name and active state.
When action is "update", you need to do a get first, update the
relevant fields and post everything back "create" and "update" actions issue a follow-up GET request to
confirm the new role state. The function returns {"result": ..., "verification": ...} where result is the response from the write
operation and verification is the data retrieved from the subsequent
GET call.
Returnsdict
Dictionary containing result from the write call and
verification from the subsequent GET. |
| user_role_managementB | Add or remove roles for a user. Parametersaction:
"get" to list current roles, "add" to assign new roles or
"remove" to revoke them.
user_id:
Identifier of the target user.
role_ids:
List of role identifiers used with "add" and "remove". Returnsdict
JSON payload from the API. |
| group_managementA | Create, list or delete groups. Parametersaction:
"get", "list", "create or "delete".
group_id:
Group identifier required for "get" and "delete".
data:
JSON payload used with "create".
params:
Optional filters for "list". When action is "create", data must include name and
enabled. Optional keys include adGuid, domainId,
hasGroupOwners, isPlatform, ownerGroupIds, ownerGroupNames,
ownerUserIds, ownerUserNames, synchronized and
synchronizeNow.
When action is "update", you need to do a get first, update the
relevant fields and post everything back "create" and "delete" actions perform a verifying GET after the
write. The response contains {"result": ... , "verification": ...}.
Returnsdict
Dictionary with result from the write operation and
verification from the subsequent GET call. |
| user_group_managementB | Add or remove a user from groups. Parametersaction:
"get" to list groups for the user, "add" to add the user to
groups or "remove" to remove them.
user_id:
Target user identifier.
group_ids:
List of group identifiers used with "add" and "remove". Returnsdict
API response content. |
| group_role_managementA | Assign or revoke roles on a group. Parametersaction:
"list" to view current roles, "add" to attach roles or
"remove" to detach them.
group_id:
Target group identifier.
role_ids:
List of roles used with "add" and "remove". Returnsdict
Response body from the API. |
| folder_managementA | Create, update or query folders. Parametersaction:
"get", "list", "create", "update" or "delete".
folder_id:
Folder identifier required for "get", "update" and "delete".
data:
JSON body used with "create" and "update". Create needs
folderName, parentFolderId (-1 for the root) and
folderTypeId (1); inheritPermissions and
inheritSecretPolicy are optional booleans.
params:
Optional query parameters for "list". "create", "update" and "delete" actions perform a verifying
GET after the write. The response contains {"result": ... , "verification": ...}.
Returnsdict
Dictionary with result from the write operation and
verification from the subsequent GET call. |
| health_checkA | Return the current server health status. The endpoint responds with general service information and {"status": "Healthy"}
when the server is operational. |
| search_secretsB | Search or look up secrets. Parametersquery:
Search text.
lookup:
If True, perform a metadata lookup instead of a full search.
take:
Page size (default 50, capped at 500).
skip:
Number of records to skip, for paging with take. Returnsdict
JSON response from the appropriate search endpoint. |
| search_foldersA | Search or look up folders. Parametersquery:
Text to search for in folder names.
lookup:
If True, query the /lookup endpoint for metadata only.
take:
Page size (default 50, capped at 500).
skip:
Number of records to skip, for paging with take. Returnsdict
JSON payload from the search call. |
| get_secret_environment_variableA | Load a secret's username and password into shell environment variables. This is the preferred way to use a credential: the value never appears
in the conversation. When the server runs locally (stdio), it reads the
secret itself and writes a private, self-deleting file of shell
assignments, returning only the file's path; nothing else needs to be
installed. Over HTTP transports it returns a script instead, which calls
the Secret Server REST API with the server's short-lived access token
(bash needs curl and jq; powershell needs nothing extra). Before retrieving a secret, check whether it requires approval: Call get_secret(id, summary=True) and inspect
requiresApproval and requiresComment. If approval is required, call get_pending_access_requests()
to check for an existing grant, or request access and wait for
approval via handle_access_request(). Always provide the comment parameter explaining why this
secret is being accessed. If the action is tied to a ticket,
incident, or change request, that reference must be named
in the comment.
Parameterssecret_id:
Identifier of the secret to retrieve.
environment:
Target shell environment. Supported values are "bash",
"powershell" and "cmd".
comment:
Required when the secret has requiresComment or
requiresApproval set. Must explain why this secret is
being accessed and, if the action is tied to a formal request
(e.g. a Jira ticket, incident, or change request), that
reference must be included. Returnsdict
script_path plus a run hint (local mode). Running it exports
SECRET_USERNAME_<id> and SECRET_PASSWORD_<id>.
str
The script text (HTTP transports).
dict
Error information if the secret requires approval or a comment
that was not provided. |
| check_secret_templateC | Returns the template details for the given ID. |
| check_secret_template_fieldA | Check if a field exists in the given secret template. Parameterstemplate_id:
Identifier of the secret template.
field_id:
Numeric field ID or field name to search for. Returnsdict
{"exists": bool, "field": {...}} when found or a message when not
present. |
| handle_access_requestA | Approve or deny a pending secret access request. Parametersrequest_id:
Identifier of the access request to modify.
status:
Either "Approved" or "Denied".
response_comment:
Comment explaining the decision.
start_date, expiration_date:
Optional ISO date strings used when approving the request. If these
values are present in the object returned by
:func:get_pending_access_requests, include them by default unless
overridden. Returnsdict
{"result": ... , "verification": ...} where result contains the
API response from the update call and verification contains the
request retrieved afterwards. |
| get_pending_access_requestsA | Retrieve pending secret access requests for the current user. Returnsdict
Raw API response containing pending requests or an error key on
failure. |
| get_inbox_messagesB | Search, filter, sort and page inbox messages. Parametersread_status_filter:
Optional filter value of "Read" or "Unread".
take, skip:
Paging parameters controlling the number of messages returned and the
starting offset. Returnsdict
Raw JSON response from the /v1/inbox/messages endpoint. |
| mark_inbox_messages_readB | Mark one or more inbox messages as read or unread. Parametersmessage_ids:
List of message identifiers to update.
read:
True to mark the messages as read or False to mark them as
unread. Returnsdict
{"result": ..., "verification": ...} where result contains the
outcome of the update and verification is the inbox listing after the
change. |
| get_secret_template_fieldB | Retrieve details for a secret template field. Parametersfield_id:
Numeric identifier of the field to fetch. Returnsdict
JSON object describing the field or an error key on failure. |
| create_secret_with_generated_passwordA | Create a new secret with a server-generated password. The password is generated by the Delinea API using the template field's
password requirements and is never returned to the caller. The model
receives only the secret's ID and safe metadata. Before calling, use check_secret_template(template_id) to discover: Which fields exist and their secretTemplateFieldId values. Which fields have isPassword=True (use their ID as
password_field_id). Which fields have isRequired=True (must be provided in items).
Parametersname:
Display name for the new secret.
secret_template_id:
Template ID that defines the secret structure.
password_field_id:
secretTemplateFieldId of the password field on the template.
Used to call POST /v1/secret-templates/generate-password/{id}.
items:
Non-password field values as a list of RestSecretItem dicts (or
a JSON string). Each dict should contain fieldId and
itemValue. An entry for the password field may be omitted or
have an empty itemValue — the generated password will be
injected automatically.
folder_id:
Optional folder to store the secret in.
site_id:
Optional distributed engine site identifier.
comment:
Audit comment recorded against the new secret. Must explain
why this secret is being created and, if the action is tied
to a formal request (e.g. a Jira ticket, incident, or change
request), that reference must be included. Returnsdict
{"result": {...}, "verification": {...}} with safe metadata
only. The password value is never included. |
| set_secret_field_environment_variableA | Store a value from the user's machine in a secret field, unseen by the model. Use this for values that cannot be generated by Delinea (e.g. AWS API
keys, external tokens). The value is written with
PUT /v1/secrets/{id}/fields/{slug} and never enters the conversation. When the server runs locally (stdio): file: sources are read and uploaded by the server directly; the
file's contents are stored as-is (a trailing newline is dropped).
env: and stdin sources return a one-line command that runs
this package's own Python to read the value (hidden prompt for
stdin) and upload it. Nothing else needs to be installed. The
command's job file holds a short-lived access token, is private, and
deletes itself when used or after 15 minutes. With stdin the user
must run the command in their own terminal.
Over HTTP transports a script is returned instead (bash needs curl and
jq, cmd needs curl). For new secrets, first create the secret (with a placeholder or via
create_secret_with_generated_password), then use this tool to populate
external fields. Before modifying a secret, check whether it requires approval: Call get_secret(id, summary=True) and inspect
requiresApproval and requiresComment. If approval is required, call get_pending_access_requests()
to check for an existing grant, or request access and wait for
approval via handle_access_request(). Always provide the comment parameter explaining why this
secret is being modified. If the action is tied to a ticket,
incident, or change request, that reference must be named
in the comment.
Parameterssecret_id:
ID of the existing secret to update.
field_slug:
Field slug name (e.g. "password", "username", "api-key").
Use check_secret_template to discover slugs.
environment:
Target shell — "bash", "powershell" or "cmd".
source:
Where to read the value. Options: * ``"env:VAR_NAME"`` — read from environment variable *VAR_NAME*
* ``"file:/path/to/file"`` — read from a file
* ``"stdin"`` — prompt the user to type/paste (default)
comment:
Required when the secret has requiresComment or
requiresApproval set. Must explain why this secret is
being modified and, if the action is tied to a formal request
(e.g. a Jira ticket, incident, or change request), that
reference must be included. Returnsdict
result (file: source) or command (env:/stdin) in
local mode.
str
The script text (HTTP transports).
dict
Error information if the secret requires approval or a comment
that was not provided. |
| update_secret_generated_passwordA | Rotate a password field on an existing secret with a server-generated value. The new password is generated using the template field's password rules and
written directly to the vault via
PUT /v1/secrets/{id}/fields/{slug}. The model never sees the old
or new password value. Before modifying a secret, check whether it requires approval: Call get_secret(id, summary=True) and inspect
requiresApproval and requiresComment. If approval is required, call get_pending_access_requests()
to check for an existing grant, or request access and wait for
approval via handle_access_request(). Always provide the comment parameter explaining why this
secret is being modified. If the action is tied to a ticket,
incident, or change request, that reference must be named
in the comment.
Parameterssecret_id:
ID of the secret to update.
field_slug:
Field slug of the password field (e.g. "password").
Use check_secret_template to discover slugs.
password_field_id:
secretTemplateFieldId of the password field. Used to generate a
compliant password via the template rules.
comment:
Required when the secret has requiresComment or
requiresApproval set. Must explain why this secret is
being modified and, if the action is tied to a formal request
(e.g. a Jira ticket, incident, or change request), that
reference must be included. Returnsdict
{"result": {...}, "verification": {...}} with safe metadata only.
The password value is never included. |
| update_secret_fieldsA | Edit non-sensitive fields on an existing secret. Composes the read-mutate-verify flow: GET /v1/secrets/{id}/summary to check approval / comment
requirements via :func:_check_secret_approval.
GET /v1/secrets/{id} (template lookup) to identify which slugs
are password fields.
PUT /v1/secrets/{id}/fields/{slug} per entry in field_updates.
GET /v1/secrets/{id}/summary for verification.
By default, slugs whose template field has isPassword=True are
refused — the model should not see plaintext password values. Use
:func:set_secret_field_environment_variable (which emits a shell
script that reads the value locally and PUTs it without the value
ever passing through the model) for password-class fields, or set
allow_password_fields=True to override (not recommended). Parameterssecret_id:
Identifier of the secret to update.
field_updates:
Mapping of field_slug -> new_value (or a JSON string). Use
slugs (e.g. "notes", "url", "hostname") discoverable
via :func:check_secret_template.
comment:
Audit comment recorded against each field update. Required when
the secret has requiresComment or requiresApproval set.
Must explain why the change is being made and reference any
related ticket, incident, or change request.
allow_password_fields:
Set to True to permit updating password-class fields. Doing
so means the new value passes through the model — prefer
:func:set_secret_field_environment_variable for those fields. Returnsdict
{"result": {...}, "verification": {...}} where result lists
per-field outcomes and verification is the post-update summary. |
| bulk_user_responseA | Apply an opinionated sequence of bulk user operations. .. warning::
This tool can lock out, disable, or strip 2FA from many users in a
single call. It is intended for incident response (e.g. compromised
accounts), bulk offboarding, or break-glass restoration. Always
verify the user_ids list with the caller before invoking and
require an explicit confirm=True plus a meaningful audit
comment referencing the ticket/incident. Composes calls to POST /v1/bulk-user-operations/* endpoints in the
sequence prescribed by scenario. Scenarios"compromise"
Force-logout → lock → disable → reset FIDO2 → reset TOTP. Use when
an account is suspected of compromise and you want the strongest
possible response.
"offboard"
Force-logout → disable. Less aggressive — keeps 2FA registrations
so audit trails remain meaningful.
"unlock"
Unlock → enable. Reverses a prior lockout/disable.
"reenable"
Enable only. Use after "compromise" was applied in error.
"force_logout"
Just terminate active sessions.
Parametersuser_ids:
List of user identifiers (or JSON string of the same).
scenario:
One of the scenario names listed above.
comment:
Required audit comment. Must reference the ticket/incident and
explain why this action is being taken. An empty comment is
rejected.
confirm:
Must be set to True to actually run any destructive scenario.
"unlock", "reenable" and "force_logout" also require
confirmation, but planning calls (confirm=False) return a
preview of what the tool would do. Returnsdict
On preview (confirm=False): {"preview": {...}} with the
list of steps and target user_ids, no API calls made.
On execute: {"result": {...}, "verification": {...}} where
result lists per-step API responses and verification is
a fresh user listing for the affected ids. |
| search_secretserver_local_usersA | Search local Secret Server users (legacy SS-only deployments). Calls GET /v1/users?filter.searchText=<query>. In Platform-integrated
tenants, prefer :func:delinea_mcp.user_platform_tools.search_users,
which queries Platform's identity directory and is the authoritative
user store. Parametersquery:
Text to search for in usernames or display names. Returnsdict
Raw search results as returned by the API. |
| secretserver_local_user_managementA | Manage local Secret Server users (legacy SS-only deployments). For Platform-integrated tenants the authoritative user store is the
Platform identity directory; use the canonical user_management
tool (provided by :mod:delinea_mcp.user_platform_tools) instead. This function operates on Secret Server's own /v1/users records,
which in Platform tenants are typically read-only mirrors of Platform
users. Mutations performed here will not propagate to the Platform. Parametersaction:
Operation to perform: "get", "create", "update",
"delete", "list_sessions", "reset_2fa",
"reset_password" or "lock_out".
user_id:
Target user identifier. Required for all actions except "create"
and "list_sessions".
data:
JSON body for "create", "update" and "reset_password".
skip, take:
Pagination controls for "list_sessions".
is_exporting:
Include the isExporting flag when listing sessions. Returnsdict
Dictionary with result from the write action and verification
from the subsequent GET, or the raw API payload for read actions. |
| user_managementA | Manage users on the Delinea Platform via a unified helper. This is the canonical user_management tool (v1.0.0+). It
talks to the Platform identity API, which is the authoritative user
store in cloud-native and Platform-integrated tenants. For SS-only deployments without Platform configured, use
:func:delinea_mcp.secretserver_users.secretserver_local_user_management. Parametersaction:
One of "create", "delete", "update", "get" or
"search".
user_id:
Identifier used with "update", "delete" and "get".
data:
JSON body for "create" and "update".
username:
Username parameter for "search". Returnsdict
Response payload or {"result": ..., "verification": ...} when
a verifying lookup is performed. |
| search_usersA | Search the Platform identity directory for users. Calls POST /identity/api/Report/RunReport with the
user_searchbyname canned report. Returns the raw report payload. For SS-only deployments without Platform configured, use
:func:delinea_mcp.secretserver_users.search_secretserver_local_users. Parametersquery:
Text to search for in usernames. Returnsdict
JSON response from the platform user search report or
{"error": ...}. |
| platform_user_managementA | Deprecated alias for :func:user_management. Use user_management. Takes the same parameters as user_management. Retained for
backwards compatibility with v0.x clients. Will be removed in a future
major release. |
| platform_role_managementA | Manage roles on the Delinea Platform identity service. Endpoint coverage: "list" -> POST /identity/api/Report/RunReport ID
role_searchbyname with a wildcard match. Returns all visible roles.
"get" -> same report filtered by an exact / substring role name.
"create" -> POST /identity/api/SaasManage/StoreRole (body
{"Name": ..., "Description": ...}). Returns the role's
_RowKey in Result.
"update" -> POST /identity/api/Roles/UpdateRole (body
{"Name": <role-id>, "Description": ..., "Users": {"Add": [...]}, ...}).
"delete" -> POST /identity/api/SaasManage/RemoveRole.
Mutation behaviour is discovery-driven: the tool attempts the
documented endpoint, and only falls back to a structured guidance
error when the response is HTTP 404 (typical on modern Delinea
Platform tenants using the xpmheadless scope, which exposes
user CRUD but not role CRUD). Tenants that do expose role
mutations get the real result. Parametersaction:
"list", "get", "create", "update" or "delete".
role_id:
Required for "get", "update" and "delete". For
modern Platform this is typically a Name; for legacy Centrify
deployments it's the _RowKey returned by StoreRole.
data:
For "create": {"Name": ..., "Description": ...}.
For "update": any subset of
{"Description", "Name", "Users": {"Add": [...], "Delete": [...]}, "Roles": {"Add": [...]}}.
page_size:
Maximum rows for "list".
query:
Optional search substring for "list". Default "%" matches all. Returnsdict
Raw API payload for reads, {"result": ..., "verification": ...}
for successful writes, or {"error": ...} when the endpoint is
unavailable on this tenant. |
| platform_user_role_managementA | Add, remove, or list users assigned to a Platform role. "list" -> POST /identity/api/Report/RunReport ID
role_searchbyname (filtered to role_id). Returns the role's
row; some tenants include a members column there. Callers can
cross-reference with :func:search_users.
"add"/"remove" -> POST /identity/api/Roles/UpdateRole with
body {"Name": <role_id>, "Users": {"Add": [...]}} or
{"Users": {"Delete": [...]}}.
Mutation behaviour is discovery-driven: the tool attempts the
documented endpoint and only falls back to a structured guidance
error when the response is HTTP 404. Parametersaction:
"add", "remove" or "list".
role_id:
Platform role name/identifier.
user_principals:
For "add"/"remove": list of user principal names (e.g.
"alice@tenant") or UUIDs. Accepts a JSON-encoded string too. Returnsdict
Report payload for "list"; {"result": ..., "verification": ...}
for successful writes; {"error": ...} when the endpoint is
unavailable on this tenant. |
| platform_reportsA | Browse and run Delinea Platform reports (Insights > Reports), read-only. The Platform report library (Fall 2026 release) covers every Platform
service: Secret Server (e.g. "Top 10 Viewers of Secrets"), Identity
(MFA login events, failed logins, last / missing logins, password
resets), Permissions (members of a role, users with a permission),
Inventory, Entitlement and Identity Lifecycle. Report names are the
identifiers. Typical flow: list -> describe -> run. Endpoint coverage (Platform report service, /report/api/...): "list" -> GET /report/report-definitions (optional query
full-text match and service exact match, paged).
"describe" -> GET /report/report-definitions/{report},
reduced to the report's inputs (each with the parameter string
to use in filters, its operators and whether it is
required) and its result columns.
"run" -> POST /report/report-definitions/{report}/results,
executed synchronously; returns {"data": [...], "totalCount": N, "reportDefinitionName": ...} for the requested page.
"snapshots" -> GET /report/report-snapshots (saved runs the
service account owns or was given access to).
"snapshot_results" -> GET /report/report-snapshots/{id}/results.
Nothing is created, scheduled, shared or deleted; a run only adds a
"View" entry to the report's audit history. Runs wait up to
PLATFORM_REPORT_TIMEOUT seconds (default 120) for the backend. Parametersaction:
"list", "describe", "run", "snapshots" or
"snapshot_results".
report:
Report name (required for describe / run).
filters:
For run: a list of {"parameter": "<callback>.<key>", "value": "...", "operator": "Contains"} objects using the
parameter strings from describe (operator optional; date
inputs take ISO-8601 strings on their start_parameter /
end_parameter). A {"<parameter>": "<value>"} dict or a JSON
string of either form is also accepted.
page / page_size:
Result paging for list, run, snapshots and
snapshot_results.
service:
For list: exact service name ("Secret Server",
"Identity", "Permissions", ...).
query:
For list / snapshots: free-text match on name/description.
snapshot_id:
Required for snapshot_results. Returnsdict
The report service payload, or {"error": ..., "detail": ..., "hint": ...} when the service rejects the request. |