Skip to main content
Glama

Check a secret is set

check_secret
Read-only

Verify 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

NameRequiredDescriptionDefault
keyNoEnv var name to look for in a dotenv file.
pathYesAbsolute path of the file.
placeholderNoPlaceholder text to count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description is not obligated to prove safety, yet it adds real value: the tool deliberately withholds the secret value, and it also reports whether git would pick the file up, which is behavior no structured field reveals. It doesn't describe error behavior for a missing path or unexpected file type.

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?

Two sentences, front-loaded with the core guarantee ('without reading it out'), then the specific checks. Dense but every clause carries information. The colon-and-comma chaining packs three modes into one sentence, which is slightly harder to scan than a short list would be.

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

Completeness3/5

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

For a three-parameter read-only tool with no output schema, the description covers what is being checked but not what comes back — a boolean, a count, a per-file verdict, or all of these. The count mode is only hinted at by 'how many of a placeholder.' Adequate to call correctly, but an agent cannot predict the response shape.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds meaning by mapping parameters to modes: a KEY is the dotenv lookup, a placeholder is what gets counted, and path is the file inspected. It does not explain how the parameters combine or which take precedence when several are supplied, which is the one remaining semantic gap.

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?

Names a specific verb ('check') and a specific resource ('a secret'), then enumerates the three concrete checks it performs (dotenv key with a value, placeholder count, file existence) plus a git-ignore signal. That is far beyond a tautology of the title. It loses a point only because it doesn't distinguish itself from the sibling request/wait/cancel tools, whose relationship to this check is left implicit.

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?

Explicitly routes the agent away from an alternative: 'Use this rather than reading the file,' with the implicit safety rationale ('without reading it out'). It does not state when-not to use it, nor mention the sibling secret tools, so it stops short of full when/when-not/alternatives coverage.

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