Mount Burr state-machine Applications as MCP servers. Theodosia is a Python adapter that hands your workflow to any AI agent over MCP. The agent can only take steps your workflow allows; every step it takes and every step it tried but couldn't gets recorded.
Theodosia exposes 23 tools across 5 FSM-based agents (data, incident, research, review, and a generic step tool). Tool definitions are present with descriptions and input schemas, but quality is uneven. Strengths: most tools have clear, action-oriented names (query, fetch_source, flag, remediate) and substantive descriptions (100-250 chars typical). Weaknesses: (1) input schemas lack explicit type declarations for most parameters, 'action' and 'parameters' in the step tool are typed as string/object but lack format/pattern constraints; (2) output schemas are entirely undocumented, no tool declares what fields it returns, forcing LLMs to infer structure; (3) error handling is implicit (gating logic mentioned in descriptions but no explicit error recovery guidance); (4) parameter descriptions are sometimes vague ('parameters to pass to the action' does not explain what keys/values are valid). The tools are well-composed (each does one thing) and follow a clear naming convention (verb_noun), but lack the rigor expected of production-grade agent tools.
Entry. Open the database and list its tables via the sqlite upstream.
Escalate the incident. REQUIRED before any remediation. The reason is appended to the memory timeline.
Record a claim, requiring it to cite a source you actually fetched. The source must be a fetched source id (s1, s2, ...) whose fetch succeeded (status OK). Citing an unfetched or failed source is rejected: you cannot cite a page the FSM never read.
Fetch a URL as markdown through the upstream fetch server and record it. The fetched content is returned to you in the step result (truncated) so you can read it and form claims, and the source is filed under an id like s1 that extract will require you to cite. If the URL is a bare filename (no scheme), it is read from the pre-seeded sources/ dir through the filesystem upstream instead (offline fallback).
Record an insight that must cite a query you actually ran.
Flag a security issue in a file you have read.
Output schemas completely undocumented. No tool declares return type, fields, or structure. LLMs cannot plan downstream calls or extract required data without guessing.
Input parameter descriptions lack format/constraint details. 'parameters' in step tool is typed as object but does not specify valid keys, value types, or constraints. 'sql' in query lacks validation rules (e.g., 'single SELECT only, no INSERT/UPDATE/DELETE').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Entry. Record the research question and open the investigation.
State a candidate root cause for the incident. Read at least one log first so the hypothesis is grounded.
Read one log file via the filesystem server. Its text is returned in the step result so you can judge it. Loop over the logs you need.
Ensure the sales table exists and is populated. Reads the source CSV through the filesystem upstream, creates the table via the sqlite upstream, and bulk-inserts every row with one write_query. Idempotent: if the table already holds rows, it is left untouched.
Open the review and survey the target tree via the filesystem server.
Profile the table: row count, schema, and per-dimension cardinality.
Run a read-only SELECT against the database and return the rows. The SQL is gated to a single SELECT before it reaches the upstream. Rejected SQL raises (surfaced to you as the step error) and never touches the database.
Read a file via the filesystem server. Its content is returned in the step result so you can judge it, and the read is recorded so you may later flag issues in it.
Record one timeline observation into the memory knowledge graph. This is the audit trail; at least one is required before you can report.
Propose a remediation. GATED: refused unless the incident has already been escalated AND you give a reason tying the fix to the diagnosis.
Terminal. Write the incident report. GATED: refused without at least one recorded observation in the timeline.
Terminal. Compile the data analysis report. Requires >= 2 findings.
Execute a step in the mounted Burr FSM. The step name corresponds to an action in the state machine, and parameters are passed to that action.
Terminal. Compile the review report. Requires >= 2 flags and a substantive markdown report.
Synthesize and return the cited report as a string (not persisted). Gated identically to write_report: requires >= 2 cited claims drawn from >= 2 distinct fetched sources, plus substantive markdown.
Open the incident. List the available log files via the filesystem server and seed the incident node in the memory graph. Start here.
Persist the cited report to disk through the upstream filesystem server. Gated identically to synthesize: requires >= 2 cited claims drawn from >= 2 distinct fetched sources, plus substantive markdown.
Error handling is implicit in descriptions (e.g., 'Rejected SQL raises') but no explicit error recovery guidance. LLMs do not know what to do when a tool fails, retry, ask user, or give up?
Gating logic (e.g., 'Requires >= 2 findings' for report, 'GATED: refused unless escalated' for remediate) is documented in descriptions but not formalized as tool-level constraints or error responses. LLMs may not understand when a tool will refuse.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present. LLMs cannot distinguish safe reads from destructive writes without reading descriptions.