interoperability_production_needsupdate
Check if an Interoperability Production requires updates to maintain functionality and compatibility within InterSystems IRIS systems.
Instructions
Check if an Interoperability Production needs update
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function decorated with @server.tool registers and implements the 'interoperability_production_needsupdate' tool. It checks if the current Interoperability Production requires an update by calling the IRIS class method Ens.Director.ProductionNeedsUpdate, raising an error if true or returning a success message.@server.tool(description="Check if an Interoperability Production needs update") async def interoperability_production_needsupdate( ctx: Context, ) -> str: logger.info("Checking if Interoperability Production needs update") iris = ctx.iris reason = IRISReference(iris) result = iris.classMethodBoolean( "Ens.Director", "ProductionNeedsUpdate", reason ) if result: raise ValueError(f"Production needs update: {reason.getValue()}") return "Production does not need update"
- src/mcp_server_iris/server.py:56-56 (registration)The call to the init function (imported as interoperability) from interoperability.py, which defines and registers the tool via @server.tool decorator.interoperability(server, logger)
- src/mcp_server_iris/server.py:8-8 (registration)Import of the init function that registers the interoperability tools, including 'interoperability_production_needsupdate'.from mcp_server_iris.interoperability import init as interoperability