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

Method ListTools

mcp/client.go:983–985  ·  view source on GitHub ↗

ListTools lists tools that are currently available on the server.

(ctx context.Context, params *ListToolsParams)

Source from the content-addressed store, hash-verified

981
982// ListTools lists tools that are currently available on the server.
983func (cs *ClientSession) ListTools(ctx context.Context, params *ListToolsParams) (*ListToolsResult, error) {
984 return handleSend[*ListToolsResult](ctx, methodListTools, newClientRequest(cs, orZero[Params](params)))
985}
986
987// CallTool calls the tool with the given parameters.
988//

Calls 1

newClientRequestFunction · 0.85