Read KV v2 secret metadata
vault_kv_read_metadataRetrieve the metadata of a Vault KV v2 secret, including version history, current version, timestamps, and custom metadata.
Instructions
KV v2 only: read metadata for a secret, including the full version history, current version, created/updated times, and custom_metadata.
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": {
"mount": "<mount>",
"path": "<path>"
},
"name": "vault_kv_read_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mount | Yes | Mount point of the KV secrets engine, without leading/trailing slashes (e.g. 'secret', 'kv', 'apps/prod'). | |
| path | Yes | Path of the secret within the mount (e.g. 'db/creds', 'services/api'). Do NOT include the mount, or the KV v2 'data/'/'metadata/' prefix — those are added automatically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | Yes | Metadata object including versions, current_version, created_time, custom_metadata. |