MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / RemoveTools

Method RemoveTools

mcp/server.go:513–515  ·  view source on GitHub ↗

RemoveTools removes the tools with the given names. It is not an error to remove a nonexistent tool.

(names ...string)

Source from the content-addressed store, hash-verified

511// RemoveTools removes the tools with the given names.
512// It is not an error to remove a nonexistent tool.
513func (s *Server) RemoveTools(names ...string) {
514 s.changeAndNotify(notificationToolListChanged, func() bool { return s.tools.remove(names...) })
515}
516
517// AddResource adds a [Resource] to the server, or replaces one with the same URI.
518// AddResource panics if the resource URI is invalid or not absolute (has an empty scheme).

Callers 2

TestEndToEndFunction · 0.95

Calls 2

changeAndNotifyMethod · 0.95
removeMethod · 0.80

Tested by 2

TestEndToEndFunction · 0.76