# MCP Server Tools Configuration Fragment

[[elements]]
border_top = true
border_bottom = false
name = "tools_section_header"
title = "🔧 Tools Configuration"
type = "section_header"

[[elements]]
default = true
help = "Enable MCP tools capability"
name = "tools_enabled"
nickel_path = ["tools", "enabled"]
prompt = "Enable Tools"
type = "confirm"

[[elements]]
condition = "tools_enabled == true"
default = 5
help = "Maximum concurrent tool executions (range: ${constraint.mcp_server.tools.max_concurrent.min}-${constraint.mcp_server.tools.max_concurrent.max})"
max = "${constraint.mcp_server.tools.max_concurrent.max}"
min = "${constraint.mcp_server.tools.max_concurrent.min}"
name = "tools_max_concurrent"
nickel_path = ["tools", "max_concurrent"]
prompt = "Max Concurrent Tools"
type = "number"

[[elements]]
condition = "tools_enabled == true"
default = 30000
help = "Tool execution timeout in milliseconds (range: ${constraint.mcp_server.tools.timeout.min}-${constraint.mcp_server.tools.timeout.max})"
min = "${constraint.mcp_server.tools.timeout.min}"
max = "${constraint.mcp_server.tools.timeout.max}"
name = "tools_timeout"
nickel_path = ["tools", "timeout"]
prompt = "Tool Timeout (ms)"
type = "number"

[[elements]]
condition = "tools_enabled == true"
default = true
help = "Enable tool input validation"
name = "tools_validation_enabled"
nickel_path = ["tools", "validation", "enabled"]
prompt = "Enable Tool Validation"
type = "confirm"

[[elements]]
condition = "tools_enabled == true && tools_validation_enabled == true"
default = false
help = "Enable strict validation mode"
name = "tools_validation_strict"
nickel_path = ["tools", "validation", "strict_mode"]
prompt = "Strict Validation Mode"
type = "confirm"

[[elements]]
condition = "tools_enabled == true"
default = false
help = "Enable tool execution caching"
name = "tools_cache_enabled"
nickel_path = ["tools", "cache", "enabled"]
prompt = "Enable Tool Caching"
type = "confirm"

[[elements]]
condition = "tools_enabled == true && tools_cache_enabled == true"
default = 3600
help = "Tool cache TTL in seconds"
min = 60
name = "tools_cache_ttl"
nickel_path = ["tools", "cache", "ttl"]
prompt = "Cache TTL (seconds)"
type = "number"
