Skip to content

MCP tools

Every tool the YeshBe MCP server exposes, with its parameters.

Which tools a connected assistant gets depends on the kind of app. An app built in YeshBe gets the data and schema tools. A YeshBe Code project gets the code project tools as well.

Access levels#

Every tool has one of four access levels.

AccessWhat it means
readReads only. Changes nothing.
writeCreates or changes something.
deleteDeletes something.
askChanges nothing before you agree in the chat.

Data and schema tools#

ToolAccessWhat it does
get_schemareadThe app's collections and fields
list_recordsreadList, search and filter records
count_recordsreadCount the records that match
get_recordreadOne record by id
create_recordwriteCreate a record
create_recordswriteCreate up to 100 records at once
update_recordwriteChange fields of a record
delete_recorddeleteDelete a record
list_usersreadList the app's users
get_userreadOne user by id
create_userwriteCreate a user
update_userwriteChange a user's details
set_user_activewriteBlock or unblock a user
change_schemaaskAdd, change or remove a collection
undo_schema_changewritePut back the schema from before the last change

In every record tool, entity is the collection name exactly as get_schema returns it.

Schema#

get_schema#

Returns the app's collections with their fields, types, required fields and allowed enum values. Call it before working with records. It takes no parameters.

change_schema#

Adds a collection, changes one, or removes one from the schema. Without apply it returns only the plan: each change with its kind and the records it affects. Records are never deleted. See Change the schema.

collectionobject

The collection's full new definition: name, properties, required, publicRead and publicCreate.

remove_collectionstring

Used instead of collection. The name of a collection to take out of the schema. Its records stay.

applyboolean

false, the default, returns only the plan. true makes the change.

user_confirmedboolean

true only after the user agreed to a breaking or security change.

undo_schema_change#

Puts back the schema from before the last change_schema. Records that were converted stay converted. It takes no parameters.

Records#

list_records#

Lists the records of a collection with paging, search, sort and filters. Returns items, page, limit, total and pages. See Read and write records for the filter operators.

entitystringrequired
filtersobject

Field filters. A value is x for equals, or op:x where op is one of eq, ne, gt, gte, lt, lte, like, in or between.

searchstring

Free-text search.

sortstring

The field to sort by. Prefix it with - for descending order.

fieldsstring

Comma-separated fields to return.

limitinteger

Records per page, up to 200. The default is 50.

pageinteger

The page number. Starts at 1.

get_record#

Returns one record by id.

entitystringrequired
idintegerrequired

count_records#

Counts the records that match, without returning them.

entitystringrequired
filtersobject

Same format as in list_records.

searchstring

Free-text search.

create_record#

Creates a record.

entitystringrequired
dataobjectrequired

The record's fields. They must match the collection's fields from get_schema. A relation field takes the id of the related record.

create_records#

Creates up to 100 records at once. Returns which were created and which failed.

entitystringrequired
itemsarray of objectsrequired

The records to create. At most 100.

update_record#

Partial update. Only the fields sent in data change.

entitystringrequired
idintegerrequired
dataobjectrequired

The fields to change.

delete_record#

Deletes a record. The assistant confirms with the user before calling it.

entitystringrequired
idintegerrequired

Users#

list_users#

Lists the app's end users.

searchstring

Email or name.

roleinteger

Role id.

activeboolean
sortstring

created_at, last_login_at, email, full_name or role. Prefix it with - for descending order.

limitinteger

Up to 200.

pageinteger

get_user#

Returns one app user.

idintegerrequired

create_user#

Creates an app user. Without a password the account can't sign in until a reset.

emailstringrequired
full_namestring
phonestring
roleinteger

Role id. The default is 1.

passwordstring

At least 8 characters.

extraobject

Extra fields defined by the User collection.

update_user#

Partial update of an app user. Email and password can't be changed here.

idintegerrequired
full_namestring
phonestring
roleinteger
avatar_urlstring
extraobject

Extra fields, merged into the existing ones.

set_user_active#

Blocks or unblocks an app user. Users are never deleted.

idintegerrequired
activebooleanrequired

false blocks the user. true unblocks them.

Code project tools#

A YeshBe Code project gets these tools in addition to the ones above. They work on the project's files and versions.

ToolAccessWhat it does
get_projectreadThe project's details
list_filesreadList the project's files
read_filereadRead a file
search_filesreadSearch across the project's files
write_filewriteCreate a file or replace its contents
write_fileswriteWrite several files in one call
upload_filewriteAdd a file to the project
renamewriteRename or move a file
deletedeleteDelete a file
create_draftwriteStart a draft version
set_home_pagewriteChoose the page the site opens on
set_spawriteTurn single-page app routing on or off
get_sdk_docsreadThe SDK documentation for calling the app from code
get_app_connectionreadThe details the project needs to connect to its app
list_versionsreadList the project's versions
publish_versionaskPublish a version to the live site

publish_version changes nothing before you agree in the chat.