Skip to main content
Glama

MCPGuard Remote MCP

sanitize_mcp_config

Replace hardcoded credentials across env, headers, URL query parameters, and args with safe ${ENV_VAR} placeholders without mutating already-safe placeholders.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "config": "<config>"
    },
    "name": "sanitize_mcp_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesParsed MCP config object OR raw JSON/JSONC string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the placeholder format and idempotence for already-safe placeholders, but it does not clarify whether the input config is mutated, whether a new object is returned, or what the output looks like.

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 definition is a single front-loaded sentence with no redundant wording. Every clause contributes to the purpose or scope of the transformation.

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 one-parameter mutation tool with no annotations and no output schema, the description covers the core transformation but leaves return behavior and input mutation semantics ambiguous. It is adequate but not complete enough to remove all uncertainty about invocation effects.

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%, and the single config parameter is already documented as accepting a parsed object or raw JSON/JSONC string. The description adds scope about what gets sanitized but does not add further parameter semantics beyond the schema.

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

Purpose4/5

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

The description states a specific verb ("Replace") and resource ("hardcoded credentials") and enumerates the affected locations: env, headers, URL query parameters, and args. It is clear what the tool does, though it does not explicitly differentiate itself from the sibling audit tools.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as audit_mcp_config, nor any stated prerequisites or exclusions. The usage context is only implied by the sanitization behavior itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources