Skip to main content
Glama

add_mcp_server_config

Add or update configuration for an MCP server in your AI client application to enable its tools and capabilities.

Instructions

Enables capabilities (e.g., tools, features) from a specific MCP server/tool. Add or update its configuration in the client application (e.g., Cursor, Claude Desktop, Windsurf, Claude Code, Codex) using server_id obtained from search_mcp_servers results. Provide EITHER client_type (see available options) OR config_file_path to specify the target config file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_typeNoThe type of client application (currently supported: 'cursor', 'claude', 'windsurf', 'claude-code', 'codex'). Mutually exclusive with config_file_path.
config_file_pathNoAbsolute path or path starting with '~' to the config file. Mutually exclusive with client_type.
server_idYesA unique MCPFinder ID of the MCP server received from search_mcp_servers.
mcp_definitionNoThe MCP server definition object. Optional.
claude_pathNoFull path to claude executable (only used for claude-code client_type when claude command is not in PATH).
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal that this tool performs configuration changes ('add or update its configuration'), which implies mutation/write operations, but doesn't specify whether this requires special permissions, whether changes are reversible, or what happens on success/failure. It mentions 'defaults are fetched/merged' for the command parameter, which adds useful context about default behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with three sentences that each serve distinct purposes: stating the tool's function, specifying prerequisites, and clarifying parameter usage. There's no redundant information, and key guidance is front-loaded in the first sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a configuration mutation tool with 5 parameters (including nested objects) and no annotations or output schema, the description provides adequate but incomplete context. It covers the basic purpose and parameter relationships well, but lacks details about behavioral outcomes, error conditions, or what constitutes successful configuration. Given the complexity, more complete behavioral disclosure would be beneficial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds some value by explaining the mutual exclusivity between client_type and config_file_path and clarifying that server_id comes from search_mcp_servers, but doesn't provide additional semantic context beyond what's in the schema descriptions. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('enables', 'add or update') and resources ('capabilities from a specific MCP server/tool', 'configuration in the client application'). It distinguishes this from sibling tools like search_mcp_servers (which finds servers) and remove_mcp_server_config (which removes configurations).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool: it specifies that server_id should be 'obtained from search_mcp_servers results' and provides clear alternatives between client_type and config_file_path ('Provide EITHER client_type OR config_file_path'). This gives the agent concrete prerequisites and decision criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/mcpfinder/server'

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