Skip to main content
Glama

remote-credential-add

Destructive

Register an OS login credential and its cmd_access for a remote server, supporting password or key authentication plus optional SSH or WinRM access details.

Instructions

dbabrain common.cli remote-credential-add: An OS login to register, and the cmd_access that names it. 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): The machine.

  • host: Its address.

  • server_description: What it is.

  • username (required): The OS account.

  • password: Its password - encrypted, never written.

  • password_ref: Or an existing secret.

  • auth_type: password | key.

  • key_file: The key, for key auth.

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

  • role: A label.

  • account_owner: Who owns the account.

  • note: Why it exists.

  • method: ssh | winrm - write the cmd_access too.

  • platform: windows | linux.

  • port: The port.

  • shell: The shell.

  • ssl: winrm: TLS.

  • enabled: The cmd_access block's own switch.

  • replace: Overwrite an existing one.

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": "remote-credential-add"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: passwords are encrypted and never written, `replace` overwrites an existing record, and privileged commands need confirm plus reason. It does not say what happens on failure or whether repeat calls are idempotent.

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?

Purpose first, then a scannable bulleted field list with required markers — good front-loading and no padding in the field section. The boilerplate sentence "Changes or removes something" and the unglossed "cmd_access" are the only wasted or confusing lines.

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?

An output schema exists, so return values need not be described, and the destructive/confirm semantics plus full field semantics are covered. What is missing for a destructive, open-world tool is sibling disambiguation and any note on side effects or rollback when `replace` overwrites a live credential.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

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

The schema exposes only an opaque `request` object with 0% description coverage, so the description must carry the full load, and it does: all twenty fields are enumerated with meaning, required ones are marked, and enums like password|key, ssh|winrm, windows|linux, and the shell/ssl options are spelled out.

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

Purpose3/5

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

The opening names a verb and resource ("An OS login to register" plus "the cmd_access that names it"), but the internal term "cmd_access" is never explained and the follow-up sentence "Changes or removes something" muddies whether this is an add or a delete. An agent can mostly infer it registers a remote OS credential from the field list, but the purpose statement itself is not clean.

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

Usage Guidelines2/5

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

There is no guidance on when to pick this over the visible alternatives credential-remove, smb-credential, or check-credentials. The only procedural note is the emergency-operations requirement for confirm:"yes" and a reason, which tells the agent how to call it rather than when.

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