Skip to main content
Glama

passkey_validate_references

Read-onlyIdempotent

Validates passkey:// secret references in templates or env files without exposing secret values, and reports missing entries/fields plus prompt-gated entries lacking a lease.

Instructions

Validate passkey:/// secret references in a template or env file.

Checks whether every referenced entry and field exists in the keychain without exposing any secret values, and reports prompt-gated entries lacking a lease.

Args: file_path: Path to a template or .env.passkey file containing passkey:// references

Returns: Dictionary with {"valid": bool, "checked": int, "missing": [...], "prompt_entries_without_lease": [...]}

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": {
      "file_path": "<file_path>"
    },
    "name": "passkey_validate_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the disclosure that it never exposes secret values and that it surfaces prompt-gated entries lacking a lease. It also documents the return shape, which matters since no output schema exists. It does not describe error behavior for a missing or unreadable file.

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?

Front-loaded with the core action, then the specific checks, then a compact Args/Returns block. The first sentence and the 'Checks whether every referenced entry and field exists' sentence overlap slightly in restating validation scope, but nothing is padding.

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 single-parameter read-only validation tool with no output schema, the description covers purpose, what is verified, what is deliberately not exposed, the special prompt-gated/lease case, and the return dictionary keys. An agent has everything needed to call it and interpret the result.

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

Parameters3/5

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

Schema coverage is 0% and the schema only says 'File Path', so the description's note that file_path points to a template or .env.passkey file containing passkey:// references is genuinely additive. However, it adds no detail on accepted file types beyond those two examples, relative vs absolute paths, or encoding, so it only partially compensates for the coverage 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?

The description names a specific verb ('Validate') and a specific resource ('passkey://<entry>/<field> secret references in a template or env file'), plus the exact checks performed (entry/field existence, lease status). It is clearly distinguishable from siblings like passkey_find or passkey_entry_info, though it never explicitly contrasts itself with the diagnostically similar passkey_doctor or passkey_preflight_run.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the pre-flight check for a template or .env.passkey file before use, but the description gives no explicit when-to-use, when-not-to-use, or alternative (e.g. passkey_doctor vs passkey_preflight_run). Nothing is misleading, but the routing decision is left to inference.

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