Skip to main content
Glama
JackXuyi

Current operating environment

getCpuInfo

Retrieve CPU information from the current operating environment to analyze system specifications and monitor performance metrics.

Instructions

获取当前系统的 CPU 信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the 'getCpuInfo' tool. It uses Node.js 'os.cpus()' to fetch CPU information and returns it as a JSON string in the tool response format.
    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 list of available tools. Defines the tool name, Chinese description, and an empty input schema (no parameters required).
    { name: "getCpuInfo", description: "获取当前系统的 CPU 信息", inputSchema: { type: "object", properties: {}, required: [] }
  • Input schema for the 'getCpuInfo' tool, specifying an empty object (no input parameters). Note: output schema is not explicitly defined.
    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