Skip to main content
Glama

vault_generate_and_store_secret

Generate a high-entropy secret, encrypt it locally in llm-vault-mcp, and return an opaque handle so agents can use it without exposing plaintext.

Instructions

Generate a high-entropy secret inside llm-vault-mcp via crypto.getRandomValues(), encrypt it locally with VaultKey and canonical AAD, and return only { id, vaultId, version, handle }.

Input Schema

NameRequiredDescriptionDefault
nameYes
tagsNo
vaultIdNo
encodingNo
folderIdNo
secretIdNo
byteLengthNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the secret is generated locally via crypto.getRandomValues(), encrypted at rest with VaultKey and canonical AAD, and that only metadata { id, vaultId, version, handle } is returned — a critical fact implying the plaintext secret is never echoed back. It stops short of stating permissions, side effects on external systems, or reversibility (deletion via vault_delete_secret).

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

Conciseness5/5

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

A single dense sentence with the generate/encrypt/return sequence ordered logically and the return payload front-loaded at the end. No filler or redundancy.

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

Completeness2/5

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

For an 8-parameter mutation tool with no annotations, no output schema, and 0% parameter documentation, the description does not do enough. It usefully discloses the return shape, but the agent still cannot determine how to meaningfully populate name, byteLength, encoding, vaultId, or folderId.

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

Parameters1/5

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

Schema description coverage is 0% across 8 parameters, and the description explains none of them. Terms like byteLength, encoding, secretId, folderId, tags, and vaultId are left entirely for the agent to infer from JSON keys and enum values. This is the clearest gap in the definition.

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

Purpose4/5

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

States a specific compound verb (generate and store) plus the resource (secret) and the mechanism context (llm-vault-mcp), so the agent knows exactly what happens. It does not explicitly differentiate from siblings like vault_get_secret or vault_absorb_credentials, but the compound action is distinctive enough to stand on its own.

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

Usage Guidelines2/5

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

No statement of when to choose this over vault_get_secret, vault_lease_secret, or any other sibling. There is no trigger condition, no 'use this instead of X' routing, and no prerequisites called out. The agent must infer intent from the name alone.

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