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

@saihm/mcp-server-pro

Official

Share

saihm_share

Grant another agent scoped read, write, or readwrite access to a single memory cell by passing its identity record file and pinned agent ID hash.

Instructions

Grant one other agent access to a single memory cell, named by cellId. Identify the recipient by the identity record file their identity-record command wrote: pass its path, in full, as recipientRecordFile (a relative path is read from the server's working directory), and the server reads the record and agent ID from it (no need to open the file). Or pass their recipientRecord with their recipientPinnedAgentIdHashHex, pinned out-of-band. With the file, pass recipientPinnedAgentIdHashHex too when the user has the agent ID from their colleague another way: it must match the agent ID in the file. Set scope to 'read', 'write' or 'readwrite'. Only that one cell is exposed, and sharing re-wraps its key rather than copying the memory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cellId": "<cellId>"
    },
    "name": "saihm_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoAccess scope (blank or "default" = read)
cellIdYesThe cell to share
expiryEpochNoOptional expiry in whole HOURS since the UNIX epoch (decimal string), not seconds: floor(unix_ms / 3600000). Example: "498192" is 2026-11-01 00:00 UTC. Blank = no expiry
recipientRecordNoThe grantee's published identity record (hex fields). Required unless recipientRecordFile is given
recipientRecordFileNoThe path of the grantee's identity record file, the JSON that identity-record writes, in full: a relative path is read from the server's working directory. The server reads recipientRecord and the agent ID from it. Instead of recipientRecord, not with it
recipientPinnedAgentIdHashHexNoThe grantee's agentIdHash (hex), pinned out-of-band. Required with recipientRecord; with recipientRecordFile, optional: the out-of-band check of the file, which must name the same agent ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.0
    • changedInput schema / properties / scope / description
      Previous value: -"Access scope (blank = read)"New value: +"Access scope (blank or \"default\" = read)"
    • changedInput schema / properties / scope / enum
      Previous value: -[
      -  "",
      -  "read",
      -  "write",
      -  "readwrite"
      -]New value: +[
      +  "default",
      +  "read",
      +  "write",
      +  "readwrite"
      +]
  2. Changed4 schema fields changedv0.14.3
    • changedInput schema / properties / recipientPinnedAgentIdHashHex / description
      Previous value: -"The grantee's agentIdHash (hex), pinned out-of-band"New value: +"The grantee's agentIdHash (hex), pinned out-of-band. Required with recipientRecord; with recipientRecordFile, optional: the out-of-band check of the file, which must name the same agent ID"
    • changedInput schema / properties / recipientRecord / description
      Previous value: -"The grantee's published identity record (hex fields)"New value: +"The grantee's published identity record (hex fields). Required unless recipientRecordFile is given"
    • addedInput schema / properties / recipientRecordFile
      Added value: +{
      +  "description": "The path of the grantee's identity record file, the JSON that identity-record writes, in full: a relative path is read from the server's working directory. The server reads recipientRecord and the agent ID from it. Instead of recipientRecord, not with it",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "cellId",
      -  "recipientRecord",
      -  "recipientPinnedAgentIdHashHex"
      -]New value: +[
      +  "cellId"
      +]
  3. Changed4 schema fields changedv0.14.1
    • changedInput schema / properties / expiryEpoch / description
      Previous value: -"Optional expiry as a UNIX-epoch count (decimal string)"New value: +"Optional expiry in whole HOURS since the UNIX epoch (decimal string), not seconds: floor(unix_ms / 3600000). Example: \"498192\" is 2026-11-01 00:00 UTC. Blank = no expiry"
    • changedInput schema / properties / expiryEpoch / pattern
      Previous value: -"^[0-9]+$"New value: +"^$|^[0-9]+$"
    • changedInput schema / properties / scope / description
      Previous value: -"Access scope (default read)"New value: +"Access scope (blank = read)"
    • changedInput schema / properties / scope / enum
      Previous value: -[
      -  "read",
      -  "write",
      -  "readwrite"
      -]New value: +[
      +  "",
      +  "read",
      +  "write",
      +  "readwrite"
      +]
  4. First observedv0.2.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered structurally. The description adds real behavior beyond that: only the one cell is exposed, and sharing re-wraps the cell's key rather than copying the memory — a meaningful distinction for an agent reasoning about blast radius. It says nothing about what a second share of the same cell does (important given idempotentHint=false) or how failure surfaces.

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?

The first sentence is front-loaded and crisp, but the middle sentences are long and compound, packing file paths, out-of-band verification and matching semantics into single clauses that take effort to parse. Little is outright waste, but the density costs readability.

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

Completeness3/5

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

This is a six-parameter, nested-object, cryptographic mutation tool with no output schema, so the description carries responsibility for the result contract — yet it says nothing about what a successful share returns or how the grant is identified for later revocation. The recipient identification logic is handled well; the return value and expiry parameter are the notable holes.

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?

Schema coverage is 100%, so every parameter is already documented in the schema, including the relative-path resolution rule, the file/record exclusivity, and the match requirement between the pinned hash and the file. The description restates much of that rather than adding new meaning, so the baseline 3 applies. It notably never mentions the expiryEpoch parameter at all.

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 opening sentence states a specific verb and resource with scope: 'Grant one other agent access to a single memory cell, named by cellId.' That is far more precise than the title 'Share'. It never names saihm_revoke_share as the way to undo a grant, so sibling differentiation is left implicit.

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

Usage Guidelines3/5

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

It does distinguish between the two ways to name a recipient (record file vs. inline recipientRecord plus pinned hash), which is genuine usage guidance for a required choice. But there is no when-to-use-this-tool framing against alternatives, no statement of prerequisites (e.g., whether the recipient must already be a joined agent), and no guidance on when to bother with expiry.

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