Request requirements
Calling the MCP server
Use the streamable HTTP MCP endpoint with a Decion MCP API key. Tool calls that operate inside a workspace must include the target namespace slug.
- Configure your MCP runtime to call https://mcp.decionlabs.ai/mcp with Authorization: Bearer <decion_api_key>.
- Pass namespace on decision, knowledge, work-item, agent-session, and subject tool calls.
- Use mailbox ids on email tool calls when a specific mailbox is required.
- Use bulk decision import tools for historical training data.
MCP keys
MCP keys are bearer tokens. They can be scoped to a subset of canonical tools, namespaces, and mailboxes.
Namespaces
Namespaces isolate agent work under the same organization. A tool call without a valid active namespace is rejected.
Knowledge collections
Collections are namespace-scoped retrieval buckets. The same collection slug can exist in different namespaces without overlapping results.
Tools
Available tool groups
Decision tools
Submit compact decision requests with context and candidate actions, get ranked recommendations, and record outcomes to improve future runs.
Legacy *history_import* names remain available as deprecated aliases.
-
create_decisionCreate a persisted decision and return the current recommendation.
-
preview_decisionRun the decision engine without persisting decision state.
-
explain_decisionExplain the evidence, priors, and review signals behind one decision.
-
search_decision_precedentsSearch similar historical decision evidence without creating a decision.
-
list_decisionsList decisions for one task and lifecycle status.
-
list_recent_decisionsList the most recently updated decisions in a namespace.
-
get_namespace_summaryGet a namespace snapshot including decisions, knowledge, and recent imports.
-
get_decisionGet one stored decision and its current outcome state.
-
submit_outcomeClose an open decision with an outcome.
-
expire_decisionExpire an open decision without closing it.
-
delete_decisionHard-delete one decision and its learned history/evidence from a namespace.
-
start_bulk_decision_importStart a draft bulk decision import.
-
append_bulk_decision_import_chunkAppend one chunk of resolved cases to a draft import.
-
finalize_bulk_decision_importQueue a staged import so the worker can process it.
-
get_bulk_decision_importGet current status and counters for a bulk import.
-
get_bulk_decision_import_failuresList failed rows for one bulk import.
-
cancel_bulk_decision_importCancel a draft, queued, or running bulk import.
Knowledge tools
Ingest text, Markdown, HTML, or PDF into namespace-scoped collections and retrieve grounded chunks with citations.
-
create_knowledge_collectionCreate a namespace-scoped knowledge collection.
-
list_knowledge_collectionsList knowledge collections available inside a namespace.
-
list_knowledge_sourcesList sources inside one knowledge collection.
-
delete_knowledge_collectionDelete one knowledge collection and all of its sources and chunks.
-
ingest_knowledge_sourceNormalize, chunk, embed, and store one text, markdown, or HTML source.
-
ingest_knowledge_pdfDecode, extract, chunk, embed, and store one PDF source.
-
delete_knowledge_sourceDelete one knowledge source and its chunks.
-
replace_knowledge_sourceReplace one knowledge source in place with new content or a new PDF.
-
reindex_knowledge_sourceRe-chunk and re-embed one stored knowledge source.
-
get_knowledge_sourceGet one knowledge source by id.
-
search_namespace_knowledgeSearch across all or selected collections in one namespace.
-
search_knowledgeSearch one knowledge collection and return ranked chunk matches.
Email tools
Inspect organization mailboxes, read threads and attachments, draft replies, and explicitly send email after a decision is made.
-
list_email_mailboxesList organization mailboxes available for email work.
-
get_email_mailboxGet one mailbox by mailbox id.
-
list_email_threadsList email threads across the organization or inside one mailbox.
-
get_email_threadGet one email thread with all messages and attachment metadata.
-
get_email_messageGet one email message by id.
-
create_email_draftCreate an outbound draft with optional attachments inside one mailbox.
-
send_email_draftSend one stored email draft through the configured provider.
-
get_email_attachmentFetch one stored attachment as base64 content.
-
archive_email_threadArchive one thread so it no longer appears in default inbox listings.
Work item tools
Create unclaimed work, lease active tasks, release handoffs, and complete shared work in the server-side task queue.
-
create_work_itemCreate one canonical work item in the shared queue.
-
list_work_itemsList work items in the shared queue with optional filters.
-
claim_work_itemClaim an existing work item with a lease.
-
get_work_itemGet one work item by id.
-
heartbeat_work_itemExtend the lease on an active work item.
-
release_work_itemReturn an active work item to the unclaimed queue.
-
complete_work_itemMark an active work item completed.
Agent session tools
Persist ephemeral namespace-scoped checkpoint state for resumable runs, handoffs, cursors, and partial plans.
-
put_agent_session_stateCreate or replace ephemeral state for one agent session.
-
get_agent_session_stateGet one stored agent session state by session id.
-
list_agent_sessionsList live agent sessions in one namespace.
-
delete_agent_session_stateDelete one stored agent session state.
Subject memory tools
Create durable subject records, append events, and link decisions to real-world entities across agents.
-
upsert_subjectCreate or update a generic subject record with shared metadata.
-
get_subjectGet one subject record by natural key.
-
append_subject_eventAppend an immutable event to a subject timeline.
-
list_subject_eventsList recent events on a subject timeline.
-
delete_subject_eventDelete one event from a subject timeline.
-
search_subjectsSearch shared subject memory by semantic similarity plus optional hard filters.
-
link_decision_to_subjectLink a stored decision to a subject record.
-
delete_subjectDelete one subject record and its timeline and links.