Skip to main content
Glama
db-conn-mcp

db-conn-mcp

set_yolo_mode

Idempotent

Enable or disable yolo mode for one configured database, skipping the write-consent prompt; the setting persists across sessions and is audit-logged.

Instructions

Enable/disable yolo (skip the write-consent prompt) for one database, persisted.

Call it ONLY when the user explicitly asks to turn yolo on or off — never to get past a consent prompt yourself. It is saved in connections.json, so it lasts across sessions and applies to every client using that file, and each flip is recorded in the audit log. On a read-mode database the flag is stored but has no effect: yolo can never make a read database writable, and on a write database the dry-run preview still applies.

Returns meta, database, yolo and persisted, plus audit_recorded and warning when the audit line could not be written.

A call cancelled while the write was in progress may still have been applied; list_databases shows the stored value. A result with audit_recorded: false means the flip persisted but no audit line was written.

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": {
      "database": "<database>",
      "enabled": "<enabled>"
    },
    "name": "set_yolo_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYestrue: skip the consent prompt for this database. false: ask again.
databaseYesName of a configured database, exactly as list_databases returns it (case-sensitive). Not a DSN, host or server-side database name. An unknown name is an error that lists the configured names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.1
    • addedInput schema / properties / database / description
      Added value: +"Name of a configured database, exactly as list_databases returns it (case-sensitive). Not a DSN, host or server-side database name. An unknown name is an error that lists the configured names."
    • addedInput schema / properties / enabled / description
      Added value: +"true: skip the consent prompt for this database. false: ask again."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (which only mark it as a non-destructive, idempotent write), it discloses persistence location (connections.json), blast radius (every client sharing that file), audit logging, a partial-failure mode ('a call cancelled while the write was in progress may still have been applied'), and how to detect a missing audit line. This is far more than the structured hints convey.

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?

The purpose and the critical restriction are front-loaded in the first two sentences, and the remaining content is edge-case and return-value information that earns its place. It is slightly verbose with repeated 'audit_recorded'/'audit line' explanations in two places, but nothing is padded.

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?

There is no output schema, yet the description enumerates the returned fields (meta, database, yolo, persisted, audit_recorded, warning), explains the conditional ones, and covers the cancellation and audit-failure edge cases. 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.

Parameters4/5

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

Schema coverage is 100 percent, so the baseline is 3, but the description adds real meaning about the effect of `enabled`: on a read-mode database the flag is stored but has no effect, and on a write database the dry-run preview still applies. That is semantic behavior of the boolean that the schema does not state.

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 opening sentence gives a precise verb+resource: enable/disable yolo, defined inline as skipping the write-consent prompt, scoped to one database, and persisted. The parenthetical definition removes any ambiguity about what 'yolo' means, so no sibling overlap or guesswork remains.

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?

It states an explicit trigger ('ONLY when the user explicitly asks to turn yolo on or off') and an explicit anti-trigger ('never to get past a consent prompt yourself'). It also warns that the flag is inert on read-mode databases and that dry-run preview still applies on write databases, which pre-empts misleading expectations.

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