You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gremlin-mcp/src/main/javascript/README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ Your AI assistant gets access to these powerful tools:
48
48
| 📋 **get_graph_schema**| Schema Discovery | Get complete graph structure with vertices and edges |
49
49
| ⚡ **run_gremlin_query**| Query Execution | Execute any Gremlin traversal query with full syntax support |
50
50
| 🔄 **refresh_schema_cache**| Cache Management | Force immediate refresh of cached schema information |
51
+
| 👌 **format_gremlin_query**| Query Formatting | Format a Gremlin query string using gremlint |
51
52
52
53
## 🚀 Quick Setup
53
54
@@ -171,6 +172,12 @@ Restart your AI client and try asking:
171
172
172
173
One of the most powerful features of this MCP server is **Automatic Enum Discovery** - it intelligently analyzes your graph data to discover valid property values and provides them as enums to AI agents.
173
174
175
+
### Query Formatting
176
+
177
+
**You ask:**_"Format this Gremlin query \`g.V().out('both').project('name','age').by('name').by('age')\`."_
178
+
179
+
**AI response:** The AI calls the `format_gremlin_query` tool and returns a formatted Gremlin string (or a structured error if parsing fails). Optional formatting options include `indentation`, `maxLineLength`, and `shouldPlaceDotsAfterLineBreaks`.
0 commit comments