codanna mcp find_symbol getRecentFiles --json
{
"status": "success",
"code": "OK",
"message": "Operation completed successfully",
"system_message": "Symbol found with full context. Explore 'get_calls' to see what it calls, 'find_callers' to see usage, or 'analyze_impact' to understand change implications.",
"data": [
{
"symbol": {
"id": 76,
"name": "getRecentFiles",
"kind": "Function",
"file_id": 2,
"range": {
"start_line": 17,
"start_column": 0,
"end_line": 63,
"end_column": 1
},
"file_path": "./database.go",
"signature": "func getRecentFiles(conn *pgxpool.Pool) ([]NotoriaKrsFile, error)",
"doc_comment": "getRecentFiles queries notoria_krs_files for recent records using the supplied pgx pool.\nIt expects a non-nil connection pool, filters rows to the last 10 days, and returns the\nbasic metadata needed for downstream renaming logic. The returned slice contains the\nhydrated NotoriaKrsFile records or nil when no rows match. If the query fails or the\nconnection is nil, an error describing the failure is returned.",
"module_path": ".",
"visibility": "Private",
"scope_context": "Module",
"language_id": "go"
},
"file_path": "./database.go:18-64",
"relationships": {
"implements": null,
"implemented_by": null,
"defines": null,
"calls": null,
"called_by": null
}
}
],
"exit_code": 0
}
codanna mcp find_callers getRecentFiles --json
{
"status": "success",
"code": "OK",
"message": "Operation completed successfully",
"system_message": "No callers found. This might be an entry point, unused code, or called dynamically.",
"data": [],
"exit_code": 0
}
codanna mcp find_callers symbol_id:76 --json
{
"status": "error",
"code": "NOT_FOUND",
"message": "Function 'unknown' not found",
"error": {
"suggestions": [
"Check the spelling",
"Ensure the index is up to date"
]
},
"exit_code": 3
}
symbol_id:76find_callersget_callsanalyze_impact