Tools reference¶
This page lists every tool the Spongram MCP server can serve on POST /mcp, with its arguments, its
result, the flag or edition that makes it appear, and the permission it needs when the Cloud control
plane is enabled. Read the MCP server overview first for authentication, sessions and the
result envelope.
How to read this page¶
Where a tool comes from. Some tools are forwarded to the Graphiti MCP server (server deployments)
or served by the embedded engine (desktop edition, SPONGRAM_EDITION=local). The others are
synthetic: Spongram adds them to the tools/list answer and answers them itself, and they never
reach Graphiti.
| Group | Tools | Appears when |
|---|---|---|
| Memory | add_memory, reflect_on_failure |
Always |
| Search | search_nodes, search_memory_facts |
Always |
| Search | search_memory_nodes |
Desktop edition only (alias of search_nodes) |
| Episodes and facts | get_episodes, get_entity_edge, delete_episode, delete_entity_edge, clear_graph |
Always |
| Personas | list_personas, activate_persona, deactivate_persona, get_skill |
SPONGRAM_PERSONAS_ENABLED is on |
| Project aliases | list_project_aliases, set_project_alias, remove_project_alias |
SPONGRAM_PROJECT_ALIASES_ENABLED is on |
| Code map | code_map_query, code_map_neighbors, code_map_god_nodes, code_map_shortest_path, code_map_stats |
Always |
| Skills | record_skill, recall_skill |
Always |
| Status | get_status |
Always |
Both flags are off by default in the code and switched on in the container image built from
spongram_proxy/Dockerfile. See feature flags.
group_id and group_ids. The schemas of the forwarded tools carry a group_id or group_ids
argument. Do not send it. Spongram sets both from the authenticated brain key on every tools/call,
and a server deployment answers HTTP 403 when a request carries a value that is not exactly the
brain's own (a group_ids that is not a list is also refused). The desktop edition overwrites both
with its single brain and never refuses. These two arguments are left out of the tables below.
Result shape. Every result carries its payload as a JSON string in result.content[0].text
(plain text for a few tools, as noted). The add_memory acknowledgement also carries it in
result.structuredContent, and so do, on a server deployment, search results and the get_episodes
answer. Synthetic tools and the other answers of the desktop edition return content[0].text only.
Errors. Three shapes exist, and each tool below says which one it uses:
- an HTTP error (401, 402, 403, 409, 422, 429, 503) for authentication, tampering, permission, rate limit and unavailable storage;
- a tool result with
isError: truein an HTTP 200, for an unknown tool or a uuid that is not in the brain; - a JSON-RPC
errorobject in an HTTP 200, for the synthetic persona, alias, skill and code-map tools.
Permissions. The "Cloud permission" line applies only when the Cloud control plane is enabled
(SPONGRAM_CLOUD_CONTROL_ENABLED=true) and the brain is in enforce access mode. The effective
permissions of a call are the intersection of the key's permissions and the grant of its principal
on the brain. A missing permission answers HTTP 403 with
{"code": "permission_denied", "action": "<action>"}, and tools/list only lists the tools the key
could call. Without the control plane, a valid brain key can call every tool.
Memory¶
add_memory¶
Stores one episode: a piece of text from which the extraction model derives entities and facts in the background. This is the primary write.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
name |
string | yes | Short title of the episode. | |
episode_body |
string | yes | The content to remember. | |
source |
string | no | text |
Kind of content: text, message or json. |
source_description |
string | no | "" |
Space-separated key=value tags. See tagging and scope. |
uuid |
string | no | none | Uuid of an existing episode of this brain to process again instead of creating a new one. Ignored by the desktop edition. |
Returns an acknowledgement, not the extracted graph:
{
"content": [{"type": "text", "text": "Episode 'Deploy policy' queued for processing in group 'sb_xxx'"}],
"structuredContent": {"result": {"message": "Episode 'Deploy policy' queued for processing in group 'sb_xxx'"}},
"isError": false
}
Cloud permission: memory.write.
Behaviour:
- Asynchronous and durable. Spongram writes the call to its own queue
(
spongram_pending_episodes) and answers at once. A background worker forwards queued episodes to Graphiti one at a time and retries a failed one on a growing schedule. The acknowledgement means "accepted", not "extracted": a search may not see the new facts for seconds to minutes. See ingestion. - Idempotent for 24 hours. The server hashes the brain,
name,episode_body,source_descriptionanduuid. A call whose hash matches an episode that is still queued, or was completed in the last 24 hours, is acknowledged with the same message and not queued again. The same text under a differentproject=tag is a different episode. - Tags are completed server-side. A missing
project=tag is added, aclient=tag is added for a recognised client, and apersona=tag that does not name the active persona is removed. The exact rules are in tagging and scope. - Large bodies are split. An
episode_bodylonger thanSPONGRAM_EPISODE_BODY_MAX_CHARScharacters (10 000 by default) is cut on paragraph, then sentence, boundaries into several episodes named<name> (part k/N). Each part keeps thesource_description; auuidis kept on the first part only. The acknowledgement then says the episode was split into N parts. - Only the listed arguments are accepted. Any other argument is removed before the call is queued. See tools Spongram does not expose.
- An unknown
uuiddoes not block the write. Before forwarding, the server checks that the uuid names an episode of this brain. If it does not, the uuid is dropped and a new episode is created. - Does not clear the search cache. The graph changes only when extraction ends, so cached search answers stay valid until their time-to-live expires.
Errors: HTTP 422 when the optional source policy (SPONGRAM_CONSTITUTION_ENABLED, off by default)
rejects the source_description; HTTP 503 with Retry-After when the Cloud control plane cannot
admit the episode (nothing was stored, retry); HTTP 402 in the desktop edition when its licence is
locked.
reflect_on_failure¶
Records a lesson learned from something that failed, so a later session does not repeat it. Synthetic:
the server rewrites the call into an add_memory and the episode then follows the same path
(queue, tags, 24-hour idempotence).
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
lesson |
string | yes | What was tried, why it failed, what to try instead. | |
intent |
string | no | What the user or agent was trying to do. | |
source_description |
string | no | project=global tag=failure_pattern |
Tags. The server adds tag=failure_pattern and, when no project= tag is present, project=global. |
The stored episode is named <intent> (failure) (intent cut to 80 characters), or
Failure: <lesson> (lesson cut to 60 characters) without an intent. Its body is
Intent: <intent> followed by Lesson learned: <lesson>.
Returns the add_memory acknowledgement. Cloud permission: memory.write. Refused with HTTP 402 in
the desktop edition when its licence is locked.
Note
The server marks the episode with tag=failure_pattern and does nothing else specific to it:
extraction, search and ranking treat it as any other episode. An empty lesson is not rewritten;
the call is then answered as an unknown tool.
Search¶
Both search tools run the same post-processing on a server deployment and on the desktop edition:
read scoping, optional re-ranking, truncation to the size the client asked for, and synchronisation
of structuredContent. The stages and their flags are described in search;
the _spongram metadata block is described in the overview.
search_nodes¶
Searches the brain for entities (people, projects, tools, concepts) by natural-language query.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
query |
string | yes | Natural-language query. | |
max_nodes |
integer | no | 10 |
Maximum number of entities returned. The final list never exceeds it. |
center_node_uuid |
string | no | none | Server only: uuid of an entity to centre the search on. |
entity_types |
array of strings | no | none | Server only: keep only entities of these types. |
scope |
object | no | none | Read scope, present when SPONGRAM_READ_SCOPING_ENABLED is on: {"project": "<slug>"} or {"all": true}. See tagging and scope. |
The desktop edition reads query and max_nodes only; its schema also lists center_node_uuid and
an entity string, which it ignores.
Returns {"message": "...", "nodes": [...]}. Each node carries uuid, name, summary, labels,
group_id, created_at and attributes. Two fields may be added:
linked_code_nodeson a node: up to five code-map nodes (label,kind,source_file) that the entity references, when the brain holds a code map;_spongramat the top level: see the overview.
Cloud permission: memory.read.
Failures of the upstream search come back as an HTTP 200 whose payload is {"error": "..."}. Such
an answer is never cached.
search_memory_facts¶
Searches the brain for facts: relationships between two entities, with their period of validity.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
query |
string | yes | Natural-language query. | |
max_facts |
integer | no | 10 |
Maximum number of facts returned. The final list never exceeds it. |
center_node_uuid |
string | no | none | Uuid of an entity to centre the search on. |
edge_types |
array of strings | no | none | Server only: keep only facts of these relation types. |
valid_at_after, valid_at_before |
string (date-time) | no | none | Server only: bounds on the date a fact became valid. |
invalid_at_after, invalid_at_before |
string (date-time) | no | none | Server only: bounds on the date a fact stopped being valid. |
scope |
object | no | none | Read scope, as for search_nodes. |
Returns {"message": "...", "facts": [...]}. Each fact carries uuid, name, fact,
source_node_uuid, target_node_uuid, group_id, episodes (uuids of the episodes that support
it), created_at, valid_at, invalid_at, expired_at and attributes.
Cloud permission: memory.read.
Behaviour:
- Superseded facts are hidden. A fact with an
expired_at, or aninvalid_atin the past, is removed before truncation._spongram.hidden_invalidcounts them. SetSPONGRAM_HIDE_INVALID_FACTS=falseto return them; this also applies when you filter withinvalid_at_*. - Corroborated facts can move up. With
SPONGRAM_CORROBORATION_RANKING_ENABLEDon, a fact confirmed by several projects gains at most one place per extra project. Only the order changes, never the set of facts._spongram.promotedcounts the facts that moved.
Note
The desktop engine also answers the name search_facts with the same handler. The name is not
listed by tools/list, and read scoping, re-ranking and the search cache do not apply to it.
Use search_memory_facts.
search_memory_nodes¶
An alias of search_nodes listed by the desktop edition only, with the same arguments and result.
Read scoping applies to it and the scope argument is accepted, but re-ranking, truncation by the
search pipeline and the search cache do not. A server deployment
does not list it and forwards a call to it unchanged to Graphiti.
Cloud permission: memory.read.
Episodes and facts management¶
get_episodes¶
Returns the most recent episodes of the brain.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
max_episodes |
integer | no | 10 |
Number of episodes. A server deployment clamps it to the range 1 to 500. |
last_n |
integer | no | 10 |
Older name of the same argument, read when max_episodes is absent. This is the name in the desktop schema. |
Both names are accepted by both editions.
On a server deployment Spongram answers this tool itself from the graph, newest first: ordered by
created_at descending, episodes without a date last, the uuid breaking ties. The payload is
{"message": "...", "episodes": [...]}, present in content[0].text and in
structuredContent.result. Each episode carries uuid, name, content, created_at, source,
source_description and group_id.
The desktop edition selects the most recent episodes by valid_at and returns them as a bare JSON
list in content[0].text, in chronological order: the oldest of the selected episodes comes first.
Each one carries an additional valid_at.
Cloud permission: memory.read.
Note
Graphiti itself orders this tool by uuid, which is not chronological. Spongram's own answer is
controlled by SPONGRAM_EPISODES_CHRONO_ENABLED (on unless set to false, 0, no or off).
When the flag is off, or when the graph cannot be read, the call is forwarded to Graphiti and
the order is by uuid.
get_entity_edge¶
Returns one fact by its uuid.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
uuid |
string | yes | Uuid of the fact, as returned by search_memory_facts. |
Returns the fact with the fields listed under search_memory_facts. Cloud permission: memory.read.
On a server deployment the uuid must belong to the authenticated brain. See uuid ownership.
delete_episode¶
Deletes one episode and what that episode alone contributed.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
uuid |
string | yes | Uuid of the episode, as returned by get_episodes. |
Returns a confirmation message. Cloud permission: memory.delete.
What is removed:
- the episode;
- the facts that only this episode supported, and the entities that only this episode mentioned;
- facts confirmed by other episodes stay, and lose this episode from their
episodeslist.
Entity summaries are not recomputed by a delete: a summary can still reflect the removed episode until the entity is summarised again.
Behaviour on a server deployment:
- The uuid must belong to the brain (uuid ownership).
- The episode's rows in the ingestion queue are retired before the delete is sent, so the reconciler never writes back a memory you removed on purpose. If Graphiti answers that nothing was deleted and the episode is still in the graph, the rows are restored.
- The call is sent to Graphiti once and never retried: a second send would answer "not found" to a
delete that succeeded. If the connection drops, check with
get_episodesbefore calling again. - A delete waits for the episode currently being written to the same brain, for at most
SPONGRAM_DELETE_LOCK_WAIT_SECONDS(45 by default, set on thegraphiti-mcpservice). Past that it answersA memory of this brain is being written; nothing was deleted, retry in a momentand nothing is deleted. During a large import this refusal is frequent. - Two deletes of the same episode never overlap.
- The brain's search cache is cleared.
Behaviour in the desktop edition: before the delete, facts first stated by this episode and
confirmed by another one are re-attached to an episode that remains, so they survive. If that step
fails the delete is refused with isError: true (Could not protect corroborated facts, please
retry.). SPONGRAM_DELETE_KEEPS_CONFIRMED_FACTS=false disables the protection.
With the Cloud control plane, the three delete tools answer HTTP 409 on a brain that holds versioned sources: withdraw or correct those through the sources API instead.
delete_entity_edge¶
Deletes one fact by its uuid. The episodes that stated it are kept.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
uuid |
string | yes | Uuid of the fact. |
Returns a confirmation message. Cloud permission: memory.delete.
On a server deployment the uuid must belong to the brain (uuid ownership), the
call waits for a write in progress under the same rule as delete_episode, and the brain's search
cache is cleared.
clear_graph¶
Erases the whole brain: every episode, entity and fact. There is no undo.
This tool takes no argument other than the group arguments Spongram sets itself.
Returns a confirmation message. Cloud permission: memory.delete, brain.configure and
access.manage. The three together are held by an owner or administrator grant; a key that can
forget one episode (memory.delete alone) cannot erase the brain.
Behaviour on a server deployment:
- After a readable success, every row of the brain in the ingestion queue is retired, so nothing is replayed into the emptied brain.
- Without a readable success (an error answer, a dropped connection), the graph decides: rows are retired only when the brain held episodes before the call and holds none after, and then only the completed ones. A row still waiting is never abandoned on an uncertain outcome.
- The call waits for a write in progress under the same rule as
delete_episode, and the brain's search cache is cleared.
In the desktop edition the tool deletes every node of the single local brain.
Warning
clear_graph does not ask for confirmation. An agent should call it only on an explicit request
from the user. An operator erases a brain with the purge route of the admin API instead; see
admin API.
Uuid ownership¶
get_entity_edge, delete_entity_edge and delete_episode address an object by uuid, and Graphiti
resolves a uuid without looking at the brain it belongs to. On a server deployment Spongram
therefore checks, before forwarding, that the uuid exists in the authenticated brain:
| Situation | Answer |
|---|---|
| The uuid is in the brain | The call is forwarded. |
| The uuid is in another brain, or does not exist | HTTP 200, isError: true, {"error": "Episode <uuid> not found"} or {"error": "Entity edge <uuid> not found"}. The two cases are indistinguishable on purpose. |
| The graph cannot be read | HTTP 200, isError: true, Ownership check unavailable, please retry. Nothing is forwarded. |
The desktop edition has a single brain and performs no ownership check.
Personas and persona skills¶
These four tools exist only when SPONGRAM_PERSONAS_ENABLED is on. With the flag off they are not
listed and a call is answered as an unknown tool. They are served from Spongram's relational
storage. Their descriptions and messages are in French. See personas.
list_personas¶
Lists the personas defined on the brain and names the active one. No argument.
Returns {"active": "<slug or null>", "personas": [...]}. Each persona carries slug, name,
role (cut to 160 characters), voice (one line), skills (slugs) and active.
The tool description in tools/list also carries the list of persona slugs, so a client sees the
catalogue without calling the tool. Cloud permission: memory.read.
activate_persona¶
Makes one persona the active persona of the brain. It replaces the previously active one: a brain has at most one active persona.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
slug |
string | yes | Slug of the persona (lowercase letters, digits and hyphens, 2 to 40 characters). |
Returns the full persona block as plain text: role, voice, intent, rules, the memory rule
(persona=<slug>), the list of its skills and, when SPONGRAM_PERSONA_SUMMARY_ENABLED is on, the
summary of what the persona already knows. The agent is expected to adopt this block for the rest
of the conversation.
An unknown slug answers a JSON-RPC error -32602 whose message lists the known slugs.
Cloud permission: brain.configure and memory.read.
Activation is an agent action only. There is no HTTP route that activates a persona, and neither an import nor an installation from the marketplace activates one.
deactivate_persona¶
Deactivates the active persona. No argument.
Returns a plain-text message that says whether a persona was active. Cloud permission:
brain.configure and memory.read.
get_skill¶
Returns the full body of one persona skill: a SKILL.md document in the Agent Skills format,
attached to a persona.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
slug |
string | yes | Slug of the skill, as listed in the active persona's block. |
Returns the SKILL.md text. An unknown slug answers a JSON-RPC error -32602. Cloud permission:
memory.read.
Note
Persona skills and the skills of record_skill / recall_skill are two different stores.
get_skill reads the documents an operator or user attached to a persona. record_skill
writes snippets an agent verified, in the graph.
Project aliases¶
These three tools exist only when SPONGRAM_PROJECT_ALIASES_ENABLED is on. With the flag off they
are not listed and a call is answered as an unknown tool. An alias attaches one project= label to
a canonical project slug; it changes what a scoped search keeps and rewrites no episode. Their
descriptions and messages are in French. See project aliases.
list_project_aliases¶
Lists the alias groups of the brain and the project= labels found in it. No argument.
Returns:
{
"aliases": {"my-project": ["old-name", "web"]},
"projects": [{"project": "my-project", "episodes": 42, "canonical": "my-project"}],
"untagged": 3
}
aliases maps each canonical project to its aliases. projects lists up to 200 labels with their
episode count and the canonical project they resolve to. untagged counts the episodes without a
project= tag. projects and untagged are omitted when the graph cannot be read.
Cloud permission: memory.read.
set_project_alias¶
Creates an alias, or points an existing alias at another project.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
alias |
string | yes | The project= label to attach. Letters (either case), digits, -, _, .; 64 characters at most. |
|
project |
string | yes | The canonical slug. Lowercase letters, digits, -, _, .; 64 characters at most. |
Returns {"alias": "...", "project": "...", "previous": "<former target or null>"}.
Refused with a JSON-RPC error -32602 when:
- a value does not match its format;
aliasorprojectisglobalordesktop-inbox(reserved labels);aliasequalsproject;projectis itself an alias of another project (resolution has one level only);aliasalready has aliases of its own;- the brain already holds 200 aliases.
Cloud permission: brain.configure.
An agent should call this tool only at the user's request or with their explicit agreement, because it changes what every later scoped search returns. The alias table is cached for 60 seconds per process.
remove_project_alias¶
Removes an alias. Its episodes are no longer included in the searches of the canonical project.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
alias |
string | yes | The alias to remove. |
Returns {"alias": "...", "removed": true}; removed is false when the alias did not exist, so
the call is idempotent. Cloud permission: brain.configure.
Code map¶
The five code_map_* tools read the structural map of a codebase (files, classes, functions,
imports and calls) stored in the brain next to the memory graph. They are always listed. On a brain
with no ingested map they return empty results. A JSON-RPC error -32602 carries any failure, and
HTTP 503 is returned when the graph driver is not initialised. See
code map for how a map gets ingested.
The optional repo argument scopes a call to one ingested repository; omit it when the brain holds
a single repository.
Cloud permission for all five: memory.read.
code_map_query¶
Searches the code map and returns a relevant subgraph. Suited to structural questions: what a module contains, how parts connect.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
question |
string | yes | An identifier or a short question. | |
repo |
string | no | none | Scope to one ingested repository. |
mode |
string | no | bfs |
bfs expands breadth-first up to depth hops; dfs expands one hop. |
depth |
integer | no | 2 |
Number of hops, 1 to 6. |
token_budget |
integer | no | 2000 |
Approximate size limit of the rendered text. |
Returns {"text": "...", "nodes": [...], "edges": [...]}.
code_map_neighbors¶
Returns the direct neighbours of a symbol or file: callers, callees, imports, methods.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
label |
string | yes | Name of the symbol or path of the file. | |
relation_filter |
string | no | none | Keep one relation type only. |
repo |
string | no | none | Scope to one ingested repository. |
Returns {"neighbors": [...]}.
code_map_god_nodes¶
Returns the most connected nodes of the map, by graph degree: the central files and symbols.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
top_n |
integer | no | 10 |
Number of nodes. |
repo |
string | no | none | Scope to one ingested repository. |
Returns {"god_nodes": [...]}.
code_map_shortest_path¶
Returns the shortest path between two code nodes.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
source |
string | yes | Label of the starting node. | |
target |
string | yes | Label of the destination node. | |
max_hops |
integer | no | 8 |
Longest path considered. |
repo |
string | no | none | Scope to one ingested repository. |
Returns {"path": [...]}; the list is empty when no path exists.
code_map_stats¶
Returns the size of the code map. No argument.
Returns {"nodes": 0, "files": 0, "symbols": 0, "edges": 0, "episodes": 0} with the real counts.
Skills and reflection¶
record_skill and recall_skill keep runnable snippets in a namespace of their own (:Skill nodes
in the graph), apart from entities and facts: the background workers do not summarise or merge them.
Both are synthetic and always listed. They answer HTTP 503 when the graph driver is not
initialised, and a JSON-RPC error for an invalid call or a storage failure.
reflect_on_failure, the third agent-facing tool of this family, stores an ordinary episode and is
documented under Memory.
record_skill¶
Stores a verified snippet, command or operational pattern under a name.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
name |
string | yes | Slug that identifies the skill in the brain. Recording the same name again updates the skill. | |
body |
string | yes | The snippet, kept as is. | |
intent |
string | no | "" |
One line saying what the skill is for. recall_skill matches against it. |
language |
string | no | "" |
A free tag such as bash or python. Not validated. |
project |
string | no | "" |
Project slug. Links the skill to a :Project node. |
source_description |
string | no | Tags. The server adds tag=skill and a project= tag (project=<project>, or project=global without one). |
Returns {"uuid": "...", "name": "...", "language": "...", "project": "...", "status": "stored"}.
Missing name or body answers a JSON-RPC error -32602. With the Cloud control plane the same
case answers HTTP 422, and the write accepts an Idempotency-Key request header.
Cloud permission: memory.write. Refused with HTTP 402 in the desktop edition when its licence is
locked.
recall_skill¶
Looks up recorded skills by intent.
| Argument | Type | Required | Default | Meaning |
|---|---|---|---|---|
intent |
string | yes | What you are trying to do. Matched as a case-insensitive substring. | |
limit |
integer | no | 10 |
Number of skills, clamped to the range 1 to 50. |
Returns {"skills": [...], "count": N}. Each skill carries uuid, name, body, intent,
language, source_description, created_at and score. The score adds 3 for a match in the
name, 2 in the intent and 1 in the body; results are ordered by score, then by date. No match is a
successful answer with an empty list.
Matching is by substring, not by meaning: use a distinctive word of the skill's name or intent rather than a full sentence.
Cloud permission: memory.read.
Status¶
get_status¶
Reports whether the memory engine is running and connected to its graph database. No argument.
Returns {"status": "ok", "message": "..."}, or "status": "error" with the reason. On a server
deployment the answer comes from Graphiti; in the desktop edition from the embedded engine.
Cloud permission: memory.read.
Use it as a connectivity check from a client. For monitoring, use the HTTP health routes described in observability.
Tools Spongram does not expose¶
The Graphiti MCP server that Spongram runs offers more than Spongram lets through. Spongram keeps
the client-facing surface closed on purpose: each item below would bypass a guarantee the rest of
the product relies on. A newer Graphiti image never opens a tool or an argument by itself, because
the add_memory arguments are an allow-list.
Hidden tools are absent from tools/list. A call to one is answered with HTTP 200,
isError: true and the text Unknown tool: <name>, without reaching Graphiti. (With the Cloud
control plane in enforce mode, a tool that is not in the permission table answers HTTP 403
permission_denied first.)
| Hidden tool | Why it stays closed |
|---|---|
add_triplet |
Writes a fact synchronously, outside the ingestion queue and without an episode: no project= or client= tag, nothing the reconciler could replay, nothing in a brain export. Its node uuids are resolved without the brain's group. |
build_communities |
Starts a model job over the whole brain at a client's request. Community building belongs to the Dream worker. |
summarize_saga |
Addresses sagas, a notion Spongram does not manage. |
get_episode_entities |
Addresses an episode by uuid, without the brain's group. |
Arguments of add_memory that are removed before the call is queued, and dropped from its schema:
| Removed argument | Why it stays closed |
|---|---|
previous_episode_uuids, saga_previous_episode_uuid |
Would feed episodes named by uuid, possibly from another brain, into the extraction context. |
reference_time |
Parsed by Graphiti after Spongram has acknowledged the write: a malformed value would be retried without end by a queue that never drops an episode. |
saga, update_communities, excluded_entity_types, custom_extraction_instructions |
Change extraction in ways Spongram does not define or test. |
The search filters added by the same Graphiti version (edge_types, valid_at_*, invalid_at_*,
center_node_uuid, entity_types) are reads bounded to the brain and are forwarded.
The initialize instructions follow the same rule: when the upstream text presents a hidden tool or
a removed argument as available, Spongram serves a text that does not. See
client contract.
Permissions in the Cloud control plane¶
Every action listed on a row is required.
| Required actions | Tools |
|---|---|
memory.read |
search_nodes, search_memory_nodes, search_memory_facts, get_episodes, get_entity_edge, get_status, list_personas, get_skill, recall_skill, list_project_aliases, code_map_query, code_map_neighbors, code_map_shortest_path, code_map_god_nodes, code_map_stats |
memory.write |
add_memory, record_skill, reflect_on_failure |
memory.delete |
delete_episode, delete_entity_edge |
memory.delete, brain.configure, access.manage |
clear_graph |
brain.configure |
set_project_alias, remove_project_alias |
brain.configure, memory.read |
activate_persona, deactivate_persona |
A tool that is not in this table is refused with HTTP 403 for a key in enforce mode.