LoyJoy MCP by usefulapi

v1.1.0
io.usefulapi/loyjoy Checked 1 day ago Published 7 days ago

Read agents and knowledge, search it, create articles, and ask agents in LoyJoy.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

loyjoy_list_agents List agents

List all agents (LoyJoy processes) of the tenant with id, name, folder and state. Roles: owner, editor, processes_editor or processes_viewer.

loyjoy_get_agent Get agent

Get one agent (process) by id: its id and name, read from the latest saved (staging) version. Roles: owner, editor, processes_editor or processes_viewer.

ParameterTypeDescription
agent_id *stringId as returned by a list tool.

loyjoy_start_agent Start agent

Start the published version of an agent with optional variables, and return the resulting variables. The agent halts when it expects user input, for example at a Proceed module. Roles: owner or editor.

ParameterTypeDescription
agent_id *stringId as returned by a list tool.
variablesobjectVariables by key, for example {"email": {"value": "a@b.c"}}.

loyjoy_ask_agent Ask agent

Send one user message to the published (production) agent in a new single-use conversation, and return its answer. Roles: owner or editor.

ParameterTypeDescription
agent_id *stringId as returned by a list tool.
text *stringThe user message to send.
localestringLocale, for example de or en. The API default is de.

loyjoy_list_home_views List home views

List all home views of the tenant with id and name. Roles: owner, editor, processes_editor or processes_viewer.

loyjoy_get_home_view Get home view

Get one home view by id, with its id and name. Roles: owner, editor, processes_editor or processes_viewer.

ParameterTypeDescription
view_id *stringId as returned by a list tool.

loyjoy_list_catalogs List knowledge catalogs

List all knowledge catalogs of the tenant with id, name and updated_at. Roles: owner, editor, knowledge_editor, knowledge_exporter or knowledge_viewer.

loyjoy_get_catalog Get knowledge catalog

Get one knowledge catalog by id: its metadata only. Its articles come from loyjoy_list_articles. Roles: owner, editor, knowledge_editor, knowledge_exporter or knowledge_viewer.

ParameterTypeDescription
catalog_id *stringKnowledge catalog id, from loyjoy_list_catalogs.

loyjoy_list_articles List articles

List all articles of one knowledge catalog. Roles: owner, editor, knowledge_editor, knowledge_exporter or knowledge_viewer.

ParameterTypeDescription
catalog_id *stringKnowledge catalog id, from loyjoy_list_catalogs.

loyjoy_get_article Get article

Get one article of a knowledge catalog by id. Roles: owner, editor, knowledge_editor, knowledge_exporter or knowledge_viewer.

ParameterTypeDescription
article_id *stringId as returned by a list tool.
catalog_id *stringKnowledge catalog id, from loyjoy_list_catalogs.

loyjoy_list_knowledge_sources List knowledge sources

List all knowledge sources of the tenant, URL and upload kinds, with their folder, type and last indexing time. Roles: owner, editor, knowledge_editor, knowledge_exporter or knowledge_viewer.

loyjoy_search_knowledge Search knowledge

Search the knowledge chunks of the tenant for a query. Returns up to max_chunks chunks (1 to 100, default 100). The root folder is always searched; subfolders only when listed in folders. Roles: owner, editor, knowledge_editor, knowledge_exporter or knowledge_viewer.

ParameterTypeDescription
query *stringThe search text.
foldersarraySubfolders to search, by name.
max_chunksintegerMaximum chunks to return (1 to 100).

loyjoy_create_catalog Create knowledge catalog

Create a new, empty knowledge catalog with the given name. Each call creates another catalog. Roles: owner, editor or knowledge_editor.

ParameterTypeDescription
name *stringThe catalog name.

loyjoy_create_article Create article

Create an article in a knowledge catalog, in one locale. Writes are limited to one per second per catalog: a faster write returns HTTP 500, so wait about one second between writes to the same catalog. Roles: owner, editor or knowledge_editor.

ParameterTypeDescription
catalog_id *stringKnowledge catalog id, from loyjoy_list_catalogs.
text *stringThe article body, in the given locale.
title *stringThe article title, in the given locale.
localestringLocale, for example de or en. The API default is de.
search_disablebooleanSet true to keep the article out of search results.
source_urlstringOptional source URL of the article.