Skip to main content
Glama

set_preferences

Configure session preferences for the Nexus-MCP server to control execution mode, model selection, retry behavior, and output limits for subsequent AI agent calls.

Instructions

Set session-scoped preferences that apply to subsequent prompt/batch_prompt calls.

Preferences persist for the duration of the MCP session. Call again to update, or use clear_preferences to reset all fields at once.

To clear a single field while keeping others, pass the corresponding clear_* flag: set_preferences(clear_model=True) # clears model, keeps execution_mode

Args: execution_mode: Default execution mode for this session ('default' or 'yolo'). None retains the current session value (use clear_execution_mode=True to reset). model: Default model name for this session (e.g. 'gemini-2.5-flash'). None retains the current session value (use clear_model=True to reset). max_retries: Default max retry attempts for transient errors. None retains the current session value (use clear_max_retries=True to reset). output_limit: Default max output bytes per response. None retains the current session value (use clear_output_limit=True to reset). timeout: Default subprocess timeout in seconds. None retains the current session value (use clear_timeout=True to reset). retry_base_delay: Default base delay seconds for exponential backoff. None retains the current session value (use clear_retry_base_delay=True to reset). retry_max_delay: Default max delay cap seconds for exponential backoff. None retains the current session value (use clear_retry_max_delay=True to reset). clear_execution_mode: If True, resets execution_mode to None regardless of the execution_mode argument. clear_model: If True, resets model to None regardless of the model argument. clear_max_retries: If True, resets max_retries to None regardless of the argument. clear_output_limit: If True, resets output_limit to None regardless of the argument. clear_timeout: If True, resets timeout to None regardless of the argument. clear_retry_base_delay: If True, resets retry_base_delay to None. clear_retry_max_delay: If True, resets retry_max_delay to None. ctx: MCP context (auto-injected by FastMCP).

Returns: Confirmation string with the active preferences as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
execution_modeNo
modelNo
max_retriesNo
output_limitNo
timeoutNo
retry_base_delayNo
retry_max_delayNo
clear_execution_modeNo
clear_modelNo
clear_max_retriesNo
clear_output_limitNo
clear_timeoutNo
clear_retry_base_delayNo
clear_retry_max_delayNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/j7an/nexus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server