nsmcp::ToolRegistry method enabled (public)

 <instance of nsmcp::ToolRegistry[i]> enabled name

Defined in /usr/local/ns/tcl/nsmcp/01-tools.tcl

Report whether a named tool is administratively enabled. Refresh provider registrations first; caller permissions are checked separately during listing and invocation.

Parameters:
name (required)
Registered MCP tool name.
Returns:
The effective enabled flag, or false for an unknown tool.

Testcases:
No testcase defined.
Source code:
:refreshProviders
# Administrative availability, independent of caller permissions.
if {![dict exists ${:tools} $name]} {
    error "unknown tool: $name"
}
return [:readEnabled $name]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: