Skip to main content
Glama

smb-credential

Destructive

Manage stored Windows SMB share logins: list, fetch, store, or delete credentials used to open UNC paths on a target host.

Instructions

dbabrain common.cli smb-credential: A Windows share and the login to it - what to list, fetch, delete, or store the login for. 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):

  • host: The machine sharing it: //host/share. Every command but smb-credential.

  • share: The share's name on that host.

  • username: The login. A domain before it (DOMAIN, then a backslash, then the user) is split off, as Windows writes it. The caller resolves it - common.cli reads no configuration.

  • password: The login's password. Never on a command line: smbclient reads it from a file this command writes 0600 and deletes.

  • domain: The login's domain, when not part of username.

  • backend: smbclient | unc. Default: unc on Windows (the share's own path, after cmdkey), smbclient elsewhere.

  • timeout_seconds: The whole call. Default 600 for a listing or a delete, 3600 for one file.

  • path: smb-list: the folder under the share to list; empty = the share's root.

  • recurse: smb-list: into subfolders (default true).

  • suffixes: smb-list: only file names ending in one of these, case-insensitive (e.g. [".bak", ".trn"]).

  • remote_path: smb-get: the file under the share, backslash- or slash-separated.

  • local_path: smb-get: the file to write on this node; its folder is created.

  • paths: smb-delete: the ONE file to delete, under the share - a list of exactly one path, never a pattern or a folder; two or more are refused.

  • force: smb-delete: must be true - a share has no host to hash a file on, so this is the forced delete of one stray file.

  • target: smb-credential: the host whose UNC paths the stored login opens.

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

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Consistent with destructiveHint=true and readOnlyHint=false, and it adds substantive behavior beyond the annotations: the confirm/reason gate, password handling via a 0600 temp file that is deleted, per-operation timeout defaults (600 vs 3600), and the fact that common.cli reads no configuration so the caller must resolve the domain. Only the effects of storing vs overwriting a login are left implicit.

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 front-loaded opening sentence is good and the bulleted field list is scannable. However, the list mixes parameters for four different commands and never groups them by command, forcing the agent to parse each 'smb-list:'/'smb-get:' prefix to know what applies here.

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 no explanation, and the description covers timeouts, password hygiene and the confirm gate. It is nevertheless incomplete on the point that matters most for a credential tool: whether storing overwrites an existing login and what happens to the prior one.

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% with a single opaque `request` object, so the description must carry all parameter meaning, and it does - defaults, formats (backslash domain separator, case-insensitive suffix list, exactly-one-path rule for delete) are all spelled out. It loses a point because most of the field documentation describes parameters belonging to sibling commands, leaving only `target`, `confirm` and `reason` clearly attributable to this tool.

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?

"A Windows share and the login to it - what to list, fetch, delete, or store the login for" names the resource but bundles four different actions, so the specific verb this tool performs (credential storage for a target host) is only implied by the `target` field. Sibling tools smb-list, smb-get and smb-delete are referenced by name yet it is not stated that this tool is the one that stores the login rather than performing those operations.

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 real operational guidance: emergency-operations commands require `confirm: "yes"` and a `reason`, and `backend` defaults to unc on Windows and smbclient elsewhere. What it never states is when an agent should call smb-credential instead of smb-delete/smb-get/smb-list, which is the main routing decision for this tool.

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