Skip to main content
Glama

Record what you learned for the next agent

domain_remember

Store a site-specific lesson—selectors, endpoints, fixes, or dead ends—so the next agent skips rediscovery. Use url:"*" for lessons that apply to any site.

Instructions

Write down something that will save the next agent time on this site. Re-using an existing title overwrites that lesson, so correcting yourself is cheap and duplicates do not pile up.

Write for a stranger who has none of your context. Be specific and concrete: real selectors, real endpoints, real error strings. "The dashboard is slow" helps nobody; "GET /api/v1/stats returns the same numbers the dashboard renders, no UI needed" saves ten minutes.

Pass url:"*" for a lesson that holds on any site — how SPAs are usually built, where to look first on an unfamiliar dashboard. Those are what make the first visit to an unknown site fast.

Credentials are stripped automatically before anything is written, so never paste a token to "make the snippet complete" — write the snippet as it should be run, without secrets.

Kinds, most valuable first:

  • fast-path — a snippet that gets the data directly (internal API, fetch) instead of driving the UI

  • recipe — the ordered steps that achieved a goal, so the next agent replays instead of re-deriving

  • fix — a symptom the agent will actually observe, paired with what resolves it

  • dead-end — something that looks like it should work but does not — the wrong turn nobody documents

  • auth — how sessions, logins and tokens behave on this site

  • landmark — selectors, routes and URLs that stay stable

  • fact — durable knowledge that prevents a wrong assumption

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": {
      "url": "<url>",
      "kind": "<kind>",
      "title": "<title>",
      "gist": "<gist>"
    },
    "name": "domain_remember"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL or domain this applies to. Use the apex domain if it holds across subdomains, or "*" if it holds on any site anywhere.
bodyNoThe full explanation: what to do, what to watch out for, why.
gistYesOne line stating the payoff. This is all the next agent sees before deciding to open it.
kindYesWhich kind of lesson this is.
tagsNoWords that help this surface for a related goal.
titleYesShort, specific, and stable — it is the identity of this lesson.
snippetNoRunnable JS (a fetch against the internal API, a Playwright sequence). The single biggest time-saver.
triggerNoFor kind=fix: the symptom as the next agent will observe it — literal error text or URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/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 disclose two important behaviors: title-keyed overwrite (safe self-correction, no duplicate pile-up) and automatic credential stripping before write. It says nothing about who can write, whether writes are visible to other users, or what a successful call returns.

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?

The core instruction and the overwrite behavior are front-loaded, and the kinds are a scannable ordered list rather than prose. The contrastive example ('The dashboard is slow' vs. the API endpoint lesson) is concrete and earns its space by showing specificity, not just asserting it.

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 an eight-parameter write tool with no annotations and no output schema, the description covers the things that actually change agent behavior: overwrite semantics, credential redaction, universal-scope url, and kind selection. The remaining gap is the response side — nothing tells the agent what confirmation or identifier comes back.

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 the schema already documents all eight parameters, setting the baseline at 3. The description does add real meaning beyond the schema for url:"*" and for the kind enum, explaining what each kind is worth and when to prefer it; that is genuine added semantics but it leaves tags, trigger, and snippet largely to the schema.

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 gives a concrete verb and resource: record a durable lesson for the next agent working on this site. It makes the upsert nature explicit ('Re-using an existing title overwrites that lesson'), which clarifies the write semantics. It does not differentiate itself from adjacent memory tools like domain_curate or procedure_save, so it falls short of a 5.

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 clear conditions for writing ('something that will save the next agent time'), guidance on the universal case via url:"*", and a value-ordered taxonomy of kinds that tells the agent what to prefer. It offers no explicit exclusions or pointer to a sibling when this tool is the wrong choice, so it stops short of a 5.

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