Skip to main content
Glama

JVM MCP Server

get_stack_trace_by_method

Trace method call paths in Java processes by specifying process ID, class, and method patterns. Apply conditions, regex, and limits to analyze execution paths effectively.

Instructions

获取方法的调用路径

Args: pid: 进程ID class_pattern: 类名表达式匹配 method_pattern: 方法名表达式匹配 condition: 条件表达式,例如:'params[0]<0' 或 '#cost>10' use_regex: 是否开启正则表达式匹配,默认为通配符匹配 max_matches: 指定Class最大匹配数量,默认值为50 max_times: 执行次数限制

Input Schema

NameRequiredDescriptionDefault
class_patternYes
conditionNo
max_matchesNo
max_timesNo
method_patternYes
pidYes
use_regexNo

Input Schema (JSON Schema)

{ "properties": { "class_pattern": { "title": "Class Pattern", "type": "string" }, "condition": { "default": null, "title": "Condition", "type": "string" }, "max_matches": { "default": null, "title": "Max Matches", "type": "integer" }, "max_times": { "default": null, "title": "Max Times", "type": "integer" }, "method_pattern": { "title": "Method Pattern", "type": "string" }, "pid": { "title": "Pid", "type": "integer" }, "use_regex": { "default": false, "title": "Use Regex", "type": "boolean" } }, "required": [ "pid", "class_pattern", "method_pattern" ], "title": "get_stack_trace_by_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