Skip to main content
Glama

db_setup_scan

Scans server or local path for database credentials (e.g., .env, wp-config.php) to configure database tools without manual setup. Returns redacted previews and a token; password stays server-side.

Instructions

Discover an instance's DB credentials (from .env / DATABASE_URL / wp-config.php / docker env) to set up the db tools with no manual config. Reads the app config READ-ONLY over SSH on the box. Returns REDACTED previews + a staging token per candidate; the password is held server-side and never returned, so it can't leak into your context. Then call db_setup_save with the chosen token. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesInstance ID, name, or custom-server name.
search_pathNoOptional dir on the box to search (or a local .env path). Empty = scan common web roots.
sourceNoWhere to scan: 'auto'/'ssh' read the box (default), 'local' reads search_path locally.auto
Behavior4/5

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

Discloses read-only operation over SSH, redaction of previews, and that password is held server-side to prevent leakage. No annotation provided, so description carries the burden; it does well but could mention error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, no wasted words. Front-loaded with purpose, then behavior, then workflow, then safety note. Efficient and well-structured.

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

Completeness4/5

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

Explains return format (redacted previews + token) and workflow. No output schema, but description compensates. Could mention prerequisites like SSH access, but adequate for complexity.

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 covers all parameters with descriptions (100% coverage). Description adds context like 'scan common web roots' for search_path but does not significantly deepen understanding beyond schema. Baseline 3 applies.

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?

Clearly states verb 'Discover' and resource 'DB credentials', specifies sources (.env, DATABASE_URL, wp-config.php, docker env), and distinguishes from sibling db_setup_save which is the follow-up step.

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 mentions next step 'call db_setup_save with the chosen token' and indicates read-only nature. Does not explicitly list when not to use or compare with other tools, but context is clear.

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/zb-ss/servonaut'

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