API Reference

This page provides detailed API documentation for the Rossum MCP Server.

RossumMCPServer

Main Server Class

Methods

Document Upload

Annotation Retrieval

Queue and Schema

Server Management

The setup_handlers method registers two critical MCP protocol handlers:

  1. list_tools() - Returns the list of available MCP tools:

    • upload_document - Upload documents to Rossum queues

    • get_annotation - Retrieve annotation data by ID

    • list_annotations - List annotations for a queue with filtering

    • get_queue - Get queue details including schema_id

    • get_schema - Get schema details and content

    • get_queue_schema - Get complete queue schema in one call

  2. call_tool() - Executes the requested tool with provided arguments

Each tool definition includes:

  • Tool name and description

  • Input schema (JSON Schema format)

  • Required and optional parameters

  • Parameter types and descriptions

Functions