Skip to main content
Glama

update_connection

Patch a named database connection in its project or global layer, updating fields, removing values with null, and adjusting SSH, SSL, or query timeout settings.

Instructions

Patch a connection by name in the layer it lives in (project or global). Set a field to null to remove it (e.g. "ssh": null); an ssh object is merged field by field, e.g. { "ssh": { "hostKey": "SHA256:..." } }. queryTimeoutMs sets the per-statement timeout (null restores the 60 s default). ssl is replaced as a whole, not merged like ssh.

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": {
      "name": "<name>",
      "patch": "<patch>"
    },
    "name": "update_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
patchYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does real work here by disclosing the three distinct mutation semantics: null deletes a field, ssh merges field-by-field, ssl is replaced wholesale. It omits whether the connection must already exist, what happens if it does not, and whether the change is validated or reversible.

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 identification and scope, then moving to the highest-risk semantics (delete vs merge vs replace). Dense but every sentence carries information; the two inline JSON examples are short and purposeful.

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?

For a nested-object mutation tool with no annotations, no output schema, and zero schema descriptions, the description covers the ambiguities most likely to cause a bad call. Remaining gaps — existence requirements, error behavior, post-patch validation — are secondary but non-trivial for a destructive-ish write.

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 description coverage is 0%, so the description must compensate for two top-level parameters and a nested patch object. It explains ssh merge behavior, ssl replacement, queryTimeoutMs units and its null default, and the null-to-delete convention, but says nothing about host, port, user, password, database, readonly, or type.

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?

States a specific verb and resource ("Patch a connection by name") plus the scope resolution rule ("in the layer it lives in (project or global)"). The verb "patch" alone distinguishes it from add_connection and remove_connection without needing to name them.

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 — this is the tool for modifying an existing connection — but the description never states when to prefer it over add_connection (recreate) or when to run test_connection afterward. No prerequisites, no explicit exclusions.

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