| name | explore-graph |
| description | Explore and query the knowledge graph interactively. Search for topics, investigate entities, trace connections, and discover patterns. Use when users want to ask questions about their knowledge graph, find connections, or understand relationships in their documents. |
Explore Knowledge Graph
Overview
This skill provides guided exploration of an existing knowledge graph. It helps users discover entities, relationships, and patterns in their document corpus.
Tools
Use the kgmd MCP server tools: search, get_entity_tool, list_entities_tool, get_neighbors_tool, find_path_tool, list_relations_tool, get_schema_tool.
Approach
Start by understanding what the user wants to explore, then use the appropriate tools:
For topic searches
- Call
search() with the topic
- Present matching chunks with associated entities
- Offer to explore specific entities in detail
For entity exploration
- Call
get_entity_tool() for the full record
- Call
get_neighbors_tool(depth=2) for network context
- Present attributes, mentions (with document sources), and all connections
For connection finding
- Call
find_path_tool() between two entities
- Present the path with relationship types
- Call
get_neighbors_tool() on both to show alternative routes
For overview/orientation
- Call
get_schema_tool() to show entity and relation types
- Call
list_entities_tool() per type to show what's in the graph
- Highlight the most connected or frequently mentioned entities
Presentation
- Always cite source documents when showing entity information
- Show relationship direction clearly (who → predicate → whom)
- Offer follow-up exploration paths ("Would you like to explore X further?")