Skip to main content
Glama
JackXuyi

Current operating environment

getCpuInfo

Retrieve detailed CPU information of the current system to analyze and monitor hardware performance within the operating environment.

Instructions

获取当前系统的 CPU 信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the 'getCpuInfo' tool. It retrieves CPU information using Node.js 'os.cpus()' and returns it as a JSON-stringified text content block.
    case "getCpuInfo": { const cpuInfo = { cpus: os.cpus() }; return { content: [{ type: "text", text: JSON.stringify(cpuInfo, null, 2) }] }; }
  • src/index.ts:46-53 (registration)
    Registration of the 'getCpuInfo' tool in the tools list returned by the ListToolsRequest handler. Includes name, description, and input schema definition (empty object).
    { name: "getCpuInfo", description: "获取当前系统的 CPU 信息", inputSchema: { type: "object", properties: {}, required: [] }
  • Input schema definition for 'getCpuInfo' tool: an empty object with no properties or requirements.
    { name: "getCpuInfo", description: "获取当前系统的 CPU 信息", 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