Skip to main content
Glama
78degrees
by 78degrees

fix_secrets

Fix leaked secrets on your machine by cleaning shell history, adding .env to .gitignore, and receiving step-by-step rotation instructions.

Instructions

Fix leaked secrets found on your machine. Auto-cleans shell history (backs up first), adds .env to .gitignore where missing, and provides step-by-step rotation instructions with direct links for secrets that need manual rotation. Returns structured JSON (in a second content block) with before/after health scores for visual rendering. If you have visualization capabilities, render the JSON as a fix report dashboard with before/after health score comparison and auto-fixed item list. Run scan_secrets first to see what will be fixed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
auto_fixNoAutomatically fix what's possible (shell history cleanup, gitignore). Default: true.
include_low_severityNoInclude low-severity findings in the fix. Default: false.
Behavior5/5

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

With no annotations, the description fully discloses behavior: backs up shell history, adds gitignore, returns structured JSON with health scores, and mentions visualization. No contradictions.

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?

Five sentences, each adding value. Front-loaded with main purpose. Slightly verbose but well-structured. Could be trimmed slightly without losing information.

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?

Comprehensive: explains return format (structured JSON with health scores), workflow (run scan_secrets first), edge cases (backup before cleanup, manual rotation instructions). No output schema, but description compensates well.

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% (both params described). The description adds context: auto_fix covers shell history cleanup and gitignore; include_low_severity filters findings. This adds meaning beyond the schema descriptions.

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

Purpose5/5

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

The description clearly states it fixes leaked secrets with specific actions (auto-cleans shell history, adds .env to .gitignore, provides rotation instructions). It distinguishes from siblings like scan_secrets (scanning) and scan_summary (summarizing).

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

Usage Guidelines5/5

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

Explicitly advises to run scan_secrets first to see what will be fixed, providing clear workflow guidance. Also explains tool scope: auto-fixes and manual rotation instructions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/78degrees/ghosthunt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server