googleapis/mcp-toolbox · error

tool does not exist: %s

Error message

tool does not exist: %s

What it means

Error "tool does not exist: %s" thrown in googleapis/mcp-toolbox.

Source

Thrown at internal/group/group.go:141

	return ok
}

// ContainsPrompt reports whether the group includes a prompt with the given name.
func (g Group) ContainsPrompt(name string) bool {
	_, ok := g.promptNameSet[name]
	return ok
}

// ToolsetManifest builds a tools.ToolsetManifest for the group's tools, resolving
// each declared tool name against toolsMap and generating its manifest from srcs.
// The group holds tool names rather than tool pointers, so callers pass the
// resolved tools and sources maps.
func (g Group) ToolsetManifest(serverVersion string, mgr GroupManager) (tools.ToolsetManifest, error) {
	toolsManifest := make(map[string]tools.Manifest, len(g.ToolNames))
	for _, name := range g.ToolNames {
		tool, ok := mgr.GetTool(name)
		if !ok {
			return tools.ToolsetManifest{}, fmt.Errorf("tool does not exist: %s", name)
		}
		srcName := tool.GetSourceName()
		var src sources.Source
		if srcName != "" {
			src, ok = mgr.GetSource(srcName)
			if !ok {
				return tools.ToolsetManifest{}, fmt.Errorf("unable to retrieve %s source for tool %q", srcName, name)
			}
		}
		m, err := tool.Manifest(src)
		if err != nil {
			return tools.ToolsetManifest{}, fmt.Errorf("error generating manifest for tool %q: %w", name, err)
		}
		toolsManifest[name] = m
	}
	return tools.ToolsetManifest{ServerVersion: serverVersion, ToolsManifest: toolsManifest}, nil
}

View on GitHub (pinned to 8cc6e09de2)

When it happens

Trigger: Thrown at internal/group/group.go:141 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/8d4f4d00a70a4ced. Report an issue: GitHub.