The tools
| Tool | What it returns |
|---|---|
get_processes | All processes in the org: names, descriptions, step and rule counts. The orientation call. |
get_process_rules | Rules for a process, optionally filtered by step: descriptions, confidence, frequency, review status. |
query_knowledge | Natural-language search through the full hybrid query pipeline; supports the same strategies as the API. |
get_rule_provenance | The complete audit chain for a rule: inference log, events, raw records. Your agent can show receipts too. |
get_related_rules | Knowledge-graph neighbours of a rule, with relation types. |
get_entity_timeline | Chronological events for an entity: what happened to this deal, in order, with before/after state. |
get_entity_graph | Multi-hop entity neighbourhood: the people, tools, and entities connected to a starting point, with the assertions that link them. |
get_processes to orient, query_knowledge for the userâs question, get_rule_provenance when the user asks âwhy?â.
Transport, auth, audit
- Transport: stdio (JSON-RPC 2.0). The server runs as a local process speaking to your MCP client.
- Auth: a Seyn API key (
SEYN_MCP_API_KEYenvironment variable). The key binds the session to exactly one organisation; every tool result is scoped to it, with no cross-tenant path. Same model as the public API. - Audit: every tool invocation is logged with operation, latency, and outcome. An agent reading your knowledge base leaves the same trail a human would.
- Rate limiting: per-key sliding window; over-limit calls return a structured error with retry guidance.
Setup
Like the SDK, the MCP server package is in private alpha: distribution is currently by tarball from the team rather than npm. Request access; configuration is identical once installed.
Error shape
Tools return the platformâs standard error format (NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, INTERNAL_ERROR) as structured tool results rather than protocol failures, so agents can branch on them.
Common mistakes
| Symptom | Cause | Fix |
|---|---|---|
| Every tool returns empty results | The API key belongs to an org with no active knowledge library | Verify the keyâs org in the dashboard; run extraction if needed |
| Agent answers without consulting Seyn | The agentâs system prompt doesnât tell it when to use the tools | Instruct it explicitly: âfor questions about processes, query seyn before answeringâ |
RATE_LIMITED during agent loops | Agents can burn a sliding window fast in retry loops | Honor the retry guidance in the error; add backoff to the agent harness |
Related
Authentication
API keys: creation, rotation, revocation.
Query
What
query_knowledge runs under the hood.