descriptron-mcp

v0.1.0
descriptron-mcp Checked 13 hours ago Published 2 months ago

The Descriptron programs as tools for Claude and any other MCP client

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_programs

List the Descriptron programs that can be run. filter: substring to match in the name or summary (case-insensitive). package: "core" (CPU analysis), "vision" (GPU: detectors, SAM2-PAL, DINOLand, Florence-2 measurements) or "extra" (directories from DESCRIPTRON_MCP_TOOL_DIRS). include_libraries: also list helper modules that are imported, not run.

ParameterTypeDescription
filterstring
include_librariesboolean
packagestring

program_help

Show a program's command-line options (its --help) and the top of its documentation. Always read this before run_program or start_job: every option is passed as a command-line argument, exactly as in a shell.

ParameterTypeDescription
name *string

run_program

Run a Descriptron program to completion and return the end of its output. name: program name from list_programs (a unique prefix is enough). args: command-line arguments as a list, e.g. ["--matrix_dir", "/data/m", "--output_dir", "/data/key"]. No shell is involved, so do not quote or escape. workdir: directory the program runs in (default: DESCRIPTRON_MCP_WORKDIR or the server's cwd). timeout_s: stop after this many seconds. Anything that may take longer than a few minutes should be started with start_job instead. Returns the exit code, the last lines of st…

ParameterTypeDescription
name *string
args
tail_linesinteger
timeout_sinteger
workdir

start_job

Start a long program in the background and return a job id at once. Use for run_full_pipeline_v2, sam2_pal_batch_v21, dinov3_landmark_transfer_v52, detector training and anything else that runs for more than a few minutes. The job keeps running if the client disconnects. Poll with job_status.

ParameterTypeDescription
name *string
args
workdir

job_status

State of a background job (running / finished / failed / cancelled / lost), the end of its log, and, once it has ended, the files it wrote.

ParameterTypeDescription
job_id *string
tail_linesinteger

job_log

The last lines of a background job's combined output.

ParameterTypeDescription
job_id *string
tail_linesinteger

cancel_job

Stop a running background job (and every process it started).

ParameterTypeDescription
job_id *string

list_jobs

Background jobs started by this server, newest first.

ParameterTypeDescription
limitinteger

list_files

List files in a directory, optionally recursively, filtered by a glob pattern like '*.csv'.

ParameterTypeDescription
directory *string
max_itemsinteger
patternstring
recursiveboolean

read_text

Read a text file (reports, logs, data sheets, JSON, YAML taxon profiles), in chunks.

ParameterTypeDescription
path *string
max_charsinteger
start_charinteger

read_table

Preview a CSV/TSV results table. columns: keep only these columns. where: keep rows whose column equals a value exactly, e.g. {"species": "acok"}. Reports the total and matching row counts.

ParameterTypeDescription
path *string
columns
max_rowsinteger
where

coco_summary

Summarise a COCO annotation file: images, categories, annotations per category, polygon/RLE/keypoint counts, unannotated images and images with zero width/height (which silently rescale every coordinate downstream).

ParameterTypeDescription
path *string

view_image

Look at an image: a specimen photograph, micro-CT slice, mask, plate or figure. Any format Pillow reads (TIFF incl. 16-bit, PNG, JPEG). Downscaled so the longest side is at most max_side pixels; the original size is reported so coordinates can be scaled back.

ParameterTypeDescription
path *string
max_sideinteger

species_evidence

The measured evidence for one species: per feature n, min, max, mean and unit, with the range across all species beside it. matrix_dir: the Tier-1 matrix directory (output of biorag_key_feature_filter_v2, containing species_feature_summary.csv). species: the species code used in the matrix. tier: "key" or "description" to restrict; structure: one category, e.g. "paramere". Write treatments from these numbers only.

ParameterTypeDescription
matrix_dir *string
species *string
max_rowsinteger
structurestring
tierstring

audit_treatment

Independently audit a species treatment against the data (biorag_confabulation_checker_v2). The checker recomputes every species' n/min/max/mean from the per-specimen matrix, attributes each number to ONE feature from the words around it, re-derives every comparison, and checks Remarks against their sources. A correct number printed next to the wrong structure is an error. species: species code. treatment: {"diagnosis": str, "description": [{"section": str, "text": str}, ...], "sexual_dimorphism": str, "remarks": str, "citations": [{"value": "0.240–0.242…

ParameterTypeDescription
matrix_dir *string
species *string
taxon_profile *string
treatment *object
data_sheetstring
key_treestring
localitiesstring