Skip to main content
Glama

instance-add

Destructive

Registers a database instance with its login so an AI agent can manage it. Records server ID, engine, IP, site, and environment to enable health checks and SQL operations.

Instructions

dbabrain common.cli instance-add: An instance to register, with its login. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • server_id (required): Its name everywhere.

  • db_type (required): The engine.

  • ip (required): Its address.

  • site (required): Which site or company the machine belongs to. Required to register; a keep_default request writes no inventory field and carries none.

  • environment (required): Whether the machine is production, and how a person groups it. Required to register - a restore onto a target whose record states no environment is refused, and only the owner knows it; a keep_default request carries ...

  • port: Its port.

  • service_name: A label.

  • database_name: One database.

  • username: The login.

  • password: Its password - encrypted, never written.

  • password_ref: Or an existing secret.

  • credential_name: Which login in users.json; default: the instance's own.

  • role: What the login is for.

  • replace: Overwrite an existing server_id.

  • active: Registered switched on (default) or off.

  • keep_default: Add this login beside a registered server's default, which stays its default: no inventory field is written.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "instance-add"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true; the description adds meaningful behavior beyond them — password is "encrypted, never written," replace overwrites an existing server_id, keep_default writes no inventory field, and confirm/reason may be required. The generic boilerplate line "Changes or removes something" adds nothing and the sentence is truncated mid-clause for environment.

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

Conciseness3/5

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

The bulleted request-field list is scannable and front-loads the key required fields, but the prose is fragmented, contains truncated sentences ending in ellipses, and includes filler like "Changes or removes something." alongside CLI-reference boilerplate that may not be relevant to every caller.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and the field list covers most of the request object. Gaps remain: truncated field descriptions, no statement of what happens on duplicate server_id without replace, and no explicit precondition/permission information for a destructive, open-world write.

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 0% and the schema exposes only an untyped `request` object, so the description must carry the full load — and it does, enumerating server_id, db_type, ip, site, environment, port, service_name, database_name, username, password, password_ref, credential_name, role, replace, active, and keep_default with brief meanings. Value is reduced by truncation (environment trails off with "...") and thin glosses like "Its port." / "A label."

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 definition states a concrete verb+resource pair: register an instance "with its login," so an agent knows it creates a registered instance record rather than manipulating existing ones. It does not differentiate itself from plausible siblings such as add-sql, sql-target-add, or remote-credential-add, which also add server/credential records.

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?

It gives conditional guidance for keep_default (add a login beside a registered server's default with no inventory field written) and notes that emergency-operations commands require confirm:"yes" plus a reason, which is useful pre-call context. However, it never says when to choose this tool over the sibling add-* tools, and it's ambiguous whether instance-add itself is on that emergency-operations list.

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

Deploy Server

Other Tools