Skip to main content
Glama

get_memory_by_id

Fetch a single memory's detailed content by ID to inspect stored context and reuse it across AI coding sessions.

Instructions

根据 ID 获取单条记忆的详细内容

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": {
      "id": "<id>"
    },
    "name": "get_memory_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes要查询的记忆 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about what 'detailed content' includes, what happens when the ID does not exist, or whether the read can fail or leak cross-project data. Only the read-only nature is weakly implied by '获取'.

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?

One short sentence with the resource and lookup key front-loaded and no filler. It is efficient, though the terseness leaves no room for behavioral or usage context.

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?

For a single-parameter read tool with a fully documented schema and no output schema, the definition is minimally sufficient to call correctly. It stops short of describing the returned detail level or the not-found behavior, which an agent would want before committing to this tool.

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 single parameter has 100% schema description coverage ('要查询的记忆 ID'), so the schema already defines it fully. The description adds no format, range, or sourcing detail beyond restating that lookup is keyed on the ID, which is the expected baseline when coverage is high.

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 description states a specific verb and resource: retrieve a single memory's detailed content by ID. This contrasts implicitly with list-style siblings such as get_memories and search_memories, but no sibling is named, so differentiation depends on the reader inferring it from the singular '单条' framing.

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?

Usage is only implied: the '根据 ID' phrasing signals it is the right tool when an exact ID is already known, and by omission it is not for browsing or querying. There is no explicit when-not guidance or named alternative such as search_memories for cases where the ID is unknown.

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