Skip to main content
Glama

list_graph_entities

Read-only

Lists typed entities in a workspace knowledge graph, sorted by name, enabling you to browse indexed packages and classes or filter by name and entity type.

Instructions

List the typed entities in a workspace's knowledge graph, sorted by name: packages and classes indexed automatically from a jadx decompile, plus anything added through the Gateway API. Returns an array of { id, type, name, attributes, artifactIds, createdAt, updatedAt }; class entities keep their source file in attributes.file. Use get_graph_entity for one entity's relationships, and an entity id as entityId in a finding's evidence. Only reads, apart from creating the workspace if it doesn't exist.

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": "list_graph_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoCase-insensitive substring of the entity name, e.g. "login" or "com.acme".
typeNoOnly return entities of this type. Omit to return every type.
workspaceNoWorkspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.1
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "package",
      -  "class",
      -  "method",
      -  "native-function",
      -  "resource",
      -  "url",
      -  "secret-candidate",
      -  "runtime-event",
      -  "traffic-event"
      -]New value: +[
      +  "package",
      +  "class",
      +  "method",
      +  "native-function",
      +  "resource",
      +  "url",
      +  "string",
      +  "secret-candidate",
      +  "runtime-event",
      +  "traffic-event"
      +]
  2. Addedv1.3.19

TDQS

A4.3/5.0
Behavior5/5

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

Goes beyond the readOnlyHint/openWorldHint annotations by disclosing a real side effect: the workspace is created if missing and the call is recorded as a job in its history, which is why it says "only reads, apart from creating the workspace". It also documents the returned array shape and the attributes.file detail for class entities, giving the agent both mutation nuance and return context.

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

Conciseness4/5

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

Three tight sentences, front-loaded with the core action and scope, then the return shape, then routing guidance. Dense but every clause carries meaning; the parenthetical about jadx indexing could arguably be shortened.

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?

With no output schema, the description does the right thing by spelling out the returned object fields and the attributes.file convention. It also covers the workspace side effect. The remaining gap is result volume behavior — no mention of whether the list is paginated, capped, or truncated for large graphs.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents q, type (with a full enum), and workspace. The description adds no syntax or format guidance for those parameters; its extra information concerns sort order and return fields. Baseline 3 is appropriate.

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

Purpose5/5

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

Opens with a specific verb+resource ("List the typed entities in a workspace's knowledge graph, sorted by name") and goes further to say where the entities come from (jadx decompile plus Gateway API). It explicitly separates itself from get_graph_entity, so an agent can choose between the two without opening either schema.

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

Usage Guidelines4/5

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

Names the alternative and the condition that selects it ("Use get_graph_entity for one entity's relationships"), and adds a downstream usage hint (pass an entity id as entityId in a finding's evidence). It gives clear context but no explicit exclusions against other list_* siblings, so it falls short of a full when/when-not statement.

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