Skip to main content
Glama
NyxToolsDev

DICOM/HL7/FHIR Interoperability MCP Server

pacs_echo

Verify PACS connectivity by sending C-ECHO or HTTP ping requests to confirm server reachability and connection acceptance.

Instructions

[Premium] Verify PACS connectivity. Sends a C-ECHO (DIMSE) or HTTP ping (DICOMweb) to confirm the PACS server is reachable and accepting connections. Returns success/failure, response time, and connection details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the `pacs_echo` function which tests PACS connectivity. It handles both DIMSE and DICOMweb protocols.
    def pacs_echo() -> EchoResult:
        """Test PACS connectivity using the configured protocol.
    
        Returns:
            EchoResult with connection status.
        """
        protocol = get_pacs_protocol()
    
        dep_check = require_pacs_deps(protocol)
        if dep_check:
            return EchoResult(success=False, protocol=protocol, message=dep_check)
    
        if protocol == "dimse":
            client = _get_dimse_client()
            if not client:
                return EchoResult(
                    success=False, protocol="dimse",
                    message="DIMSE client not available. Check PACS configuration.",
                )
            return client.echo()
    
        elif protocol == "dicomweb":
            client = _get_dicomweb_client()
            if not client:
                return EchoResult(
                    success=False, protocol="dicomweb",
                    message="DICOMweb client not available. Check PACS configuration.",
                )
            return client.echo()
    
        return EchoResult(
            success=False, protocol="none",
            message="No PACS connection configured. Set DICOM_HL7_PACS_HOST/PORT or DICOM_HL7_DICOMWEB_URL.",
        )

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/NyxToolsDev/dicom-hl7-mcp-server'

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