googleapis/mcp-toolbox · error
failed to list indexes: %w
Error message
failed to list indexes: %w
What it means
Task-failure wrap inside the concurrent schema extraction: the 'indexes' task (CALL db.indexes()) failed while listing graph indexes, aborting the whole schema extraction.
Source
Thrown at internal/tools/falkordb/falkordbschema/falkordbschema.go:232
edgeResult, err := runReadQuery(ctx, source, "MATCH ()-[r]->() RETURN count(r) AS count")
if err != nil {
return fmt.Errorf("failed to count relationships: %w", err)
}
mu.Lock()
defer mu.Unlock()
schema.GraphInfo.NodeCount = helpers.FirstRowInt64(nodeResult)
schema.GraphInfo.EdgeCount = helpers.FirstRowInt64(edgeResult)
schema.Statistics.TotalNodes = schema.GraphInfo.NodeCount
schema.Statistics.TotalRelationships = schema.GraphInfo.EdgeCount
return nil
},
},
{
name: "indexes",
fn: func() error {
result, err := runReadQuery(ctx, source, "CALL db.indexes()")
if err != nil {
return fmt.Errorf("failed to list indexes: %w", err)
}
mu.Lock()
defer mu.Unlock()
schema.Indexes = helpers.Rows(result)
return nil
},
},
{
name: "constraints",
fn: func() error {
result, err := runReadQuery(ctx, source, "CALL db.constraints()")
if err != nil {
// Constraint listing varies across FalkorDB versions;
// report the failure in the schema rather than failing
// the whole extraction.
mu.Lock()
defer mu.Unlock()
schema.Errors = append(schema.Errors, fmt.Sprintf("failed to list constraints: %s", err))View on GitHub (pinned to 8cc6e09de2)
Solutions
- Inspect the wrapped error for the underlying FalkorDB failure
- Check the FalkorDB version supports db.indexes()
- Retry the schema extraction once the server is healthy
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at internal/tools/falkordb/falkordbschema/falkordbschema.go:232 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of googleapis/mcp-toolbox@8cc6e09de2 (2026-09-05).
Data as JSON: /api/errors/9d1c70c419f7ca0c.
Report an issue: GitHub.