Skip to main content
Glama

Current operating environment

getPlatformInfo

Retrieve detailed platform information about the current operating environment to analyze system configurations and ensure compatibility.

Instructions

获取当前系统的平台信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • The execution logic for the 'getPlatformInfo' tool, retrieving OS platform, architecture, hostname, type, release, and version using Node's os module and returning as JSON.
    case "getPlatformInfo": { const platformInfo = { platform: os.platform(), arch: os.arch(), hostname: os.hostname(), type: os.type(), release: os.release(), version: os.version() }; return { content: [{ type: "text", text: JSON.stringify(platformInfo, null, 2) }] }; }
  • Tool schema definition in the listTools response, including name, description, and empty input schema (no parameters required).
    { name: "getPlatformInfo", description: "获取当前系统的平台信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • src/index.ts:28-36 (registration)
    Registration of the 'getPlatformInfo' tool in the tools list returned by the ListTools handler.
    { name: "getPlatformInfo", description: "获取当前系统的平台信息", 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