Skip to main content
Glama

JVM MCP Server

search_method

Retrieve detailed method information from Java classes using process ID, class pattern, and optional method pattern. Supports regex or wildcard matching and customizable classloader specifications for targeted analysis.

Instructions

查看类的方法信息

Args: pid: 进程ID class_pattern: 类名表达式匹配 method_pattern: 可选的方法名表达式 show_detail: 是否展示每个方法的详细信息 use_regex: 是否开启正则表达式匹配,默认为通配符匹配 classloader_hash: 指定class的ClassLoader的hashcode classloader_class: 指定执行表达式的ClassLoader的class name max_matches: 具有详细信息的匹配类的最大数量(默认为100)

Input Schema

NameRequiredDescriptionDefault
class_patternYes
classloader_classNo
classloader_hashNo
max_matchesNo
method_patternNo
pidYes
show_detailNo
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" }, "max_matches": { "default": null, "title": "Max Matches", "type": "integer" }, "method_pattern": { "default": null, "title": "Method Pattern", "type": "string" }, "pid": { "title": "Pid", "type": "integer" }, "show_detail": { "default": false, "title": "Show Detail", "type": "boolean" }, "use_regex": { "default": false, "title": "Use Regex", "type": "boolean" } }, "required": [ "pid", "class_pattern" ], "title": "search_methodArguments", "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