Skip to main content
Glama

JVM MCP Server

get_class_info

Retrieve detailed class information from Java processes using patterns or regex, including member variables and static properties, with customizable depth and ClassLoader specifications.

Instructions

获取类信息

Args: pid: 进程ID class_pattern: 类名表达式匹配 show_detail: 是否显示详细信息,默认false show_field: 是否显示成员变量信息(需要show_detail=True),默认false use_regex: 是否使用正则表达式匹配,默认false depth: 指定输出静态变量时属性的遍历深度,默认1 classloader_hash: 指定class的ClassLoader的hashcode,默认None classloader_class: 指定执行表达式的ClassLoader的class name,默认None max_matches: 具有详细信息的匹配类的最大数量

Input Schema

NameRequiredDescriptionDefault
class_patternYes
classloader_classNo
classloader_hashNo
depthNo
max_matchesNo
pidYes
show_detailNo
show_fieldNo
use_regexNo

Input Schema (JSON Schema)

{ "properties": { "class_pattern": { "title": "Class Pattern", "type": "string" }, "classloader_class": { "default": null, "title": "Classloader Class", "type": "string" }, "classloader_hash": { "default": null, "title": "Classloader Hash", "type": "string" }, "depth": { "default": null, "title": "Depth", "type": "integer" }, "max_matches": { "default": null, "title": "Max Matches", "type": "integer" }, "pid": { "title": "Pid", "type": "integer" }, "show_detail": { "default": false, "title": "Show Detail", "type": "boolean" }, "show_field": { "default": false, "title": "Show Field", "type": "boolean" }, "use_regex": { "default": false, "title": "Use Regex", "type": "boolean" } }, "required": [ "pid", "class_pattern" ], "title": "get_class_infoArguments", "type": "object" }

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/xzq-xu/jvm-mcp-server'

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