Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
as_jsonYesIf true, returns the scorecard in JSON format, otherwise returns a markdown formatted scorecard
session_idYesThe session_id for the forecasting or prediction use case

Implementation Reference

  • 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
  • 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)
  • 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 """

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/ChronulusAI/chronulus-mcp'

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