Skip to main content
Glama

get_system_info

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, }; } },

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