Skip to main content
Glama
lensesio

Lenses MCP Server

by lensesio

validate_connector_configuration

Validate Kafka connector configurations to identify errors before deployment, ensuring proper integration with Lenses MCP Server environments.

Instructions

Validates a Kafka connector configuration.

Args: environment: The environment name. name: The name of the connector. cluster: The cluster name. configuration: The connector configuration to validate.

Returns: Validation results including configuration details and any errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
nameYes
clusterYes
configurationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'validate_connector_configuration' tool. It constructs a payload with name, cluster, and configuration, then makes a POST request to the /proxy/api/kafka-connect/validate endpoint to perform validation.
    async def validate_connector_configuration(
        environment: str,
        name: str,
        cluster: str,
        configuration: Dict[str, Any]
    ) -> Dict[str, Any]:
        """
        Validates a Kafka connector configuration.
        
        Args:
            environment: The environment name.
            name: The name of the connector.
            cluster: The cluster name.
            configuration: The connector configuration to validate.
        
        Returns:
            Validation results including configuration details and any errors.
        """
        payload = {
            "name": name,
            "cluster": cluster,
            "configuration": configuration
        }
        
        endpoint = f"/api/v1/environments/{environment}/proxy/api/kafka-connect/validate"
        return await api_client._make_request("POST", endpoint, payload)
  • Registers the kafka_connectors tools, including 'validate_connector_configuration', by calling the register_kafka_connectors function on the MCP instance.
    register_kafka_connectors(mcp)
Behavior2/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 states the tool validates configuration and returns results with errors, which implies a read-only, non-destructive operation. However, it lacks critical details: whether validation requires specific permissions, if it's idempotent, rate limits, network impact, or what happens on invalid input (e.g., partial validation). For a validation tool with zero annotation coverage, this is a significant gap.

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

Conciseness4/5

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

The description is well-structured with clear sections (Args, Returns) and uses minimal sentences. The first sentence states the purpose directly, and subsequent lines efficiently list parameters and returns. There's no redundant information, though it could be more front-loaded with usage context.

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?

Given the tool's moderate complexity (4 parameters, nested object, validation logic) and no annotations, the description is incomplete. It covers purpose, parameters, and returns, but lacks behavioral details (e.g., side effects, error handling) and usage guidelines. The presence of an output schema reduces the need to explain return values, but overall, it's adequate only for basic understanding with clear gaps for agent reliability.

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 0%, so the schema provides no parameter descriptions. The description lists all four parameters with brief labels ('environment', 'name', etc.), adding basic semantics beyond the schema's titles. However, it doesn't explain what each parameter means (e.g., 'environment' vs. 'cluster'), expected formats, or constraints, leaving the agent to infer from context. This partially compensates but falls short of fully clarifying parameter roles.

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 clearly states the tool's purpose: 'Validates a Kafka connector configuration.' It specifies the verb ('validates') and resource ('Kafka connector configuration'), making the intent unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'create_kafka_connector' or 'update_topic_config', which would require a 5.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., use before deployment), exclusions, or comparisons to siblings like 'create_kafka_connector' or 'set_action_on_kafka_connector'. The only implied usage is from the purpose statement, which is insufficient for clear agent decision-making.

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/lensesio/lenses-mcp'

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