Skip to main content
Glama

smb-get

Destructive

Fetches a specified file from a Windows SMB share to a local destination path, creating the destination folder when needed.

Instructions

dbabrain common.cli smb-get: 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-get"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the supplied destructiveHint/openWorldHint annotations, the description discloses that emergency-operations commands require `confirm`:"yes" and a `reason`, that a password is never passed on a command line but written to a 0600 file and deleted, and that timeouts default to 600s for listing/delete and 3600s for a single file. It stops short of saying whether smb-get is one of the confirm-requiring operations or what happens on a partial transfer.

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 field list is scannable and earns its space, but the lead-in is muddled ("A Windows share and the login to it - what to list, fetch, delete, or store the login for") and interleaves a generic family-level sentence with command-specific fields, forcing the reader to sort smb-get's three relevant fields out of fifteen.

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 and annotations carry the safety profile, and every request field is documented. The gap is scoping: the description never states whether smb-get requires `confirm`/`reason`, nor what happens when local_path exists or the transfer times out, which matters for a network fetch whose annotations flag it as destructive.

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 input schema is a single opaque `request` object with additionalProperties:true and 0% description coverage, so the description carries the entire burden and does so thoroughly: it documents host, share, username (with the DOMAIN\user split rule), password, domain, backend defaults per platform, timeout defaults, remote_path/local_path for smb-get, and even explains why smb-delete takes exactly one forced path.

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 line describes the whole SMB family ("what to list, fetch, delete, or store the login for") rather than smb-get specifically; the actual purpose only emerges indirectly from the field prefixes ("remote_path: smb-get: the file under the share", "local_path: smb-get: the file to write on this node"). An agent can derive that smb-get fetches a remote file to a local path, but it must do the inference itself.

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?

Field prefixes (smb-list:, smb-get:, smb-delete:, smb-credential:) implicitly route which request fields belong to which command, and the note about `confirm`:"yes" plus `reason` for emergency-operations commands is real usage context. However, there is no explicit statement of when to choose a fetch over a list or delete, and no statement of whether smb-get itself sits on the emergency-operations list requiring confirmation.

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