Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Create Secret with Generated Password

create_secret_with_generated_password

Creates a new secret, generates its password using the template's password requirements, and returns only the secret ID and safe metadata—never the password.

Instructions

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).

Parameters

name: 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.

Returns

dict {"result": {...}, "verification": {...}} with safe metadata only. The password value is never included.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "secret_template_id": "<secret_template_id>",
      "password_field_id": "<password_field_id>",
      "items": "<items>"
    },
    "name": "create_secret_with_generated_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
itemsYes
commentNo
site_idNo
folder_idNo
password_field_idYes
secret_template_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses the key non-obvious behavior: the password is generated server-side and never returned, only ID and safe metadata come back, the password item may be omitted or empty and gets injected automatically, and the audit comment must justify the action with a ticket reference. These are exactly the traits an agent cannot infer from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The Parameters/Returns structure is front-loaded and scannable, and the prerequisite bullet list is efficient. The only waste is redundancy around the never-returned password, stated once in the opening and again in the Returns section.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and 0% schema description coverage, the description supplies everything needed: the prerequisite lookup, full parameter semantics, the return shape, and the audit-comment policy. Nothing required to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there are 7 parameters, so the description carries the full burden and does so thoroughly: every parameter is documented, including the non-obvious items format (list of RestSecretItem dicts with fieldId/itemValue, or a JSON string) and the fact that password_field_id feeds a specific generate-password endpoint.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line gives a specific verb and resource ("Create a new secret with a server-generated password") and the body makes explicit that the password is produced by the Delinea API and never returned. This clearly distinguishes it from sibling update_secret_generated_password and from generic secret creation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a concrete prerequisite workflow: call check_secret_template(template_id) first to learn field IDs, which fields are isPassword, and which are isRequired. That is strong when-to-use guidance, but it never states the inverse case (e.g. when the caller already has a password value and should not use this tool), so it falls short of a full when/when-not/alternatives treatment.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.