Get all classes with comprehensive method and property analysis. Perfect for OOP code review.\n\nExamples:\n• Architecture review: get_classes() to understand class structure\n• API design: get_classes() to see public method interfaces\n• Inheritance analysis: get_classes() to identify class hier...
AI agents call get_classes to retrieve information from Tree-Hugger-JS MCP Server without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
This tool performs static code analysis to extract and present information about classes, methods, and properties. It is purely informational with no capability to modify code, execute arbitrary operations, or trigger external effects. The examples explicitly frame it as a review and analysis tool with no write, execute, or destructive operations.
From the tool's definition Tool description states 'Get all classes with comprehensive method and property analysis' and all examples focus on retrieval and analysis activities (architecture review, API design review, inheritance analysis, auditing).
Attacks that exploit this kind of access
Get all classes with comprehensive method and property analysis. Perfect for OOP code review.\n\nExamples:\n• Architecture review: get_classes() to understand class structure\n• API design: get_classes() to see public method interfaces\n• Inheritance analysis: get_classes() to identify class hierarchies\n• Method-only view: get_classes({includeProperties: false}) to focus on behavior\n• Property audit: get_classes({includeMethods: false}) to review state management\n• Testing prep: get_classes() to identify methods needing unit tests. It is categorised as a Read tool in the Tree-Hugger-JS MCP Server MCP Server, which means it retrieves data without modifying state.
Register the Tree-Hugger-JS MCP Server MCP server in PolicyLayer and add a rule for get_classes: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Tree-Hugger-JS MCP Server. Nothing to install.
get_classes is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the get_classes rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for get_classes. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
get_classes is provided by the Tree-Hugger-JS MCP Server MCP server (qckfx/tree-hugger-js-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →