Skip to main content
Glama

Hydra Core - the workspace's decision flowchart for AI chats

connections_core

Use this when an AI chat starts a task and needs to know how to do it: whether to do it itself or delegate, how big it is, which manager, worker or tool it goes to, and the brief to hand them. One flowchart per workspace, kept in the CrAInium and edited live. A workspace can instead use another workspace's flowchart through a link: its head, run, get, find and history then answer the shared chart and carry linkedTo, its walks still land in its own ledger, and save, edit and revert on it answer error linked until you edit the shared chart (company: the target) or unlink. action link { to: , why } links this workspace; link { to: null, why } gives it its own copy of the shared chart. A workspace with no flowchart answers head status none. action run (default) walks it: send the answers you have (by question id) and facts such as { message }; it answers the next question to answer (status ask) or the outcome with the path taken, the people, the tools and a brief (status done). Most tasks end at the first questions with outcome myself: go do it. action head lists the flowchart's quick exits: the questions a chat answers itself before it acts, and which answers end there, so those need no call. action find lists the CrAInium docs and staff in this workspace that match a query or a message, as addresses to read, never their text. action get returns the flow (format outline for a readable view); edit changes it with ops (add_node, update_node, remove_node, add_edge, update_edge, remove_edge, set) and save replaces the whole graph, both with base_version and a why; revert brings an older version back; history lists versions; log lists recent runs; brief gives a chat back its last delegate brief after a compact; turns stores one ledger row per chat turn from a PC's hook: whether the chat walked the core and whether it delegated. Every version is kept.

Input Schema

NameRequiredDescriptionDefault
toNorevert: the version to bring back. link: the workspace (id or name) whose flowchart to use, or null to unlink.
opsNoedit: [{ op: 'add_node', node: {id, type, ...} }, { op: 'update_node', id, set: {...} }, { op: 'remove_node', id }, { op: 'add_edge', edge: {from, to, when} }, { op: 'update_edge', id, set }, { op: 'remove_edge', id }, { op: 'set', set: { title, start, notes, holonic, hooks } }] (null clears a key). holonic: up to 12 standing lines, 2000 characters together, that every chat at every level follows; every run and brief carries them. hooks: up to 300 entries { hook, kind: guard|chart|notice, at: holonic:<n>|node:<id>|chart, why: one line } naming each local hook the chart carries. Node types: ask (text, answers), check (test: { fact, op, value }), do (say, use), person (name, role, mode consult|hire|lead, brief), end (outcome, say).
whyNoedit/save/revert: what changed and why, kept with the version.
chatNorun/log/brief: this chat's key, so its runs and brief can be found again.
flowNoWhich flowchart (default main).
kindNolog: which core_events rows (default run).
rowsNoturns: one row per chat turn, 1 to 200: { uid (the turn's key, 1-80 letters, digits, . _ : or -), chat, at (ISO time), called, delegated, version, pc }. called true means the chat walked the flowchart.
factsNorun: facts the flowchart's checks read, e.g. { message: '<the request>' }. find: { message } in place of query.
graphNosave: the whole flowchart { title, start, notes, holonic, hooks, nodes, edges }.
limitNohistory/log: how many (default 50, at most 500); find: docs to list (default 8, at most 20).
queryNofind: the words to match against the workspace's docs and staff (default facts.message).
actionNorun (default) walks the flowchart; head reads its quick exits; find reads matching docs and staff; get reads it; edit/save/revert change it; link shares another workspace's flowchart; history, log, brief and turns read or store the record.
formatNoget: graph (default) or a readable outline.
personNoLinked person to run this call as (first name). Omit to run as the connection's holder.
answersNorun: answers so far, by question id, e.g. { need: 'no', mid: 'no', who: 'delegate', tier: 3 }.
companyNoThe workspace (project id) when this account belongs to more than one.
projectNoWorkspace to run this call in (id or name).
versionNoget: an older version to read.
folderPathNoA local folder bound to a workspace; picks that workspace's flowchart.
base_versionNoedit/save/revert: the version you read (0 for a new flowchart). A newer save is answered stale_version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "run",
      -  "head",
      -  "find",
      -  "turns",
      -  "get",
      -  "save",
      -  "edit",
      -  "revert",
      -  "link",
      -  "history",
      -  "log",
      -  "brief"
      -]New value: +[
      +  "link",
      +  "run",
      +  "head",
      +  "find",
      +  "turns",
      +  "get",
      +  "save",
      +  "edit",
      +  "revert",
      +  "history",
      +  "log",
      +  "brief"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / graph / description
      Previous value: -"save: the whole flowchart { title, start, notes, holonic, nodes, edges }."New value: +"save: the whole flowchart { title, start, notes, holonic, hooks, nodes, edges }."
    • changedInput schema / properties / ops / description
      Previous value: -"edit: [{ op: 'add_node', node: {id, type, ...} }, { op: 'update_node', id, set: {...} }, { op: 'remove_node', id }, { op: 'add_edge', edge: {from, to, when} }, { op: 'update_edge', id, set }, { op: 'remove_edge', id }, { op: 'set', set: { title, start, notes, holonic } }] (null clears a key). holonic: up to 12 standing lines, 2000 characters together, that every chat at every level follows; every run and brief carries them. Node types: ask (text, answers), check (test: { fact, op, value }), do (say, use), person (name, role, mode consult|hire|lead, brief), end (outcome, say)."New value: +"edit: [{ op: 'add_node', node: {id, type, ...} }, { op: 'update_node', id, set: {...} }, { op: 'remove_node', id }, { op: 'add_edge', edge: {from, to, when} }, { op: 'update_edge', id, set }, { op: 'remove_edge', id }, { op: 'set', set: { title, start, notes, holonic, hooks } }] (null clears a key). holonic: up to 12 standing lines, 2000 characters together, that every chat at every level follows; every run and brief carries them. hooks: up to 300 entries { hook, kind: guard|chart|notice, at: holonic:<n>|node:<id>|chart, why: one line } naming each local hook the chart carries. Node types: ask (text, answers), check (test: { fact, op, value }), do (say, use), person (name, role, mode consult|hire|lead, brief), end (outcome, say)."
  3. Changed2 schema fields changed
    • changedInput schema / properties / graph / description
      Previous value: -"save: the whole flowchart { title, start, notes, nodes, edges }."New value: +"save: the whole flowchart { title, start, notes, holonic, nodes, edges }."
    • changedInput schema / properties / ops / description
      Previous value: -"edit: [{ op: 'add_node', node: {id, type, ...} }, { op: 'update_node', id, set: {...} }, { op: 'remove_node', id }, { op: 'add_edge', edge: {from, to, when} }, { op: 'update_edge', id, set }, { op: 'remove_edge', id }, { op: 'set', set: { title, start, notes } }]. Node types: ask (text, answers), check (test: { fact, op, value }), do (say, use), person (name, role, mode consult|hire|lead, brief), end (outcome, say)."New value: +"edit: [{ op: 'add_node', node: {id, type, ...} }, { op: 'update_node', id, set: {...} }, { op: 'remove_node', id }, { op: 'add_edge', edge: {from, to, when} }, { op: 'update_edge', id, set }, { op: 'remove_edge', id }, { op: 'set', set: { title, start, notes, holonic } }] (null clears a key). holonic: up to 12 standing lines, 2000 characters together, that every chat at every level follows; every run and brief carries them. Node types: ask (text, answers), check (test: { fact, op, value }), do (say, use), person (name, role, mode consult|hire|lead, brief), end (outcome, say)."
  4. Changed1 schema field changed
    • addedInput schema / properties / person
      Added value: +{
      +  "description": "Linked person to run this call as (first name). Omit to run as the connection's holder.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Workspace to run this call in (id or name).",
      +  "type": "string"
      +}
  6. Changed4 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"run (default) walks the flowchart; head reads its quick exits; find reads matching docs and staff; get reads it; edit/save/revert change it; history, log, brief and turns read or store the record."New value: +"run (default) walks the flowchart; head reads its quick exits; find reads matching docs and staff; get reads it; edit/save/revert change it; link shares another workspace's flowchart; history, log, brief and turns read or store the record."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "run",
      -  "head",
      -  "find",
      -  "turns",
      -  "get",
      -  "save",
      -  "edit",
      -  "revert",
      -  "history",
      -  "log",
      -  "brief"
      -]New value: +[
      +  "run",
      +  "head",
      +  "find",
      +  "turns",
      +  "get",
      +  "save",
      +  "edit",
      +  "revert",
      +  "link",
      +  "history",
      +  "log",
      +  "brief"
      +]
    • changedInput schema / properties / to / description
      Previous value: -"revert: the version to bring back."New value: +"revert: the version to bring back. link: the workspace (id or name) whose flowchart to use, or null to unlink."
    • changedInput schema / properties / to / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "string",
      +  "null"
      +]
  7. Changed8 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"run (default) walks the flowchart; get reads it; edit/save/revert change it; history, log and brief read the record."New value: +"run (default) walks the flowchart; head reads its quick exits; find reads matching docs and staff; get reads it; edit/save/revert change it; history, log, brief and turns read or store the record."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "run",
      -  "get",
      -  "save",
      -  "edit",
      -  "revert",
      -  "history",
      -  "log",
      -  "brief"
      -]New value: +[
      +  "run",
      +  "head",
      +  "find",
      +  "turns",
      +  "get",
      +  "save",
      +  "edit",
      +  "revert",
      +  "history",
      +  "log",
      +  "brief"
      +]
    • changedInput schema / properties / base_version / description
      Previous value: -"edit/save/revert: the version you read (0 for a new flowchart). A newer save refuses with stale_version."New value: +"edit/save/revert: the version you read (0 for a new flowchart). A newer save is answered stale_version."
    • changedInput schema / properties / facts / description
      Previous value: -"run: facts the flowchart's checks read, e.g. { message: '<the request>' }."New value: +"run: facts the flowchart's checks read, e.g. { message: '<the request>' }. find: { message } in place of query."
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "log: which core_events rows (default run).",
      +  "enum": [
      +    "run",
      +    "turn",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"history/log: how many (default 50, at most 500)."New value: +"history/log: how many (default 50, at most 500); find: docs to list (default 8, at most 20)."
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "find: the words to match against the workspace's docs and staff (default facts.message).",
      +  "type": "string"
      +}
    • addedInput schema / properties / rows
      Added value: +{
      +  "description": "turns: one row per chat turn, 1 to 200: { uid (the turn's key, 1-80 letters, digits, . _ : or -), chat, at (ISO time), called, delegated, version, pc }. called true means the chat walked the flowchart.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  8. Added

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, it discloses live editing, version retention, linked-chart behavior, error states such as 'linked' and 'stale_version', ledger rows from turns, and brief replay after compact. These are substantial behavioral details an agent needs and none contradict the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the purpose and necessary for a 12-action, 20-parameter tool, but it is one dense paragraph with semicolon chains. The content earns its place, yet the structure makes it harder to scan than it could be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex multi-action tool with no output schema, it covers all actions, return statuses, versioning, linked workspaces, run answers/facts, and error cases. An agent has enough context to select the action and understand its behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already has 100% description coverage for all 20 parameters, including examples for answers, facts and ops. The description largely restates the action and parameter semantics from the schema rather than adding much meaning beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the resource (a per-workspace decision flowchart) and its purpose: guiding an AI chat on delegation, sizing, routing and briefing. It is clear but does not explicitly differentiate itself from any sibling, though no sibling tool overlaps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete trigger ('when an AI chat starts a task...') and some when-not guidance ('quick exits ... need no call'; most tasks end at myself). It does not name alternative tools or explicit exclusions beyond those cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources