Skip to main content
Glama
sfncat
by sfncat

check_connection

Verify the Joern MCP plugin's operational status to ensure code review and security analysis capabilities are available.

Instructions

Check if the Joern MCP plugin is running

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • server.py:83-93 (handler)
    The main handler function for the 'check_connection' tool. It is decorated with @joern_mcp.tool() which registers it with the FastMCP server. The function checks the connection to the Joern server by querying its version and returns an appropriate success or error message.
    @joern_mcp.tool()
    def check_connection() -> str:
        """Check if the Joern MCP plugin is running"""
        try:
            metadata = extract_value(joern_remote("version"))
            if not metadata:
                return f"Failed to connect to Joern MCP! Make sure the Joern MCP server is running."
            return f"Successfully connected to Joern MCP, joern server version is {metadata}"
        except Exception as e:
            return f"Failed to connect to Joern MCP! Make sure the Joern MCP server is running."
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 checks if the plugin is running, but doesn't describe what 'running' entails (e.g., network connectivity, process status), potential error conditions, or response format. This leaves gaps in understanding the tool's behavior beyond its basic purpose.

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 a single, clear sentence with zero waste—it directly states the tool's purpose without fluff or repetition. It's appropriately sized and front-loaded, making it highly efficient.

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 simplicity (0 parameters, no output schema, no annotations), the description is adequate as a basic status check. However, it lacks details on what 'running' means or what the output might be, which could be helpful for an AI agent to interpret results. It meets the minimum viable standard but has room for improvement in context.

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

Parameters4/5

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

The tool has 0 parameters, and the schema description coverage is 100%, so there's no need for parameter details in the description. The description appropriately avoids redundant information, earning a high score for not adding unnecessary content.

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 action ('Check if') and the target ('the Joern MCP plugin is running'), providing a specific verb and resource. However, it doesn't explicitly differentiate from sibling tools like 'ping' or 'get_help', which might serve similar diagnostic purposes, so it doesn't reach the highest score.

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 like 'ping' or 'get_help', nor does it mention any prerequisites or exclusions. It implies usage for checking plugin status but lacks explicit context for tool selection.

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/sfncat/mcp-joern'

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