Check a secret is set
check_secretVerify a secret is configured without exposing it: confirm an env key has a value in a dotenv file, count leftover placeholders, check file existence, and see if git would track it.
Instructions
Check, without reading it out, whether a secret is in place: whether a KEY is in a dotenv file and has a value, how many of a placeholder are left in a file, or whether a file exists. Also says whether git would pick the file up. Use this rather than reading the file.
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": {
"path": "<path>"
},
"name": "check_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Env var name to look for in a dotenv file. | |
| path | Yes | Absolute path of the file. | |
| placeholder | No | Placeholder text to count. |