Skip to main content
Glama

Get WSL system information

get_system_info
Read-only

Retrieve WSL system information from Windows Subsystem for Linux environments to monitor configuration and performance.

Instructions

Get WSL system information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:108-141 (registration)
    Registration of the 'get_system_info' tool using this.server.tool, including the inline handler function.
    this.server.tool(
    	{
    		name: 'get_system_info',
    		description: 'Get WSL system information',
    		annotations: {
    			readOnlyHint: true,
    		},
    	},
    	async () => {
    		try {
    			const result = await this.command_executor.execute_command(
    				'uname -a && lsb_release -a 2>/dev/null || cat /etc/os-release',
    			);
    			return {
    				content: [
    					{
    						type: 'text' as const,
    						text: this.format_output(result),
    					},
    				],
    			};
    		} catch (error) {
    			return {
    				content: [
    					{
    						type: 'text' as const,
    						text: `Error: ${error instanceof Error ? error.message : String(error)}`,
    					},
    				],
    				isError: true,
    			};
    		}
    	},
    );
  • The handler function for get_system_info, which executes WSL system info commands (uname, lsb_release or os-release), formats the output using format_output, and returns as text content or error.
    async () => {
    	try {
    		const result = await this.command_executor.execute_command(
    			'uname -a && lsb_release -a 2>/dev/null || cat /etc/os-release',
    		);
    		return {
    			content: [
    				{
    					type: 'text' as const,
    					text: this.format_output(result),
    				},
    			],
    		};
    	} catch (error) {
    		return {
    			content: [
    				{
    					type: 'text' as const,
    					text: `Error: ${error instanceof Error ? error.message : String(error)}`,
    				},
    			],
    			isError: true,
    		};
    	}
    },
Behavior3/5

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

The annotations include readOnlyHint: true, indicating this is a safe read operation. The description doesn't contradict this, as 'Get' aligns with read-only behavior. However, it adds no behavioral context beyond what annotations provide—such as what specific information is returned, potential rate limits, or authentication needs. With annotations covering the safety profile, the description adds minimal value, meeting the baseline for this dimension.

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 extremely concise—a single phrase with no wasted words. It's front-loaded and to the point, which is efficient for a simple tool. However, it's arguably too concise, bordering on under-specification, as it sacrifices clarity for brevity. This earns a high score for conciseness but not a perfect 5 due to the trade-off with completeness.

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

Completeness2/5

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

Given the tool's simplicity (0 parameters, read-only annotations) and lack of an output schema, the description is incomplete. It doesn't explain what 'system information' entails (e.g., WSL version, distribution details, or hardware info), leaving the agent uncertain about the return values. With no output schema, the description should provide more context on the expected data, but it fails to do so, making it inadequate for full understanding.

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?

The tool has 0 parameters, and the schema description coverage is 100%, so there are no parameters to document. The description doesn't need to compensate for any gaps, as the schema fully handles the lack of inputs. This justifies a baseline score of 4, as the description isn't required to add parameter semantics in this case.

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

Purpose2/5

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

Tautological: description restates name/title.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't specify what type of system information it retrieves (e.g., OS details, version, configuration) compared to siblings like get_disk_usage or list_processes, leaving the agent to guess based on the tool name alone. There are no explicit instructions on context or exclusions, resulting in poor usage guidance.

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/spences10/mcp-wsl-exec'

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