Skip to main content
Glama

smbclient_list_shares

List SMB shares on a target host using smbclient, with support for anonymous or authenticated access and custom port.

Instructions

List SMB shares on a target host using smbclient. target: IP or hostname username: SMB username (leave empty for anonymous) password: SMB password (leave empty for anonymous) port: SMB port (default 445)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
targetYes
passwordNo
usernameNo
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It does not mention whether this is a network scan, if it requires credentials, potential side effects, or error behavior. The description is purely functional and lacks depth.

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?

The description is compact and front-loaded with the primary purpose. Each parameter is explained, but there is slight redundancy ('leave empty for anonymous' repeated). Overall, it is concise and structurally clear.

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?

For a simple listing tool with no annotations and no output schema, the description covers the basics: target, credentials, and port. However, it lacks guidance on output format, authentication failures, or when this tool is preferable to other SMB enumeration tools, leaving some gaps.

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 description coverage is 0%, so the description must compensate. It does add meaning beyond the schema: target is IP/hostname, username/password empty for anonymous, port default 445. This provides practical context not present in the bare schema.

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?

The description clearly states the action 'List SMB shares' and the resource 'target host', which is specific and distinguishes it from sibling scan tools. The verb-resource pairing is unambiguous.

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?

The description implies usage by explaining parameter values (e.g., empty username/password for anonymous), but it does not provide explicit when-to-use guidance or contrast with alternative tools like enum4linux_scan or nmap_service_detection. It's minimal but not misleading.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Neeraj829784/kali-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server