Skip to main content
Glama
@saihm/mcp-server-pro

@saihm/mcp-server-pro

Official

Recall

saihm_recall
Read-onlyIdempotent

Retrieves and decrypts your SAIHM memories at session start or whenever past context is needed; filter by keyword, load all memories, or read a shared cell.

Instructions

Retrieve your memories from SAIHM and decrypt them in this process; the server never sees plaintext. Use this at the start of a session, or whenever past context is needed. Pass query to filter by keyword, or omit it to load everything. Pass cellId alone to read one of your own cells. To read a single cell another agent shared with you, pass their agent ID as sharerPinnedAgentIdHashHex together with the cellId, taking that ID from your user, not from a shared pointer; that path is read-only. Pass listOnly to list your cells' versions without their content. In the text, each further line of one of your memories starts with " | ": that mark is display only, not part of the memory, so leave it out when you copy a memory to save it again. Pass sharesOnly to list every pointer shared with you, a page at a time, where the endpoint offers it. With warmStart "latest", it instead restores the newest encrypted warm-start snapshot into the payload file named by token; "list" lists them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "saihm_recall"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoWith listOnly or sharesOnly: the next value of the previous page.
queryNoFilter your OWN memories by keyword (empty = all). Ignored when reading one cell by cellId.
tokenNoWith warmStart: 16 to 32 characters from a-z and 0-9, chosen at random for this call. It names the payload file. Blank otherwise.
cellIdNoThe cell id to read: alone, one of your own cells; with the sharer fields, the shared cell (required then).
listOnlyNoList your own cells' versions (cellId, seq, commitment) without reading any content. Pages: pass the answer's next as after until next is null.
warmStartNo"latest" restores the newest snapshot into warm-start/latest-<token>.bin (read it, then remove it); "list" lists snapshots. Only token goes with it. Leave it blank, or "default", to recall memories.
sharesOnlyNoList every pointer shared with you, a page at a time and never cut, without reading any memory. Pages: pass the answer's next as after until next is null. Answers shares_paging_unsupported where the endpoint does not offer it: then recall without it.
shareEntriesNoWith the share events feed on, also return every entry of the share map; without it, only its summary.
sharerRecordNoOptional, and not needed: the SHARER's identity record (hex fields). Without it, the key that comes with the memory is checked against the agent ID; given, it must match that key.
sharerPinnedAgentIdHashHexNoRead a cell shared TO you: the SHARER's agent ID (agentIdHash, 64 lowercase hex), pinned out-of-band, as your user gave it. When set, cellId is also required.

Output Schema

NameRequiredDescriptionDefault
asOfNo
nextNo
cellsNo
countNo
errorNo
foundNo
totalNo
sharedNo
timingNo
memoriesNo
servedByNo
snapshotNo
snapshotsNo
sharedKeptNo
shareStatesNo
sharedSkippedNo
sharedTruncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.0
    • changedInput schema / properties / warmStart / description
      Previous value: -"\"latest\" restores the newest snapshot into warm-start/latest-<token>.bin (read it, then remove it); \"list\" lists snapshots. Only token goes with it. Leave it blank to recall memories."New value: +"\"latest\" restores the newest snapshot into warm-start/latest-<token>.bin (read it, then remove it); \"list\" lists snapshots. Only token goes with it. Leave it blank, or \"default\", to recall memories."
    • changedInput schema / properties / warmStart / enum
      Previous value: -[
      -  "",
      -  "latest",
      -  "list"
      -]New value: +[
      +  "default",
      +  "latest",
      +  "list"
      +]
  2. Changed4 schema fields changedv0.14.3
    • changedInput schema / properties / sharerPinnedAgentIdHashHex / description
      Previous value: -"Read a cell shared TO you: the SHARER's agentIdHash (hex), pinned out-of-band. When set, sharerRecord and cellId are also required."New value: +"Read a cell shared TO you: the SHARER's agent ID (agentIdHash, 64 lowercase hex), pinned out-of-band, as your user gave it. When set, cellId is also required."
    • changedInput schema / properties / sharerRecord / description
      Previous value: -"The SHARER's published identity record (hex fields). Required with sharerPinnedAgentIdHashHex."New value: +"Optional, and not needed: the SHARER's identity record (hex fields). Without it, the key that comes with the memory is checked against the agent ID; given, it must match that key."
    • addedOutput schema / properties / memories / items / properties / owner
      Added value: +{
      +  "const": "another-agent",
      +  "type": "string"
      +}
    • addedOutput schema / properties / memories / items / properties / sharer
      Added value: +{
      +  "type": "string"
      +}
  3. Changed8 schema fields changedv0.14.1
    • changedInput schema / properties / after / description
      Previous value: -"With listOnly: the next value of the previous page."New value: +"With listOnly or sharesOnly: the next value of the previous page."
    • addedInput schema / properties / sharesOnly
      Added value: +{
      +  "description": "List every pointer shared with you, a page at a time and never cut, without reading any memory. Pages: pass the answer's next as after until next is null. Answers shares_paging_unsupported where the endpoint does not offer it: then recall without it.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / token / description
      Previous value: -"With warmStart: 16 to 32 characters from a-z and 0-9, chosen at random for this call. It names the payload file."New value: +"With warmStart: 16 to 32 characters from a-z and 0-9, chosen at random for this call. It names the payload file. Blank otherwise."
    • changedInput schema / properties / token / pattern
      Previous value: -"^[a-z0-9]{16,32}$"New value: +"^$|^[a-z0-9]{16,32}$"
    • changedInput schema / properties / warmStart / description
      Previous value: -"\"latest\" restores the newest snapshot into warm-start/latest-<token>.bin (read it, then remove it); \"list\" lists snapshots. Only token goes with it."New value: +"\"latest\" restores the newest snapshot into warm-start/latest-<token>.bin (read it, then remove it); \"list\" lists snapshots. Only token goes with it. Leave it blank to recall memories."
    • changedInput schema / properties / warmStart / enum
      Previous value: -[
      -  "latest",
      -  "list"
      -]New value: +[
      +  "",
      +  "latest",
      +  "list"
      +]
    • addedOutput schema / properties / sharedSkipped
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "type": "number"
      +}
  4. Changed17 schema fields changedv0.13.0
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "With listOnly: the next value of the previous page.",
      +  "type": "string"
      +}
    • changedInput schema / properties / cellId / description
      Previous value: -"The shared cell id to read. Required when reading a shared cell."New value: +"The cell id to read: alone, one of your own cells; with the sharer fields, the shared cell (required then)."
    • addedInput schema / properties / listOnly
      Added value: +{
      +  "description": "List your own cells' versions (cellId, seq, commitment) without reading any content. Pages: pass the answer's next as after until next is null.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Filter your OWN memories by keyword (empty = all). Ignored when reading a shared cell."New value: +"Filter your OWN memories by keyword (empty = all). Ignored when reading one cell by cellId."
    • addedInput schema / properties / token
      Added value: +{
      +  "description": "With warmStart: 16 to 32 characters from a-z and 0-9, chosen at random for this call. It names the payload file.",
      +  "pattern": "^[a-z0-9]{16,32}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / warmStart
      Added value: +{
      +  "description": "\"latest\" restores the newest snapshot into warm-start/latest-<token>.bin (read it, then remove it); \"list\" lists snapshots. Only token goes with it.",
      +  "enum": [
      +    "latest",
      +    "list"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / asOf
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cells
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cellId": {
      +        "type": "string"
      +      },
      +      "commitment": {
      +        "type": "string"
      +      },
      +      "seq": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "cellId",
      +      "seq",
      +      "commitment"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "code": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "status"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / found
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / next
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / servedBy
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / sharedKept
      Added value: +{
      +  "enum": [
      +    "newest",
      +    "oldest"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / snapshot
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "bytes": {
      +          "type": "number"
      +        },
      +        "coversThrough": {
      +          "type": "string"
      +        },
      +        "createdAt": {
      +          "type": "string"
      +        },
      +        "snapshotId": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "snapshotId",
      +        "createdAt",
      +        "bytes",
      +        "coversThrough"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / snapshots
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bytes": {
      +        "type": "number"
      +      },
      +      "coversThrough": {
      +        "type": "string"
      +      },
      +      "createdAt": {
      +        "type": "string"
      +      },
      +      "snapshotId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "snapshotId",
      +      "createdAt",
      +      "bytes",
      +      "coversThrough"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / timing
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "admission": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "reserved",
      +            "shared"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "serverMs": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "totalMs": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "serverMs",
      +    "totalMs",
      +    "admission"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "count",
      -  "memories",
      -  "shared",
      -  "sharedTruncated"
      -]
  5. Changed4 schema fields changedv0.10.0
    • addedInput schema / properties / shareEntries
      Added value: +{
      +  "description": "With the share events feed on, also return every entry of the share map; without it, only its summary.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / memories / items / properties / commitment
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / memories / items / properties / grant
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / shareStates
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "asOf": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "complete": {
      +      "type": "boolean"
      +    },
      +    "counts": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "ended": {
      +          "type": "number"
      +        },
      +        "erased": {
      +          "type": "number"
      +        },
      +        "live": {
      +          "type": "number"
      +        },
      +        "stale": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "live",
      +        "stale",
      +        "ended",
      +        "erased"
      +      ],
      +      "type": "object"
      +    },
      +    "entries": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "cellId": {
      +            "type": "string"
      +          },
      +          "commitment": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "copiesInvalidBefore": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "endedAt": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "endedBy": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "event",
      +                  "reconciliation"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "expiryEpoch": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "grant": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "scope": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "senderVerified": {
      +            "type": "boolean"
      +          },
      +          "seq": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sharer": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "live",
      +              "stale",
      +              "ended",
      +              "erased"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "sharer",
      +          "cellId",
      +          "status",
      +          "grant",
      +          "scope",
      +          "expiryEpoch",
      +          "seq",
      +          "commitment",
      +          "senderVerified",
      +          "endedAt",
      +          "endedBy",
      +          "copiesInvalidBefore"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "since": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "startedAt": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "stopped": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "unsupported",
      +            "tier",
      +            "erased"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "since",
      +    "complete",
      +    "asOf",
      +    "stopped",
      +    "startedAt",
      +    "counts"
      +  ],
      +  "type": "object"
      +}
  6. Changed3 schema fields changedv0.2.2
    • addedOutput schema / properties / shared
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cellId": {
      +        "type": "string"
      +      },
      +      "expiryEpoch": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "scope": {
      +        "type": "string"
      +      },
      +      "sharer": {
      +        "type": "string"
      +      },
      +      "verified": {
      +        "const": false,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "sharer",
      +      "cellId",
      +      "scope",
      +      "expiryEpoch",
      +      "verified"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / sharedTruncated
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "count",
      -  "memories"
      -]New value: +[
      +  "count",
      +  "memories",
      +  "shared",
      +  "sharedTruncated"
      +]
  7. First observedv0.2.1

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint/idempotentHint it discloses a local side effect (warmStart writes warm-start/latest-<token>.bin and the file should be removed after reading), a security invariant (plaintext never reaches the server; shared path is read-only), and a specific failure mode (shares_paging_unsupported, then recall without it). The one detail it leaves implicit is the minor tension between readOnlyHint=true and warmStart writing a payload file to disk — it is disclosed, so not contradictory, but not reconciled either.

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

Conciseness4/5

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

It is front-loaded with purpose and timing before the mode enumeration, and nearly every clause carries operational content. It is dense and occasionally run-on (the ' | ' display-marker sentence and the paging instructions partly restate the schema), which costs a point but leaves little outright filler.

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

Completeness4/5

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

For a 10-parameter tool with a nested object and an output schema, the description covers the non-obvious paths, outputs convention, and error behavior, so an agent can call it correctly without guessing. The residual gaps (after, shareEntries, exact return shape) are adequately covered by the schema and output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description genuinely adds meaning on top: it explains which combinations are valid ('Pass cellId alone', 'with the sharer fields'), that query is ignored in single-cell reads, and the out-of-band provenance requirement for sharerPinnedAgentIdHashHex. It says nothing about after, shareEntries, or sharerRecord, deferring those entirely to the schema.

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

Purpose5/5

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

The description names a specific verb and resource (retrieve/decrypt memories) and enumerates the distinct operating modes — keyword filter, single-cell read, shared-cell read, listOnly, sharesOnly, warmStart — which lets an agent distinguish this from saihm_remember and saihm_forget without opening the schema. The local-decryption framing ('the server never sees plaintext') also tells the agent what class of operation this is.

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 an explicit trigger ('Use this at the start of a session, or whenever past context is needed') and then routes each parameter combination to a distinct task, including the important constraint that the sharer ID must come from your user rather than a shared pointer. It stops short of stating when to prefer a sibling (e.g. keeping context via saihm_remember instead), so it is strong but not exhaustive.

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