Skip to main content
Glama

memory_unshare

Revoke a memory share (#1088).

Drops one share target, or every share when all=true. Only the row's author, or an org admin who can read it, may revoke (the rule for sharing). Revoking only narrows who reads the row, so it is never held for a person, even under share_scope: review. When no share is left the row returns to visibility=private with its scope unchanged. Under share_scope: org_wide the targets are only recorded and any shared row is read by every member, so access ends when the last one goes. Revoking a target that is not shared is a no-op. A row you may not revoke answers unshared: false, reason: not_found, like a missing id.

Input Schema

NameRequiredDescriptionDefault
allNoRevoke every share of this memory (no target_scope)
memory_idYesmemory_items UUID to revoke a share on
target_idNoUUID of the team/project/user/agent; omit for org
target_scopeNoAudience to revoke: org, team, project, user, or agent. Omit with all=true to revoke every share of this memory.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: authorization rule (author or org admin who can read), no-op behavior for unshared targets, failure semantics ('unshared: false, reason: not_found'), and the effect on visibility/scope after the last share is revoked. This is unusually rich behavioral disclosure.

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?

Front-loaded with the core action, then layered with edge-case semantics; parameter names are backticked for scannability. It is somewhat long but nearly every sentence conveys distinct, non-redundant information about edge cases.

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?

Given a mutation tool with 4 params, full schema coverage, and an output schema (so return values need not be explained), the description still covers auth, scope interaction, no-op, and failure modes. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so baseline is 3. The description reinforces the all=true vs target behavior and the no-op case, but adds little parameter detail beyond what the schema already documents for memory_id, target_id, target_scope, and all.

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?

States a specific verb ('Revoke') and resource ('memory share') with issue reference #1088, and the tool name is unambiguous relative to the sibling list (no other *share* tool exists). An agent can immediately tell what this does.

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?

The description explains the two modes ('Drops one share target, or every share when all=true') which gives intra-tool usage guidance, but never names a sibling or states when to prefer this over an alternative such as memory_forget or memory_write_policy_set. Usage is implied rather than explicit.

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.