Skip to main content
Glama

Current operating environment

getGraphicsInfo

Retrieve detailed graphics card information for the current device to diagnose or optimize system performance and compatibility.

Instructions

获取当前设备的显卡信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • The handler case for the 'getGraphicsInfo' tool. It uses the systeminformation library (si.graphics()) to fetch graphics card information asynchronously and returns it formatted as JSON text in the standard MCP tool response.
    case "getGraphicsInfo": { const graphicsInfo = await si.graphics(); return { content: [{ type: "text", text: JSON.stringify(graphicsInfo, null, 2) }] }; }
  • src/index.ts:199-207 (registration)
    The tool registration/metadata in the listTools handler (handleRequest). Defines the tool name, Chinese description ('Get current device graphics info'), and an empty input schema (no parameters required).
    { name: "getGraphicsInfo", description: "获取当前设备的显卡信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • The input schema for 'getGraphicsInfo', which is an empty object (no input parameters). No output schema is 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