Skip to main content
Glama

set_config

Configure runtime settings for agent-tool, including file encoding, security policies, network options, and workspace directories. Call without arguments to view current configuration.

Instructions

Changes agent-tool runtime configuration. Supports: fallback_encoding, encoding_warnings, max_file_size_mb, allow_symlinks, workspace. SSRF policy: allow_http_private, allow_mysql_private, allow_redis_private, allow_ssh_private. Network: enable_doh (DNS over HTTPS), enable_ech (Encrypted Client Hello). Call with no arguments to view current configuration. Example: set fallback_encoding to "EUC-KR" for Korean legacy projects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fallback_encodingNoSet the fallback encoding for files when auto-detection fails. Examples: EUC-KR, Shift_JIS, ISO-8859-1. Empty = no change
encoding_warningsNoEnable/disable encoding detection warning messages in tool results. Default: true
max_file_size_mbNoMaximum file size in MB that read/edit/grep tools will accept. Min: 1, Default: 50
allow_symlinksNoAllow creating symlinks when extracting archives. Default: false (skipped for security)
workspaceNoSet the default workspace/project root directory. Used by glob when no explicit path is given. Must be an absolute path to an existing directory
allow_http_privateNoAllow webfetch/download/httpreq to access private IPs (127.x, 192.168.x, 10.x). Default: false (blocked). Cloud metadata IPs always blocked
allow_mysql_privateNoAllow mysql tool to access private IPs. Default: true. Cloud metadata IPs always blocked
allow_redis_privateNoAllow redis tool to access private IPs. Default: true. Cloud metadata IPs always blocked
allow_ssh_privateNoAllow ssh/sftp tools to access private IPs. Default: true. Cloud metadata IPs always blocked
enable_dohNoEnable DNS over HTTPS globally for webfetch/download/httpreq/dnslookup. Default: true. Per-request no_doh/use_doh can still override
enable_echNoEnable Encrypted Client Hello globally for webfetch/download/httpreq. Default: true. Per-request no_ech can still override

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/knewstimek/agent-tool'

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