Utils API Documentation
function
from mcp_use.server.utils.utils import estimate_tokens
textstrrequired String value
returnsint
def estimate_tokens(text: str):
from mcp_use.server.utils.utils import get_local_network_ip
returnsstr | None
def get_local_network_ip():
from mcp_use.server.utils.utils import get_return_type
func_or_callablerequired Parameter value
returnstype
def get_return_type(func_or_callable):
Was this page helpful?