MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / GetReadOnlyTools

Method GetReadOnlyTools

tools/registry.go:150–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150func (r *ToolRegistry) GetReadOnlyTools() []Tool {
151 var out []Tool
152 for _, tool := range r.ListTools() {
153 if tool.IsReadOnly(nil) {
154 out = append(out, tool)
155 }
156 }
157 return out
158}
159
160func (r *ToolRegistry) GetAPISchemasFiltered(enabledOnly bool, deny map[string]struct{}, readOnlyOnly bool) []map[string]any {
161 tools := r.ListTools()

Calls 2

ListToolsMethod · 0.95
IsReadOnlyMethod · 0.65