get_risk_assessment_scorecard
Retrieve a risk assessment scorecard in Markdown or JSON format to evaluate safety concerns and implications of AI forecasting or prediction use cases on the Chronulus MCP Server.
Instructions
A tool that retrieves the risk assessment scorecard for the Chronulus Session in Markdown format
When to use this tool:
Use this tool when the use asks about the risk level or safety concerns of a forecasting use case
You may also use this tool to provide justification to a user if you would like to warn them of the implications of what they are asking you to forecasting or predict.
How to use this tool:
Make sure you have a session_id for the forecasting or prediction use case
When displaying the scorecard markdown for the user, you should use an MDX-style React component
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_json | Yes | If true, returns the scorecard in JSON format, otherwise returns a markdown formatted scorecard | |
| session_id | Yes | The session_id for the forecasting or prediction use case |
Implementation Reference
- src/chronulus_mcp/session.py:45-65 (handler)The main handler function that loads the Chronulus session using the provided session_id, generates the risk scorecard markdown, and returns it either as JSON (if as_json=true) or markdown string.async def get_risk_assessment_scorecard( session_id: Annotated[str, Field(description="The session_id for the forecasting or prediction use case")], as_json: Annotated[bool, Field(description="If true, returns the scorecard in JSON format, otherwise returns a markdown formatted scorecard")] ) -> str: """Get the risk assessment scorecard for the Session Args: session_id (str): The session_id for the forecasting or prediction use case. as_json (bool): If true, returns the scorecard in JSON format, otherwise returns a markdown formatted scorecard Returns: str: a risk assessment scorecard in the specified format. """ chronulus_session = Session.load_from_saved_session(session_id=session_id, verbose=False) scorecard_md = chronulus_session.risk_scorecard(width='100%') if as_json: content = json.dumps(chronulus_session.scorecard.model_dump()) else: content = scorecard_md return content
- src/chronulus_mcp/__init__.py:269-269 (registration)Registers the get_risk_assessment_scorecard handler function as a tool in the FastMCP server instance with a detailed description.mcp.add_tool(get_risk_assessment_scorecard, description=GET_RISK_ASSESSMENT_SCORECARD_DESCRIPTION)
- src/chronulus_mcp/session.py:45-48 (schema)Pydantic schema definitions for the tool inputs using Annotated types with Field descriptions: session_id (str) and as_json (bool).async def get_risk_assessment_scorecard( session_id: Annotated[str, Field(description="The session_id for the forecasting or prediction use case")], as_json: Annotated[bool, Field(description="If true, returns the scorecard in JSON format, otherwise returns a markdown formatted scorecard")] ) -> str:
- Description string used for the tool registration, providing guidance on usage and parameters.GET_RISK_ASSESSMENT_SCORECARD_DESCRIPTION = """ A tool that retrieves the risk assessment scorecard for the Chronulus Session in Markdown format When to use this tool: - Use this tool when the use asks about the risk level or safety concerns of a forecasting use case - You may also use this tool to provide justification to a user if you would like to warn them of the implications of what they are asking you to forecasting or predict. How to use this tool: - Make sure you have a session_id for the forecasting or prediction use case - When displaying the scorecard markdown for the user, you should use an MDX-style React component """