Little Big Brain

v0.18.1
com.littlebigbrain/lbb Checked 4 days ago Published 3 days ago

MCP 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…

ParameterTypeDescription
action *stringSelects the variant (one of: import, update).
base_iristring
blank_node_scopestringStable document scope for blank labels across import chunks.
detailstringResponse detail level. Defaults to compact.
formatstring
graphstringGraph to target; defaults to the connection's graph
idempotency_keystring
sourcestringComplete RDF document. Preserves OWL axioms, RDF lists, labels, comments, and external IRIs as graph facts.
updatestringSPARQL 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…

ParameterTypeDescription
action *string
afterstringlist: the next 50 files, from a previous call's next (pass the same parse_status and name).
containsstringpages: only the lines whose text holds this, ignoring case.
detailstringResponse detail level. Defaults to compact.
fromintegerpages: the first page index, 0-based. Default 0.
graphstringGraph to target; defaults to the connection's graph
line_offsetintegerpages: lines of the first page to skip, from a previous call's next.
max_linesintegerpages: the most lines to return. Default 200.
namestringlist: 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_statusstringlist: only the files of this parse status; waiting is a file not parsed yet.
sha256stringpages: the file's SHA-256 (64 hex characters).
tointegerpages: 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…

ParameterTypeDescription
action *string
cursorstringlist: the next_cursor of the page before.
detailstringResponse detail level. Defaults to compact.
eval_idstringlist, patterns: the items Evals filed for one record (eval.id): a calibration session, a model call's check, a golden, a dataset.
graphstringGraph to target; defaults to the connection's graph
idstringget: the item's id, rev_… (or the sg_… of a change).
keylist: the items filed under this producer key, or these keys (at most 100).
kindlist: one kind, or a list of kinds.
limitintegerlist: 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_idstringlist, patterns: the producer's id, for example starter:areas.
runstringlist: the items of the run that asked.
scopestringlist: live (the default) or test.
statusstringlist, patterns: only the items in this state.
typestringpatterns: only the patterns of this kind of suggestion.
workflowstringlist: 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…

ParameterTypeDescription
action *stringSelects the variant (one of: guide, ontology, ontology_conformance, schema, graphs, publication, ontology_search, metadata, ontology_suggestions, entity).
as_ofstringUnsupported for entity; use as_of_commit_seq for a retained commit snapshot.
as_of_commit_seqintegerSnapshot pin: reproduce the node's attributes and relationships as of this commit_seq.
consistencystring
cursorstringOpaque lbb_inspect continuation. Repeat action and pass the returned next arguments; rejects changed metadata.
detailstringResponse detail level. Defaults to compact.
entity_idstringEntity id (hex); alternative to entity_type+name
entity_typestring
graphstringGraph to target; defaults to the connection's graph
iristringAuthoritative full RDF IRI; selects the lossless records/1 read.
keystringStable key with entity_type, resolved from the activated schema at the read snapshot.
limitinteger
limitsobjectLossless records/1 section bounds. Exceeding a bound refuses the read instead of truncating it.
namestring
page_sizeintegerMaximum 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.
querystringOntology concept, term, or relation to search
schema_revisionstringExpected opaque schema revision for a records/1 read.
sectionstringOptional top-level array to inspect, e.g. entity_type_defs, relation_defs, property_defs, classes, or relations. Omit to page through all sections.
statusstringOnly suggestions in this state; default all
top_kinteger
versionstring

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…

ParameterTypeDescription
action *string
bodyobject
detailstringResponse detail level. Defaults to compact.
graphstringGraph to target; defaults to the connection's graph
limitinteger
monthstringactivity: the month, yyyy-mm (UTC). Defaults to the current month.
split_seqinteger

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).

ParameterTypeDescription
action *string
classstringpreview/declare: the class IRI.
detailstringResponse detail level. Defaults to compact.
diminteger
excludearraypreview/declare: fields to drop from the automatic choice.
fromarraypreview/declare: the fields, e.g. ["label", "description", "calls/label"]. Omit for the automatic choice; on an existing embedding, omit to keep its fields.
graphstringGraph to target; defaults to the connection's graph
irisarraypreview: the instances to show instead of a sample.
modelstringmodel: 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).
namestringget: the embedding name.
sampleinteger
titlestringpreview/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…

ParameterTypeDescription
action *string
classstringpreview/declare: the class IRI.
detailstringResponse detail level. Defaults to compact.
diminteger
excludearraypreview/declare: fields to drop from the automatic choice.
fromarraypreview/declare: the fields, e.g. ["label", "description", "calls/label"]. Omit for the automatic choice; on an existing embedding, omit to keep its fields.
graphstringGraph to target; defaults to the connection's graph
modelstringmodel: 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).
namestringThe embedding name (refresh: required).
titlestringpreview/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.

ParameterTypeDescription
name *stringThe embedding name.
detailstringResponse detail level. Defaults to compact.
graphstringGraph 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…

ParameterTypeDescription
action *string
classstringpreview/declare/dry_run: the class IRI whose instances hold the text.
contextstringpreview/declare/dry_run: one sentence about the text, e.g. "interviews with employees about their work processes" (at most 500 characters).
detailstringResponse detail level. Defaults to compact.
excludearraypreview/declare/dry_run: fields to drop from the automatic choice.
fromarraypreview/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.
graphstringGraph to target; defaults to the connection's graph
irisarraypreview: the instances to show instead of a sample.
namestringget: the fit source name.
sampleinteger

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…

ParameterTypeDescription
action *string
classstringpreview/declare/dry_run: the class IRI whose instances hold the text.
contextstringpreview/declare/dry_run: one sentence about the text, e.g. "interviews with employees about their work processes" (at most 500 characters).
detailstringResponse detail level. Defaults to compact.
excludearraypreview/declare/dry_run: fields to drop from the automatic choice.
fromarraypreview/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.
graphstringGraph to target; defaults to the connection's graph
namestringThe 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.

ParameterTypeDescription
name *stringThe fit source name.
detailstringResponse detail level. Defaults to compact.
graphstringGraph 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…

ParameterTypeDescription
action *string
batchintegerpreview/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.
classstringpreview/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.
cursorstringqueue, tests, workflows, run_results and revisions: the next_cursor of the page before.
detailstringResponse detail level. Defaults to compact.
excludearraypreview/use: fields to drop from the automatic choice.
fieldsarraypreview/use: the fields whose change triggers the workflow, as embedding paths (transcript, label, about/label, <https://…>). Omit for the starter workflow's own choice.
graphstringGraph to target; defaults to the connection's graph
idstringtests_get: the test's id.
iristringrun_results: only the results of this input.
irisarraypreview: the instances to show instead of a sample.
limitintegerqueue: 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…
namestringget: 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…
outcomearrayrun_results: only the inputs of these outcomes.
ownsobjectpreview/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…
paramsobjectpreview/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…
revisionstringrevision: the revision's id (wrev_ and 32 hex characters).
runstringrun_results: one run's results (a run id), in input order.
sampleintegerpreview: how many sample instances to show.
starterstringThe 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…
triggerstringdefine: the trigger's id (default watch, content, schedule or stream). queue: the trigger whose queue to read.
workflowobjectpreview/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…

ParameterTypeDescription
name *stringThe triggered workflow's name.
detailstringResponse detail level. Defaults to compact.
graphstringGraph to target; defaults to the connection's graph
starterstringThe 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…

ParameterTypeDescription
action *string
call_idstringtrial_call: a call id from the trial's calls.
cursorstringchoices: the next_cursor of the page before.
detailstringResponse detail level. Defaults to compact.
graphstringGraph to target; defaults to the connection's graph
jobstringtrials: only the trials of this use.
limitintegertrials: at most this many, newest first (default 20); choices: rows per page (default 50).
trial_idstringtrial / trial_call: the trial id.
usestringchoices: one use.
workflowstringchoices: 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…

ParameterTypeDescription
action *string
daysintegerstart: the days the trial takes new checks (default 14).
detailstringResponse detail level. Defaults to compact.
effortstringstart / put_choice: the effort of a Claude model.
experimentstringput_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…
graphstringGraph to target; defaults to the connection's graph
jobstringrevert: the use to put back on LBB's model.
jobsarraystart: the uses to test it on.
modelstringstart / put_choice: the model id, e.g. claude-haiku-5-5 or jev-latest.
providerstringstart: the candidate's provider; put_choice: the model's provider (mock only on a local server).
targetintegerstart: the calls to compare (default 40).
trial_idstringstop / switch: the trial id.
usestringput_choice / delete_choice: the workflow use.
workflowstringput_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.

ParameterTypeDescription
id *stringThe dataset's id (ds_…).
detailstringResponse detail level. Defaults to compact.
graphstringGraph 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…

ParameterTypeDescription
dry_runbooleanValidate a facts commit and return its structured SHACL report without writing. Only supported for mode=facts.
edge_idempotencystringDefaults to append in MCP. Use skip_unchanged for backfills; it skips exact current-edge duplicates and drops evidence-only repeats.
entity_embeddingsarray
entity_propertiesarrayTyped 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_epochstringmode=records only: exact decimal graph incarnation guard. Protocol support does not activate this graph.
graphstringGraph to target; defaults to the connection's graph
idempotency_keystring
modestring
observed_atstringBackfill 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_propertiesbooleanmode=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…
recordsobjectExplicit 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_edgesarraymode=retract: specific edges to remove, matched by (source, relation, target).
retract_entitiesarraymode=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_feedbackobject
tripletsarray

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…