The DataGrout
Field Manual.
A practical, opinionated index of every tool exposed over the DataGrout MCP server — written for agents that prefer brevity to ceremony, and for the humans who supervise them.
Concepts & primitives / prerequisites
Tool invocation pattern across the catalog: mcp__datagrout__discovery_perform with tool_name: "data-grout@1/<suite>.<tool>@1". The vocabulary below recurs throughout.
Cache refs rc_*
Tool results stored server-side. Pass the cache_ref into the next tool's payload rather than re-sending data. Cornerstone of zero-cost chaining.
Credits
Per-call billing currency. data.* and frame.* are 0 credits (pure manipulation). LLM-backed tools - prism, invariant, warden - cost more.
CTC
Cognitive Trust Certificate. Ed25519-signed execution proof. Chains across nested calls. Produces a verifiable workflow audit trail.
Logic cell
Per-user Prolog fact store. Persistent across sessions, namespace-isolated. The reasoning substrate beneath logic.* and governor.*.
Skill
A saved, reusable workflow. Forge from a goal, invoke by id, temper to refine. Survives sessions; can be made workspace- or world-public.
Conduit SDK
Client libraries (Python, TypeScript, Rust, Elixir, Ruby). Auth: bearer, OAuth 2.1, mTLS. Transports: MCP, JSONRPC, WebSocket.
discovery / 05 tools
The bootstrap suite. Every other call begins, in spirit, with discover → perform. Use plan for multi-step traversal; summary for catalog reconnaissance.
analyze, refract, and chart post-processing in a single call.invariant / 04 tools
Extracts structural and semantic facts from source code, then reasons about them. Pair with the invariant CLI for repo-scale onboarding.
context: { model_facts, set_construction } — otherwise the tool will hallucinate plausible-but-wrong invariants. CLI counterpart: the invariant binary (init, lens, query, diff, review, status, onboard).warden / 04 tools
A three-tier defence escalating from protocol adherence to structured threat classification, with an ensemble mode that runs all three and adjudicates between them.
data / 15 tools · zero-cost
Pure transformations over JSON-shaped values. All accept a payload (literal or cache_ref) and return a fresh cache_ref — the substrate for zero-token chaining.
data.aggregate.frame / 08 tools · zero-cost
Treat data as a list-of-records (rows). Everything in data applies; frame adds the operations a SQL programmer expects.
math / 12 tools
Deterministic numerics. The agent stops guessing at statistics and starts computing them.
seed? for reproducibility.prism / 09 tools
Where the catalog meets language. Refract reshapes by goal; analyze reasons over a payload; render emits prose. Orient and Horizon navigate the latent neighbourhood of any concept.
goal. Returns cache_ref.orientation_id. Feed that id into Horizon (with expand_beyond) to reach territory the seed alone wouldn't surface.logic / 12 tools
A per-user Prolog cell with sub-millisecond lookup. Assert facts, write rules, query in natural language or in raw Prolog. Persists across sessions, scoped by namespace.
remember).question (3 credits), structured patterns, or raw prolog (1 credit).logic.query(prolog: "metric(E, \"arr\", V), V > 1000000"). Full graph-traversal predicates; 1 credit; zero LLM latency.batteries / 05 tools
Canned rule packs — reasoning, games, business — that compose by unification in a shared namespace.
flow / 04 tools
Multi-step plans that the platform verifies for cycles, type compatibility, and policy compliance before execution. Each plan emits a CTC.
scheduler / 03 tools
Cron-style and event-driven triggers, expressed in plain language: "every weekday at 8am UTC", "whenever 10 new leads arrive in Salesforce".
governor / 03 tools
Continuous-cognition mode. Every tool call you make auto-enriches the Prolog fact space — no explicit insertion required. Backed by the paper "Governor: Neuro-Symbolic Runtime for Token-Efficient Agent Cognition".
toolsmith / 04 tools
Mint new tools at runtime. Forge them from a goal, refine via temper, store them in the catalog, invoke them by id.
latent / 03 tools
Brainstorm by traversing a semantic neighbourhood. Bridge two concepts directly; expand depth-first or breadth-first.
prism.horizon.)prism.orient.)docs / 04 tools
Working text that survives the session. Markdown, plain text, checklist, or structured JSON.
ref (doc_*).deliverables / 03 tools
Finalised output artefacts — charts, exports, reports — registered for permanent retrieval. Compare with docs.*: deliverables are done, docs are in progress.
tasks / 05 tools
Inspect, wait on, or cancel background tasks the platform runs on your behalf.
task_ref.wait_ms for completion.inspect / 03 tools
CTCs are Ed25519-signed Cognitive Trust Certificates — verifiable proof that a workflow ran as declared.
execution_id.ephemerals / 02 tools
The working-memory view of DataGrout. Every cache_ref can be peeked at without re-running the tool that produced it.
flux / 03 tools
Tell the platform what worked. Tell it what didn't. Track your own analytics events.
library / 02 tools
The catalog's own self-documentation. Search by query; retrieve by ref.
lumen / 03 tools
Records "laps" — benchmark runs annotated with token counts and provider cost in USD. Compare configurations head-to-head.
Bundled integrations / external
github · 41 tools
list_pull_requests, list_releases, get_team_members, merge_pull_request, update_pull_request, delete_file, sub_issue_write, create_repository, and more.
github---datagrout-org · 41 tools
Org-scoped GitHub surface. Currently flagged stale; auth uses an access_token.
discovery.summary focus="disabled" to enumerate them.Adjacent projects / not MCP tools
conduit-sdk
Client libraries in Python, TypeScript, Rust, Elixir, Ruby. Auth: bearer, OAuth 2.1, mTLS. Transports: MCP, JSONRPC, WebSocket.
invariant (CLI)
Local binary: onboard, init, lens, query, diff, review, status. Analyses Ruby, Python, TypeScript and uploads facts to DataGrout.
logic-batteries
GitHub repository for community Prolog rule modules. Installed via batteries.install_many.
tether (Roblox)
A DataGrout client for Roblox. Methods: query, assert, generate_rules, invoke, orchestrate, call, watch. Compute credits free; inference credits limited.
arbiter (internal)
Referenced in the Governor paper as "Arbiter Substrate" — an OS-level governance layer. No public repository at the canonical URL (returns 404). Treat as DataGrout-internal infrastructure.
Patterns & recipes / practitioner notes
The standard recipe
# discover what's available, then run it discovery.discover(goal) → discovery.perform(tool_name, args)
Chained data operations — zero credit
fetch → cache_ref → data.filter → data.sort → data.take → final
Reasoning over external data
fetch → prism.analyze(goal, mode: deductive) → prism.render(content_type: report)
Mint a reusable skill
toolsmith.forge(goal, save_as_skill: true) → toolsmith.invoke(skill_id)
Inline post-processing on a single call
{
tool_name,
args,
analyze: { goal, mode },
refract: "reshape result for downstream",
chart: "bar chart of revenue by quarter"
}
Verifiable audit chain
flow.into → produces CTC → inspect.ctc-executions(ctc_id)