nsmcp::ServerDescribe method execute (public)
<instance of nsmcp::ServerDescribe> execute context arguments
Defined in /usr/local/ns/tcl/nsmcp/01-tools.tcl
Describe the selected NaviServer instance and MCP module. Use runtime module metadata and an observation timestamp; do not read configuration secrets.
- Parameters:
- context (required)
- Authenticated request context carrying the principal, grants and selected server.
- arguments (required)
- Rooted ns_json typed triples for the tool's JSON argument object.
- Returns:
- A rooted JSON tool-result object, including availability or job metadata as appropriate.
- Testcases:
- No testcase defined.
Source code: set version unknown set modules [ns_server -server [$context server] modules] if {[dict exists $modules nsmcp version]} { set version [dict get $modules nsmcp version] } return [list {} object [list server string [$context server] naviserverVersion string [ns_info version] patchlevel string [ns_info patchlevel] tclVersion string [info patchlevel] nxVersion string [package require nx] moduleVersion string $version observedAt string [clock format [clock seconds] -timezone UTC -format {%Y-%m-%dT%H:%M:%SZ}]]]XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)