gograph_query
Search the Go graph index for symbols, packages, files, and imports matching keyword substrings. Use it during initial exploration when you know a term but not its package.
Instructions
Search the graph index for symbols, packages, files, and import edges that match one or more keyword substrings. Multiple terms use OR semantics, matching CLI query term.... The MCP server refreshes source analysis before the call. Read-only; no persistent side effects. WHEN TO USE: During initial exploration when you have a keyword or feature name but do not know its package. NOT TO USE: When you already know the exact symbol (use gograph_source or gograph_node); for package dependency trees (use gograph_deps). RETURNS: Matching symbols, files, and imports; empty when no terms match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean. | |
| term | No | One keyword search term (e.g. 'AuthService' or a route path such as '/api/v1/users/{id}') | |
| limit | No | Maximum rows per page; the byte budget may return fewer. | |
| query | No | Alias of term | |
| terms | No | Optional list of keyword terms combined with OR semantics | |
| cursor | No | Opaque next_cursor for the same graph snapshot and result selection. | |
| no_tests | No | Exclude rows located in *_test.go files, matching CLI --no-tests | |
| intention | No | Technical rationale, required for analytical calls selecting an active session. | |
| session_id | No | Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session. |