Skip to main content
Glama
snussik
by snussik

list_batch_jobs

Retrieve and filter batch OCR processing jobs from the Mistral AI document extraction server to monitor and manage document conversion operations.

Instructions

List batch jobs with optional filtering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argumentsYes

Implementation Reference

  • The `list_batch_jobs` tool handler, which uses the batch processor to fetch jobs and returns them as a JSON-formatted list.
    @app.tool("list_batch_jobs")
    async def list_batch_jobs(arguments: Dict[str, Any]) -> List[TextContent]:
        """List batch jobs with optional filtering."""
        try:
            batch_proc = await get_batch_processor()
            jobs = await batch_proc.list_jobs(
                status=arguments.get("status"),
            )
    
            return [
                TextContent(
                    type="text",
                    text=json.dumps({"jobs": jobs}, indent=2, ensure_ascii=False),
                )

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/snussik/mcp_mistral_ocr_opt'

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