Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_java_classes

Enumerate loaded Java classes from an Android app's dex files, with optional case-insensitive substring filtering and a result limit.

Instructions

Enumerate loaded Java classes from the app's dex files (Java.enumerateLoadedClasses).

Args: pattern: Optional case-insensitive substring filter (e.g., "okhttp", "com.example", "Trust") limit: Maximum class names to return (default: 200, max: 2000)

Returns: JSON object with total matches and list of class names

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "renef_java_classes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
patternNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the data source (dex files), the default (200) and hard cap (2000) on results, and that output is a JSON object with a total plus a name list. It stops short of stating prerequisites (e.g., whether an attached process or hook framework is required) or any performance cost of enumerating all classes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The primary statement is front-loaded in the first sentence, followed by clearly labeled Args and Returns sections. Every line adds information an agent needs; nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter enumeration tool with an output schema, the definition covers purpose, parameter meaning, limits, and result shape adequately. The remaining gap is operational context — prerequisites for enumerating loaded classes and how this fits into a hook/inspection workflow — which the agent cannot derive from the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: both parameters are explained with semantics beyond the raw schema, including that pattern is a case-insensitive substring match with concrete examples, and that limit has a default of 200 and a ceiling of 2000 that the schema itself does not express.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Enumerate loaded Java classes from the app's dex files', plus the underlying API (Java.enumerateLoadedClasses), which pins down scope precisely. It does not reference any sibling tool, so the agent must infer that siblings like renef_java_method_info or renef_java_call serve different purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the pattern examples ('okhttp', 'com.example', 'Trust') suggest reconnaissance/filtering, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative. An agent must reason from the sibling list to know this is the discovery step before method inspection or hooking.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.