get_classes

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...

Server Tree-Hugger-JS MCP Server qckfx/tree-hugger-js-mcp
Category Read
Risk class Low
Parameters 00 required

What get_classes does on Tree-Hugger-JS MCP Server

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.

Why get_classes needs a policy

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).

Questions about get_classes

What does the get_classes tool do? +

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.

How do I enforce a policy on get_classes? +

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.

What risk level is get_classes? +

get_classes is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit get_classes? +

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.

How do I block get_classes completely? +

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.

What MCP server provides get_classes? +

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.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.