Skip to main content
This page describes the pulse-mcp 0.1 contract. The hosted server and 0.2 releases use V2 tool names and config fields. Local clients can pin pulse-mcp==0.1.4 for the older contract.
The Pulse MCP server exposes nine tools, identical on the hosted endpoint and the local uvx pulse-mcp server except where called out below. This page covers how they behave, the full reference for each, and worked end-to-end examples. If you haven’t connected a client yet, start with Connecting a client.

How the tools behave

A few behaviors are shared across the tools. Understanding them up front explains most of what an agent will do.

Document inputs

Documents are referenced by URL: a public or pre-signed link the engine can fetch. The hosted server does not read files from your local disk, so a tool like extract takes a file_url, not a file upload. The local server closes that gap: there, extract also accepts a file_path. The server process reads the file from disk and uploads it out-of-band, so the document’s bytes never pass through the model or the chat context. Files up to 50 MB; supported types: pdf, png, jpg, jpeg, bmp, tiff, docx, pptx, xlsx, xlsm, csv, txt, html. On the hosted server, host the file somewhere reachable (e.g. an S3 pre-signed URL) and pass that URL. If you need direct file uploads in your own code, use the SDKs or REST API instead, which support multipart upload.

Chaining with extraction_id

You extract a document once. extract returns an extraction_id, and the downstream tools (apply_schema, split_document, extract_tables, extract_charts) take that id so they operate on the already-parsed document instead of re-fetching and re-parsing it.

Asynchronous jobs and get_job

Extraction, schema, split, table, and chart operations run asynchronously. These tools submit the job and inline-poll it for up to 15 seconds by default:
  • If it finishes in time, the tool returns the completed result directly.
  • If it’s still running, the tool returns a stub: { "status": "processing", "job_id": "...", "poll_with": "get_job" }.
When you get a stub, call get_job with that job_id to fetch the status and result. batch_extract is always asynchronous and returns a batch_job_id to poll the same way. The polling budget does not cancel the job or set an end-to-end deadline for submission and HTTP requests. run_pipeline is synchronous unless run_async=true; generate_schema is synchronous.

Large results

For completed asynchronous jobs, the gateway checks the serialized job response against MCP_RESULT_INLINE_MAX_BYTES (350000 bytes by default). Larger responses are fetched again with force_url=true to obtain a download link, returned as a stub: { "is_url": true, "url": "https://..." }. The threshold is the gateway’s configurable guard, not an MCP protocol limit. Open the link in a browser, or use an agent whose client provides tools that can retrieve the URL. Retrieval support depends on the client; pasting a link into chat does not guarantee the client can open it.
With first-fetch deletion, the first completed-result poll can expire an inline result before the MCP’s second fetch requests its download URL. That second fetch can return an expired result instead of the document output.This affects the shared polling used by extract, apply_schema, split_document, extract_tables, extract_charts, and get_job, including batch and asynchronous pipeline jobs retrieved through get_job. The table job-ID fix in 0.1.3 makes automatic table polling reach this existing path too. Results already returned as URLs avoid the second fetch; normal retention does not trigger this specific failure.This limitation remains in 0.1.3. For first-fetch deletion workflows, use the API and request POST /job/{job_id} with {"force_url": true} from the first result poll. The MCP tools do not expose this option.

Page ranges

Wherever a tool accepts pages, use 1-indexed numbers and ranges, comma-separated. For example, "1-2,5" for pages 1, 2, and 5.

Tool reference

extract

Parse a document into markdown, with optional HTML, figure processing, and chunking. Provide the document as a file_url, or on the local server, a file_path.
Provide exactly one of file_url or file_path.
Returns the completed extraction (including extraction_id, markdown, and any enabled extensions), or a { status, job_id } stub to poll with get_job if it’s still running. Document metadata is returned at extensions.document_metadata.
For structured JSON, run extract first, then call apply_schema on the returned extraction_id. Schema extraction directly on extract is deprecated.

apply_schema

Apply a JSON schema to a prior extraction (or split) to get structured output with citations. Provide exactly one target:
  • extraction_id: a single extraction, or
  • extraction_ids: combine several extractions, or
  • split_id: per-topic schemas (pass split_schema_config).
Returns { schema_id, schema_output: { values, citations } } for single/multi extraction, or { schema_id, results: { <topic>: { values, citations } } } for split mode, or a { status, job_id } stub to poll with get_job.

generate_schema

AI-generate or refine a JSON extraction schema. Useful when you want the agent to design a schema before calling apply_schema.
*Provide a prompt, a current_schema, or both.
Returns { schema: <JSON schema object> }, ready to pass to apply_schema.

split_document

Split a prior extraction into topic-based page ranges. Run extract first; there is no file input here.
*Provide either topics or a split_config_id.
Returns { split_id, split_output: { splits: { <topic>: [page numbers] } } }, or a { status, job_id } stub to poll with get_job. Feed the split_id into apply_schema for per-topic structured extraction.

extract_tables

Pull tables out of a completed extraction. Returns { tables_id, tables_output: { tables: [...] } }, or a { status, job_id } stub to poll with get_job. Use the pending job_id for polling. The final saved tables_id may differ from it.

extract_charts

Reconstruct charts from exactly one completed extraction or split. Returns the complete chart result with source bounding boxes, axes, series data, confidence, warnings, and export metadata, or a { status, job_id } stub to poll with get_job. Export URLs require authentication and are one-time links. The MCP tool returns them without downloading or consuming them.

batch_extract

Extract many documents in one asynchronous batch.
*Provide file_urls, input_s3_prefix, or both.
Returns { batch_job_id, status, total_files }. Poll progress with get_job using the batch_job_id.

run_pipeline

Run a saved multi-step Pulse pipeline on a document. Pipelines are authored in the Pulse Platform; obtain the pipeline_id there. Returns { execution_id, status, results } when synchronous (default), or { job_id, status } when run_async is true; poll with get_job.

get_job

Poll any previously submitted asynchronous job for its status and result. Returns the job’s status and, when complete, its result, or a { is_url, url } stub for large results.

Usage patterns

These show the sequence of tool calls an agent makes. In practice you express the goal in natural language and the agent chooses the tools, but seeing the chain makes the behavior predictable.

Parse a document

“Extract the text from the Bank Statement sample document”

Parse a local file (local server)

“Extract the text from ~/Contracts/msa.pdf”
The server reads the file and uploads it out-of-band; the document’s bytes never enter the chat context. On the hosted server, pass a file_url instead.

Extract structured data with a schema

“Pull the invoice number, vendor, and total from this invoice: <url>”
Let the agent design the schema first with generate_schema if you describe the fields in prose rather than handing it a schema.

Split a multi-section document, then extract per topic

“This filing has a balance sheet and an income statement. Pull the line items from each”

Extract tables

“Get every table from this report as JSON”

Process many documents

“Extract all the PDFs under this S3 prefix and write results back to my bucket”

Handle a long-running job

When a tool returns a processing stub, poll it:

Next steps

Connect a client

Configuration for Codex, Claude Desktop, Claude Code, and VS Code.

API Reference

The same operations as REST endpoints and SDK methods.