Skip to main content
Glama
mistakeknot

interdeep

by mistakeknot

compile_report

Compile research findings and sources into structured markdown reports with citations for organized documentation.

Instructions

Compile research findings and sources into a structured markdown report with citations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesReport title.
queryNoThe original research query.
findingsYesList of findings, each with title, content, and optional confidence.
sourcesYesList of sources, each with url, title, and optional relevance.
metadataNoOptional metadata key-value pairs for the report frontmatter.

Implementation Reference

  • The handler function _handle_compile_report that executes the logic for compiling a report.
    async def _handle_compile_report(arguments: dict) -> list[TextContent]:
        title = arguments.get("title", "Untitled Report")
        query = arguments.get("query", "")
        findings = arguments.get("findings", [])
        sources = arguments.get("sources", [])
        metadata = arguments.get("metadata")
        try:
            report = compile_markdown_report(
                title=title,
                findings=findings,
                sources=sources,
                query=query,
                metadata=metadata,
            )
            return _ok({"report": report})
        except Exception as e:
            logger.exception("compile_report failed")
            return _err(f"Report compilation failed: {e}")
  • The definition of the compile_report tool, including its input schema and description.
    Tool(
        name="compile_report",
        description="Compile research findings and sources into a structured markdown report with citations.",
        inputSchema={
            "type": "object",
            "properties": {
                "title": {
                    "type": "string",
                    "description": "Report title.",
                },
                "query": {
                    "type": "string",
                    "description": "The original research query.",
                    "default": "",
                },
                "findings": {
  • The registration of the compile_report tool in the _HANDLERS dictionary.
    "compile_report": _handle_compile_report,

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/mistakeknot/interdeep'

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