Skip to main content
Glama

Current operating environment

getHardwareInfo

Retrieve detailed hardware information from the current operating environment, such as production date, to analyze and troubleshoot system setup.

Instructions

获取当前设备的硬件信息,包括生产日期等

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • Handler for the getHardwareInfo tool. It uses the systeminformation library (si.system()) to fetch comprehensive hardware information and returns it as a formatted JSON string in the tool response.
    case "getHardwareInfo": { const hardwareInfo = await si.system(); return { content: [{ type: "text", text: JSON.stringify(hardwareInfo, null, 2) }] }; }
  • src/index.ts:127-135 (registration)
    Registration of the getHardwareInfo tool in the listTools response, including name, description, and empty input schema (no parameters required).
    { name: "getHardwareInfo", description: "获取当前设备的硬件信息,包括生产日期等", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for getHardwareInfo tool, which is an empty object (no input parameters).
    inputSchema: { type: "object", properties: {}, required: [] }

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/JackXuyi/env-mcp'

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