MCP Commands - Functional Memory

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Functional Memory - Tool execution and security management (SLL-ONLY) >

MCP Commands - Functional Memory

MCP.GetList

TopNext


MiniRobot Language (MRL) - Functional Memory (SPR only - not in public MCP-Server)

 

⚡ SPR only - not in public MCP-Server FEATURE

This command is only available when using the MCP server as an SLL (Server-Side Library). It cannot be called via HTTP/MCP protocol.

 

MCP.GetList

Get list of tools by security state

 

Syntax

 

MCP.GetList|$$LIST_NAME|$$RETURN_VAR

 

Parameters

 

$$LIST_NAME

The name of the security list to retrieve. Must be one of:

ENABLED - Tools that are explicitly enabled (whitelist)

CONFIRM - Tools requiring user confirmation before execution

DISABLED - Tools that are disabled/blocked

 

$$RETURN_VAR

The variable to receive the comma-separated list of tool function keys (e.g., "FileTools::Delete,SystemTools::Exec").

 

Return Value

 

Returns a comma-separated string of function keys in the specified list. Returns an empty string if the list is empty or the list name is invalid.

 

Description

 

MCP.GetList retrieves the list of tools that are currently in a specific security state within the Functional Memory system. This is useful for auditing which tools are enabled, require confirmation, or are disabled.

 

The function keys are returned in the format Category::Function (e.g., "FileTools::ReadFile", "SystemTools::Execute").

 

Examples

 

Example 1: Get list of disabled tools

MCP.GetList|DISABLED|$$DisabledTools

DSP.$$DisabledTools

 

Example 2: Get tools requiring confirmation

MCP.GetList|CONFIRM|$$ConfirmTools

IVV.LEN($$ConfirmTools)!0

DSP.Some tools require confirmation:§§$$ConfirmTools

EIF.

 

SLL Implementation

 

SLL Function: MCP_FM_GetList

Source File: MCP_Tools.inc

 

Remarks

 

• This command is SPR only - not in public MCP-Server and cannot be called via the MCP HTTP protocol

• The list names are case-insensitive (ENABLED, enabled, Enabled are all valid)

• An empty result indicates no tools are in that security state

• Used for security auditing and tool management in the Functional Memory system

 

See also:

 

MCP.GetSecurityState - Check tool security state

MCP.SetFunctionState - Change tool security state

MCP.SetConfirmList - Set confirmation list