Bostwick

MCP tools

The complete tool surface an agent sees when connected. Each connection is scoped to the signed-in member's workspace; tools marked admin require the admin workspace role. The server also publishes usage guidance to connected agents via MCP instructions, and every tool's full input schema is self-describing over the protocol.

Schema — introspection

Every workspace has its own schema: entity types with typed fields, uniqueness constraints, cross-reference match rules, and at-least-one-of presence rules. All rules are returned with plain-language explanations.

describe_workspace

The whole schema in one call: every entity type with its field definitions, system fields, and the field-type reference. Start here.

list_entity_types

Entity types without field definitions.

describe_entity_type

One entity type with its fields and rules.

list_relationships

How an entity relates to others, derived from the physical schema: cardinality both ways, reference vs association, and what implements it.

Schema — editing

Schema changes require the admin workspace role. Changes never rewrite stored records — new required fields, tightened options, and new rules bind future writes only. Deletes are refused while they would dangle.

create_entity_typeadmin

Create an object type; add fields separately.

update_entity_typeadmin

Patch metadata: name, description, titleField (supports paths through required references, e.g. person.full_name), acceptsDocuments.

delete_entity_typeadmin

Delete a type and all of its records. Refused while other entities reference it.

create_fieldadmin

Add a typed field. unique: true declares a single-field uniqueness constraint — the basis for sync_record identity.

update_fieldadmin

Patch a field definition; config is replaced wholesale. Types can't change in place.

delete_fieldadmin

Remove a field; rules referencing it are pruned.

set_constraintsadmin

Replace the entity's uniqueness constraints (composite and conditional supported).

set_match_rulesadmin

Replace cross-reference consistency rules (e.g. a deal's stage must belong to the deal's pipeline).

set_presence_rulesadmin

Replace at-least-one-of rules (e.g. a person needs some identity key).

create_relationshipadmin

Relate two entities by declaring per-side cardinality; the server compiles the right structure — reference field or association object — with constraints handled.

Views

The record UI lives in the conversation. In clients that support MCP Apps (Claude on web, desktop, and mobile), these tools render an interactive view inline; the agent gets only a short summary back. Edits made in a view go through the same validated, audited write path as the agent's own. Other clients receive the summary as text.

show_records

An interactive table of an entity's records, with equality filters and paging. Rows open into the record view.

show_record

One record: fields editable in place, the records that reference it, linked documents, and field history.

show_board

A kanban board derived from the schema — ranked records as columns (stages), the records referencing them as draggable cards (deals), with outcome filters and close-as drop zones.

Records

Writes are validated strictly and rejections are corrective: the error names unrecognized keys and the valid key set, missing required fields with expected types, allowed select values, and the violated rule. Write optimistically and fix from the error. Reads expand required references one level automatically. Every write can state its source (provider, note, observed-at), stored per changed field and filterable later.

query_records

List records with filters (comparisons, in/nin, contains, $or/$not, paths through references, related-record tests, time-since-changed, relative dates), sort, and field selection. Returns the total alongside each page, in a stable order, so a paged read can be checked for completeness.

count_records

How many records match, without reading them — optionally grouped by one or two fields (deals per stage and playbook in one call), with sums and averages of number fields.

save_segment

Save a named filter so a definition is written once and every reader gets the same records and count. Usable anywhere a filter goes.

list_segments

Saved segments and their definitions.

delete_segment

Delete a saved segment (no records are touched).

preview_update

Step 1 of changing everything a filter or segment selects: returns the count, a sample, and a token — nothing is changed yet.

commit_update

Step 2: apply the previewed change to exactly the records counted, all-or-nothing. Refuses if the selection has changed since the preview.

get_record

Fetch one record by id, references expanded.

get_record_history

Field-level change history: every transition with old/new values and timestamps.

list_activity

The workspace-wide activity feed: every field transition across every record, newest first, with actors.

create_record

Create one record. Always creates — no fuzzy upsert. Reference fields accept an id or an inline { "$create": … } graph.

create_records

Create up to 100 records atomically — a failing item rolls back the whole batch.

create_record_with_children

Atomically create a record with its required related records.

sync_record

Idempotent update-or-create keyed on a declared identity field (e.g. apollo_org_id). The write path for external imports; safe under concurrency.

sync_records

Bulk sync, up to 100 items with per-item outcomes — one bad row doesn't sink the import; retry just the failures.

update_record

Patch a record; null clears a field.

update_records

Patch up to 100 records by id with per-item outcomes — idempotent, so retry just the failures. By explicit ids only; there is no update-by-filter.

delete_record

Delete one record; blocked while others reference it.

delete_records

Atomically delete several records with referential integrity checked across the set.

Documents

Unstructured context — call transcripts, meeting notes, emails — stored full-text-searchable and linked to records. The intended flow: read documents for conclusions, then persist conclusions as structured fields so they're validated and audited.

attach_document

Store content linked to records. Idempotent when source.provider + source.externalId identify an already-ingested document.

list_documents

Documents linked to a record, as previews.

get_document

One document's full content and its linked records.

search_documents

Full-text search across all documents, ranked by relevance.