Skip to main content
Glama

Memory Grant

memory.grant

Grant another wallet time-bounded access to specified memory entries. Returns grant receipt; immutable consent row written. Compliance: GDPR Art. 7, 32. Cost $0.01 per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_idYesEntity whose memory the grant covers.
categoriesYesNon-empty list of categories the grantee may read.
expires_atNoOptional ISO 8601 expiry (max 730 days from now).
entity_typeYesEntity type of the granted memory.
grantee_didNoOptional DID stored for audit alongside the grantee wallet.
grantee_walletYes0x-prefixed wallet that will be allowed to read.
grantor_walletYes0x-prefixed owner wallet issuing the grant.
wallet_signatureYesEIP-191 signature of the grantor over the grant message.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNoTrue when the tool completed without a validation error.
toolNoTool name that produced this payload.
paymentNoSettlement receipt after x402 or sandbox payment.
grant_idNoUUID of the grant.
entity_idNoGranted entity.
categoriesNoGranted categories.
expires_atNoExpiry timestamp, if set.
granted_atNoUTC timestamp of the grant.
consent_hashNoSHA-256 of the canonical consent payload.
grantee_walletNoWallet that received access.
grantor_walletNoIssuing owner wallet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only indicate it is not read-only, not idempotent, and not destructive. The description adds real behavioral context: it writes an immutable consent row, returns a grant receipt, and carries compliance and cost implications. This fills in a fair amount beyond the annotations, though it could further disclose the effect of repeated grants or revocation.

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

Conciseness5/5

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

Three sentences convey the core action, the result (receipt and immutable row), compliance context, and cost. Every sentence contributes meaningful, non-obvious information. The most essential purpose is front-loaded, and there is no 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 fairly complex mutation tool with 8 parameters and an output schema, the description covers the key behavioral facts and financial/legal constraints. It is slightly light on prerequisites for the wallet_signature and any explicit pointer to revocation, but the output schema and thorough input schema compensate.

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 input schema already provides descriptions for all 8 parameters (100% coverage), so the baseline is 3. The description does not add parameter-level meaning beyond the schema; it only refers generically to 'specified memory entries.' Thus it neither hurts nor improves the agent's understanding of the parameters.

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 opens with a specific verb ('Grant'), the resource ('memory entries'), the recipient ('another wallet') and the scoping constraint ('time-bounded'). This clearly distinguishes it from siblings like memory.revoke (which removes access) and memory.write (which writes memory content). An agent can assign the tool's role immediately.

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?

The description clearly conveys when to use the tool: to give another wallet temporary, category-scoped access to memory entries. It does not explicitly name alternatives or state when not to use it, so it misses the full when-not guidance, but the intended context is unambiguous from the phrasing.

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