get_system_info
Retrieve basic system information from the mcp-flyin server to monitor hardware and software status for troubleshooting and management.
Instructions
Get basic system information
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": "get_system_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:125-144 (handler)The handler for the 'get_system_info' tool. It dynamically imports the Node.js 'os' module, gathers system information (platform, architecture, Node version, uptime, total and free memory), and returns it as a formatted JSON string in a text content block.
case 'get_system_info': const os = await import('os'); const systemInfo = { platform: os.platform(), arch: os.arch(), nodeVersion: process.version, uptime: os.uptime(), totalMemory: os.totalmem(), freeMemory: os.freemem(), }; return { content: [ { type: 'text', text: `System Information:\n${JSON.stringify(systemInfo, null, 2)}`, }, ], }; - server.js:67-74 (registration)Registration of the 'get_system_info' tool in the ListTools handler, providing the tool name, description, and empty input schema (no parameters required).
{ name: 'get_system_info', description: 'Get basic system information', inputSchema: { type: 'object', properties: {}, }, }, - server.js:67-74 (schema)The input schema for 'get_system_info' tool, defined as an empty object (no input parameters).
{ name: 'get_system_info', description: 'Get basic system information', inputSchema: { type: 'object', properties: {}, }, },