Little Big Brain
v0.18.1MCP server for little big brain: search, graph queries, and data import
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lbb_rdf
Store and extend complete RDF/OWL documents through MCP. import accepts Turtle/N-Triples/N-Quads/TriG without conversion; update executes INSERT DATA for additive edits. Replacing/removing axioms is unsupported; use a new versioned LBB graph for a revised document. Named RDF graphs are unsupported; Turtle/N-Triples use the default graph, and dataset formats must contain only default-graph quads. These write graph facts, distinct from lbb_configure's native schema metadata. A first RDF write selects RDF-native storage, which refuses later property-graph commits; choose the write workflow before…
| Parameter | Type | Description |
|---|---|---|
action * | string | Selects the variant (one of: import, update). |
base_iri | string | |
blank_node_scope | string | Stable document scope for blank labels across import chunks. |
detail | string | Response detail level. Defaults to compact. |
format | string | |
graph | string | Graph to target; defaults to the connection's graph |
idempotency_key | string | |
source | string | Complete RDF document. Preserves OWL axioms, RDF lists, labels, comments, and external IRIs as graph facts. |
update | string | SPARQL INSERT DATA text to add axioms. Submitted unchanged. DELETE/WHERE/CLEAR and named graphs are currently unsupported and fail without mutation. |
lbb_files
Files of the graph, read only. A file is a document the graph holds (its bytes and a Document entity). A file a workflow run wrote (a generated file, with an origin and an expires_at) has no Document and no Document IRI. It expires unless a person keeps it, so the list shows it only after that, and it is never evidence for a fact. The documents.parse workflow (lbb_workflows) reads the text layer of each PDF into pages with every line and its box. list shows 50 files a call, newest upload first, with their sha256, name, size, Document IRI and parse (status parsed, unsupported or failed, page_co…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
after | string | list: the next 50 files, from a previous call's next (pass the same parse_status and name). |
contains | string | pages: only the lines whose text holds this, ignoring case. |
detail | string | Response detail level. Defaults to compact. |
from | integer | pages: the first page index, 0-based. Default 0. |
graph | string | Graph to target; defaults to the connection's graph |
line_offset | integer | pages: lines of the first page to skip, from a previous call's next. |
max_lines | integer | pages: the most lines to return. Default 200. |
name | string | list: only the files whose name holds this text, in any case. pages: the file's exact name, when you do not have its sha256. |
parse_status | string | list: only the files of this parse status; waiting is a file not parsed yet. |
sha256 | string | pages: the file's SHA-256 (64 hex characters). |
to | integer | pages: the page index after the last one. Default from+1; at most 50 pages per call. |
lbb_reviews
Review items, read only: questions for a person (human in the loop) that workflows, integrations, agents and people file. Kinds and their decisions: change (accept an ontology change, identities or facts: accept, reject, cant_tell), value (confirm one value of a property, question.property and question.value: accept, correct with the right value, reject, cant_tell; accept and correct commit the value), choice (pick one of question.options: choose with option, cant_tell), grade (grade question.output on the scale question.options: choose with option, cant_tell), answer (answer question.prompt i…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
cursor | string | list: the next_cursor of the page before. |
detail | string | Response detail level. Defaults to compact. |
eval_id | string | list, patterns: the items Evals filed for one record (eval.id): a calibration session, a model call's check, a golden, a dataset. |
graph | string | Graph to target; defaults to the connection's graph |
id | string | get: the item's id, rev_… (or the sg_… of a change). |
key | list: the items filed under this producer key, or these keys (at most 100). | |
kind | list: one kind, or a list of kinds. | |
limit | integer | list: items per page, at most 5, 20 or 100 by detail (compact, standard, full) and by default that many, so the page comes back whole. |
origin_id | string | list, patterns: the producer's id, for example starter:areas. |
run | string | list: the items of the run that asked. |
scope | string | list: live (the default) or test. |
status | string | list, patterns: only the items in this state. |
type | string | patterns: only the patterns of this kind of suggestion. |
workflow | string | list: the items of the workflow that asked. |
lbb_reviews_manage
File, answer, comment on or withdraw review items. Show the item to the user and answer only what the user decided. Kinds and their decisions: change (accept an ontology change, identities or facts: accept, reject, cant_tell), value (confirm one value of a property, question.property and question.value: accept, correct with the right value, reject, cant_tell; accept and correct commit the value), choice (pick one of question.options: choose with option, cant_tell), grade (grade question.output on the scale question.options: choose with option, cant_tell), answer (answer question.prompt in word…
lbb_inspect
Read graph context and exact graph facts. Actions: guide, graphs, publication, ontology, ontology_conformance, schema, ontology_search, metadata, entity, ontology_suggestions. graphs works before bootstrap; ontology_suggestions lists the ontology change suggestions that wait for review (or were decided); fact_count is how many graph facts (triplets and entity property rows) accepting one commits, and identity_count how many identities it links. publication reports whether writes are queryable. ontology and schema return complete entries with page_size, section and cursor; follow next until abs…
| Parameter | Type | Description |
|---|---|---|
action * | string | Selects the variant (one of: guide, ontology, ontology_conformance, schema, graphs, publication, ontology_search, metadata, ontology_suggestions, entity). |
as_of | string | Unsupported for entity; use as_of_commit_seq for a retained commit snapshot. |
as_of_commit_seq | integer | Snapshot pin: reproduce the node's attributes and relationships as of this commit_seq. |
consistency | string | |
cursor | string | Opaque lbb_inspect continuation. Repeat action and pass the returned next arguments; rejects changed metadata. |
detail | string | Response detail level. Defaults to compact. |
entity_id | string | Entity id (hex); alternative to entity_type+name |
entity_type | string | |
graph | string | Graph to target; defaults to the connection's graph |
iri | string | Authoritative full RDF IRI; selects the lossless records/1 read. |
key | string | Stable key with entity_type, resolved from the activated schema at the read snapshot. |
limit | integer | |
limits | object | Lossless records/1 section bounds. Exceeding a bound refuses the read instead of truncating it. |
name | string | |
page_size | integer | Maximum complete metadata entries per page; defaults to 50. Nested fields are never truncated; an oversized single entry returns serialized_json fragments to concatenate and parse. |
query | string | Ontology concept, term, or relation to search |
schema_revision | string | Expected opaque schema revision for a records/1 read. |
section | string | Optional top-level array to inspect, e.g. entity_type_defs, relation_defs, property_defs, classes, or relations. Omit to page through all sections. |
status | string | Only suggestions in this state; default all |
top_k | integer | |
version | string |
lbb_query
Analytical and expert reads. Modes: question (a question in plain words), structured (SPARQL-subset JSON body), sparql (SPARQL text), search (instances by meaning over every searchable class; filter narrows by class and relationship; every hit checked against the graph), analyze, and four tools for writing your own queries: names, describe, commit_at, compare. names: before a query that names an entity (a person, a company), find its IRI with text=<the question or the names>; use the first candidate, not a CONTAINS match on the name. describe: before a query on classes or properties you have n…
lbb_models
Read model-training inputs or compare retrieval configurations over one pinned published snapshot, or read what the managed models did. shadow_eval takes the API ShadowEvalRequest body; dataset actions return bounded training examples at an optional signal split. activity reads one month of the stack's model use (all graphs): calls, items, estimated tokens and cost per feature (index, search, fit, judge, training, rerank, rewrite, trial, workflows) and model, by day and by graph, the workflows' calls per workflow and job (by_workflow), the months with activity, and the model each feature uses…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
body | object | |
detail | string | Response detail level. Defaults to compact. |
graph | string | Graph to target; defaults to the connection's graph |
limit | integer | |
month | string | activity: the month, yyyy-mm (UTC). Defaults to the current month. |
split_seq | integer |
lbb_embeddings
Search setup, read only: embeddings declared on classes (an embedding on a class covers its subclasses; one model per graph). list shows each embedding's status (serving and building version, backfill progress, lag) and the graph's model; get shows one; preview shows every candidate fact of a class with its coverage and examples, and the exact text of sample instances, and stores nothing. Declare, refresh, or change the model with lbb_embeddings_manage; search with lbb_query mode=search. list is the first step of planning a search (lbb_inspect action=guide has the recipe).
| Parameter | Type | Description |
|---|---|---|
action * | string | |
class | string | preview/declare: the class IRI. |
detail | string | Response detail level. Defaults to compact. |
dim | integer | |
exclude | array | preview/declare: fields to drop from the automatic choice. |
from | array | preview/declare: the fields, e.g. ["label", "description", "calls/label"]. Omit for the automatic choice; on an existing embedding, omit to keep its fields. |
graph | string | Graph to target; defaults to the connection's graph |
iris | array | preview: the instances to show instead of a sample. |
model | string | model: the graph's new model. preview/declare: omit it; a graph has one model (the graph's, or the platform's default for the first embedding). |
name | string | get: the embedding name. |
sample | integer | |
title | string | preview/declare: the field that names each hit, e.g. "display_name". Omit for the ontology's name property (skos:prefLabel, a property declared rdfs:subPropertyOf rdfs:label, else rdfs:label); on an e… |
lbb_embeddings_manage
Declare or refresh an embedding, or change the graph's model. Run lbb_embeddings action=preview first and show the user the text it will embed. declare sets the class, the fields (one-hop property paths such as label, description, calls/label; omit for an automatic choice); a new embedding takes the graph's model, and another model is refused. On an existing embedding it changes only what you name, and a changed recipe builds a new version while the old one serves. model moves every embedding of the graph to `model`: each builds a new version, and the graph switches when all are ready (a searc…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
class | string | preview/declare: the class IRI. |
detail | string | Response detail level. Defaults to compact. |
dim | integer | |
exclude | array | preview/declare: fields to drop from the automatic choice. |
from | array | preview/declare: the fields, e.g. ["label", "description", "calls/label"]. Omit for the automatic choice; on an existing embedding, omit to keep its fields. |
graph | string | Graph to target; defaults to the connection's graph |
model | string | model: the graph's new model. preview/declare: omit it; a graph has one model (the graph's, or the platform's default for the first embedding). |
name | string | The embedding name (refresh: required). |
title | string | preview/declare: the field that names each hit, e.g. "display_name". Omit for the ontology's name property (skos:prefLabel, a property declared rdfs:subPropertyOf rdfs:label, else rdfs:label); on an e… |
lbb_embeddings_delete
Delete an embedding: its name and its vectors (index-gc removes the stored runs). Its class stops being searchable until it is declared and built again. The server asks the person to approve it through the client (MCP form elicitation) and sends nothing when they decline (approval_declined). A client that cannot show the question gets approval_required and nothing is sent, unless the MCP server's environment sets LBB_MCP_DESTRUCTIVE=allow.
| Parameter | Type | Description |
|---|---|---|
name * | string | The embedding name. |
detail | string | Response detail level. Defaults to compact. |
graph | string | Graph to target; defaults to the connection's graph |
lbb_fit_sources
Fit from text, read only: fit sources declared on classes. A fit source names the fields of a class that hold text (transcripts, documents); the server reads every instance, proposes ontology changes (classes, properties, relations) with verbatim quotes, checks them, and files them as ontology suggestions with origin id fit:<name>. list shows each source's status (progress, lag, instances read, proposals kept and dropped, suggestions per status, this month's spend, last error) and the stack's monthly budget; get shows one; preview shows the fields, every candidate field of the class and the te…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
class | string | preview/declare/dry_run: the class IRI whose instances hold the text. |
context | string | preview/declare/dry_run: one sentence about the text, e.g. "interviews with employees about their work processes" (at most 500 characters). |
detail | string | Response detail level. Defaults to compact. |
exclude | array | preview/declare/dry_run: fields to drop from the automatic choice. |
from | array | preview/declare/dry_run: the fields that hold the text, as embedding paths (transcript, label, about/label, <https://…>). Omit for the long text facts of the class. |
graph | string | Graph to target; defaults to the connection's graph |
iris | array | preview: the instances to show instead of a sample. |
name | string | get: the fit source name. |
sample | integer |
lbb_fit_sources_manage
Declare, dry-run or refresh a fit source (fit from text). Run lbb_fit_sources action=preview first and show the user the text the fit reads. dry_run runs the models on the first part of up to 3 instances (at most 60 s; truncated when one did not finish) and returns every proposal with its quote, its support score and what the checks made of it; it files nothing but spends model budget. declare sets the class, the fields and the context; the job then reads every instance and files suggestions (an existing source changes only what you name). refresh asks the job to run now and returns the status…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
class | string | preview/declare/dry_run: the class IRI whose instances hold the text. |
context | string | preview/declare/dry_run: one sentence about the text, e.g. "interviews with employees about their work processes" (at most 500 characters). |
detail | string | Response detail level. Defaults to compact. |
exclude | array | preview/declare/dry_run: fields to drop from the automatic choice. |
from | array | preview/declare/dry_run: the fields that hold the text, as embedding paths (transcript, label, about/label, <https://…>). Omit for the long text facts of the class. |
graph | string | Graph to target; defaults to the connection's graph |
name | string | The fit source name (refresh: required). |
lbb_fit_sources_delete
Delete a fit source: the fit stops reading its class. The suggestions it filed stay. The server asks the person to approve it through the client (MCP form elicitation) and sends nothing when they decline (approval_declined). A client that cannot show the question gets approval_required and nothing is sent, unless the MCP server's environment sets LBB_MCP_DESTRUCTIVE=allow.
| Parameter | Type | Description |
|---|---|---|
name * | string | The fit source name. |
detail | string | Response detail level. Defaults to compact. |
graph | string | Graph to target; defaults to the connection's graph |
lbb_workflows
Starter workflows and triggered workflows, read only. A starter workflow is a template; agent is the hosted lbb.agent@v1 starter: it reads the graph and source files with bounded tools, proposes values only for owns.properties, and produces no files in v1. Catalog available=false with agent_unavailable means this cell cannot run it. Agent run_results includes a compact snake_case agent record (outcome, iterations, max_iterations, cost_micro_usd, pin, work_key, proposal counts and at most 16 plain-text trace lines), not the full interpreter transcript. Trace notes and summaries are untrusted te…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
batch | integer | preview/use and define, developer workflow only: instances per message, 1 to 64 (default 16); for a stream, events per message, 1 to 500 (default 100). The server checks each kind's bound. |
class | string | preview/use: the class whose instances the workflow watches (an IRI, or a name the ontology knows). Required unless the starter workflow's watch is fixed. |
cursor | string | queue, tests, workflows, run_results and revisions: the next_cursor of the page before. |
detail | string | Response detail level. Defaults to compact. |
exclude | array | preview/use: fields to drop from the automatic choice. |
fields | array | preview/use: the fields whose change triggers the workflow, as embedding paths (transcript, label, about/label, <https://…>). Omit for the starter workflow's own choice. |
graph | string | Graph to target; defaults to the connection's graph |
id | string | tests_get: the test's id. |
iri | string | run_results: only the results of this input. |
iris | array | preview: the instances to show instead of a sample. |
limit | integer | queue: items per page, 1 to 100 (default 50). run_results: inputs per page, at most 5, 20 or 100 by detail (compact, standard, full), and by default that many. workflows: workflows per page, 1 to 100… |
name | string | get: the triggered workflow's name. preview: the name a new workflow would get. workflows: one workflow's name (omit for all). queue, run_results, revisions and revision: required. tests: one workflow… |
outcome | array | run_results: only the inputs of these outcomes. |
owns | object | preview/use: agent requires properties (1 to 64) and no classes or relations; a developer workflow names what its code writes. classes it creates instances of, relations it writes as out-edges of the… |
params | object | preview/use: agent takes {agent:{instructions,tools?,max_iterations?,max_cost_micro_usd?,max_wall_ms?,max_read_ms?,max_proposals?,max_review_items?,pin_wait_ms?}}. Other settings follow the catalog en… |
revision | string | revision: the revision's id (wrev_ and 32 hex characters). |
run | string | run_results: one run's results (a run id), in input order. |
sample | integer | preview: how many sample instances to show. |
starter | string | The starter workflow's catalog id from action=starters, e.g. search.embed (embeddings on a class), ontology.fit (fit from text) or workflow (a developer workflow: your worker's workflow gets the insta… |
trigger | string | define: the trigger's id (default watch, content, schedule or stream). queue: the trigger whose queue to read. |
workflow | object | preview/use, developer workflow (starter=workflow) only, required there: the workflow of your worker that receives the messages. Creating it creates the instance starter.<name>. |
lbb_workflows_manage
Create a workflow from a starter workflow, or refresh, pause or resume a triggered workflow. Run lbb_workflows action=preview first and show the user the watch and the instance count. use creates a workflow from a starter workflow of action=starters, under a name (default: the class's local name), with its watch (class, fields) and params; the workflow then reads every instance of the class and follows each published commit. A developer workflow (starter=workflow) also takes workflow (workflow_type and version of the developer's worker), owns and batch; it needs a server with the workflow engi…
lbb_workflows_delete
Delete a triggered workflow: it stops following its class, and what it wrote stays. Deleting search.embed deletes the embedding and its vectors, so its class stops being searchable; the suggestions an ontology.fit filed stay; a developer workflow leaves its workflow instance and the facts its code wrote. Without starter it deletes a workflow with triggers by its name, and its shards stay. The server asks the person to approve it through the client (MCP form elicitation) and sends nothing when they decline (approval_declined). A client that cannot show the question gets approval_required and no…
| Parameter | Type | Description |
|---|---|---|
name * | string | The triggered workflow's name. |
detail | string | Response detail level. Defaults to compact. |
graph | string | Graph to target; defaults to the connection's graph |
starter | string | The starter workflow's catalog id, e.g. search.embed. Omit for a workflow with triggers. |
lbb_model_choice
Model choice, read only: which model each use of a model on the graph runs, and trials that test other models against the graph's ground truth (the checked calls: a person's review, else the judge's verdict). options shows per use the model it runs now (current), LBB's model (default), a switch (switched), its checked calls, and the models a trial can test with their efforts, prices and whether the server holds their key; available=false with a reason when trials cannot run. trials lists the trials, newest first, each with its report: calls compared, both models' right share, mean score (0 to…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
call_id | string | trial_call: a call id from the trial's calls. |
cursor | string | choices: the next_cursor of the page before. |
detail | string | Response detail level. Defaults to compact. |
graph | string | Graph to target; defaults to the connection's graph |
job | string | trials: only the trials of this use. |
limit | integer | trials: at most this many, newest first (default 20); choices: rows per page (default 50). |
trial_id | string | trial / trial_call: the trial id. |
use | string | choices: one use. |
workflow | string | choices: a named workflow: the rows in force for it. |
lbb_model_choice_manage
Model choice, writes. start tests a candidate model on the uses in jobs (without jobs, every use it can do that has checked calls): the server answers those checked calls again with the candidate and scores it and the model in use against the same ground truth. It changes no model and spends at most the trial budget ($3.00 by default) of model and judge cost; an open trial of the same use and candidate comes back as it is. Pick candidates from lbb_model_choice action=options (provider anthropic with an effort, or typesafe jev-latest). A trial runs by itself: poll lbb_model_choice action=trial…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
days | integer | start: the days the trial takes new checks (default 14). |
detail | string | Response detail level. Defaults to compact. |
effort | string | start / put_choice: the effort of a Claude model. |
experiment | string | put_choice: an experiment (exp_…) whose B this choice applies, with workflow; use and the model are B's change. The workflow must still run the experiment's A, else experiment_outdated; when it runs… |
graph | string | Graph to target; defaults to the connection's graph |
job | string | revert: the use to put back on LBB's model. |
jobs | array | start: the uses to test it on. |
model | string | start / put_choice: the model id, e.g. claude-haiku-5-5 or jev-latest. |
provider | string | start: the candidate's provider; put_choice: the model's provider (mock only on a local server). |
target | integer | start: the calls to compare (default 40). |
trial_id | string | stop / switch: the trial id. |
use | string | put_choice / delete_choice: the workflow use. |
workflow | string | put_choice / delete_choice: a named workflow of the graph; absent for the environment. |
lbb_evals
Managed evals: ground truth for the questions an app asks and the searches it runs. A query run with `request` (lbb_query, also mode=question) records a trace: the question, the query that answered it, the type of that query (`query_type`: sparql, hybrid = search by meaning with conditions, search = search by meaning alone) and one item per result (hit or row); trace reads it back with the item ids. label has two forms. On a question's trace, valid alone judges the whole answer: valid=true makes the trace's query the golden query of the question; valid=false with sparql gives the right query,…
lbb_evals_delete
Delete an Evals dataset by id, with its items. A later datasets_get or datasets_export of it answers 404, and the next save of its workflow test makes a new dataset. The server reads the dataset first, so the question names it and its item count. The server asks the person to approve it through the client (MCP form elicitation) and sends nothing when they decline (approval_declined). A client that cannot show the question gets approval_required and nothing is sent, unless the MCP server's environment sets LBB_MCP_DESTRUCTIVE=allow.
| Parameter | Type | Description |
|---|---|---|
id * | string | The dataset's id (ds_…). |
detail | string | Response detail level. Defaults to compact. |
graph | string | Graph to target; defaults to the connection's graph |
lbb_commit
Write graph facts, retract them, or label ranked results. Explicit mode=records forwards a strict records/1 body, with exact IRIs/terms and the original receipt. It requires an existing support-enabled graph; protocol recognition never activates or converts a graph. Record edits that may remove support (set/unset/remove/delete/replace_scope or asserted=false) ask for approval. mode=facts writes triplets/embeddings/properties; mode=retract removes a wrongly-added fact (by edge or by entity) without a full reset, and removes whole records with purge_entity_properties; mode=search_feedback stores…
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | Validate a facts commit and return its structured SHACL report without writing. Only supported for mode=facts. |
edge_idempotency | string | Defaults to append in MCP. Use skip_unchanged for backfills; it skips exact current-edge duplicates and drops evidence-only repeats. |
entity_embeddings | array | |
entity_properties | array | Typed scalar attributes per entity. Each item is { type, name, properties }. `properties` is a flat map of field -> value, e.g. { "type": "PERSON", "name": "Ada Lovelace", "properties": { "h_index": 5… |
expected_graph_epoch | string | mode=records only: exact decimal graph incarnation guard. Protocol support does not activate this graph. |
graph | string | Graph to target; defaults to the connection's graph |
idempotency_key | string | |
mode | string | |
observed_at | string | Backfill timestamp (RFC3339). Records this commit AS OF that instant: stamps transaction time and defaults each triplet's valid_time.start. Replay history in order with observed_at per commit so as-of… |
purge_entity_properties | boolean | mode=retract: also clear the field values of retract_entities, so each record leaves the current graph whole (its history stays readable with as_of reads). Required for retract_entities on a graph tha… |
records | object | Explicit mode=records only: the unchanged RecordCommitRequest object with version=records/1. Unknown fields are preserved for strict server validation; no native IRI normalization or scalar coercion.… |
retract_edges | array | mode=retract: specific edges to remove, matched by (source, relation, target). |
retract_entities | array | mode=retract: entities whose every current edge is removed (a current-state tombstone; the record and its history are kept for as_of reads). With purge_entity_properties the record's field values go t… |
search_feedback | object | |
triplets | array |
lbb_configure
Manage native schema metadata. Actions: define_ontology (friendly spec with super_types), evolve_ontology (ordered edits including add_super_types), list_starters (the base ontologies crm, documents and work, each with its status on the graph: absent, partial or applied, what applying adds, and conflicts), apply_starter (add what the graph lacks of a starter in one ontology version; a relation the graph has is widened; refused with starter_conflict when the graph holds a term differently; dry_run previews), publish_schema (SHACL activation), suggest_ontology_change (file a change for a person…