Skip to main content
Glama

Trade Surveillance Support MCP Server

by vic3custodio

generate_response_summary

Compile gathered trade surveillance data into a clear, actionable response summary for user inquiries.

Instructions

Generate a summary response for the user inquiry with all relevant information. This tool combines all the gathered information into a clear, actionable response that can be sent back to the user. Args: parsed_email: The parsed email inquiry data config_files: List of config files that were used report_path: Path to the generated report file Returns: A formatted summary string ready to send to the user

Input Schema

NameRequiredDescriptionDefault
parsed_emailYes
config_filesYes
report_pathYes

Input Schema (JSON Schema)

{ "properties": { "config_files": { "items": { "type": "string" }, "title": "Config Files", "type": "array" }, "parsed_email": { "additionalProperties": true, "title": "Parsed Email", "type": "object" }, "report_path": { "title": "Report Path", "type": "string" } }, "required": [ "parsed_email", "config_files", "report_path" ], "type": "object" }

Implementation Reference

  • The handler function for the 'generate_response_summary' tool. It formats a response summary using the provided parsed email data, list of config files, and report path. The @mcp.tool() decorator registers this function as an MCP tool. Input schema is defined by type hints and docstring (parsed_email: dict[str, Any], config_files: list[str], report_path: str) -> str.
    @mcp.tool() async def generate_response_summary( parsed_email: dict[str, Any], config_files: list[str], report_path: str ) -> str: """ Generate a summary response for the user inquiry with all relevant information. This tool combines all the gathered information into a clear, actionable response that can be sent back to the user. Args: parsed_email: The parsed email inquiry data config_files: List of config files that were used report_path: Path to the generated report file Returns: A formatted summary string ready to send to the user """ summary = f""" Trade Surveillance Support - Response Summary ============================================== Inquiry Type: {parsed_email.get('inquiry_type', 'Unknown')} Priority: {parsed_email.get('priority', 'Medium')} Actions Taken: - Analyzed inquiry email - Located {len(config_files)} relevant configuration files - Generated report: {report_path} Next Steps: {chr(10).join(f"- {action}" for action in parsed_email.get('suggested_actions', []))} Report Location: {report_path} Please review the generated report and let me know if you need any additional information. """ logger.info("Generated response summary") return summary.strip()

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/vic3custodio/mcp_test_2'

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