Skip to main content
Glama

Get Observation Details

get_observations
Destructive

Fetch complete details for existing observation, memory, or session-summary records by ID, while logging last-access metadata for each returned row.

Instructions

Fetch full details for explicit IDs and record last-accessed metadata for returned memory or observation rows. Use after search, not for discovery; prompt-time anchors may also direct this exact lookup. Pass selected IDs and the exact source from the result. source defaults to 'memory'; source='memory' returns curated memory details and requires its access update to succeed, source='observation' returns current extracted observations and records its access update best-effort (a failed update is logged but details still return), and source='session_summary' returns exact safe session-summary rows without confusing their IDs with observation IDs. Unsupported sources, any missing requested ID, detail-read failures, or memory access-update failures return a tool error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesList of observation IDs to fetch
sourceNoSource type: 'memory', 'observation', or 'session_summary' (default: 'memory')
projectNoProject name filter
include_suppressedNoInclude policy-suppressed memories (default false)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.90
    • changedInput schema / properties / source / description
      Previous value: -"Source type: 'memory' or 'observation' (default: 'memory')"New value: +"Source type: 'memory', 'observation', or 'session_summary' (default: 'memory')"
    • changedOutput schema / $defs / DetailOutput / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/MemoryDetailOutput"
      -  },
      -  {
      -    "$ref": "#/$defs/ObservationDetailOutput"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/MemoryDetailOutput"
      +  },
      +  {
      +    "$ref": "#/$defs/ObservationDetailOutput"
      +  },
      +  {
      +    "$ref": "#/$defs/SessionSummaryDetailOutput"
      +  }
      +]
    • addedOutput schema / $defs / SessionSummaryDetailOutput
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "completed": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "created_at_epoch": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "decisions": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "id": {
      +      "format": "int64",
      +      "type": "integer"
      +    },
      +    "learned": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "memory_session_id": {
      +      "type": "string"
      +    },
      +    "next_steps": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "preferences": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "project": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "request": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "memory_session_id",
      +    "created_at",
      +    "created_at_epoch"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv0.6.78
    • addedOutput schema / $defs / MemoryDetailOutput / properties / classification
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MemoryDetailOutput / properties / classification_reason
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MemoryDetailOutput / properties / current_context_eligible
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / $defs / MemoryDetailOutput / required
      Previous value: -[
      -  "id",
      -  "project",
      -  "title",
      -  "text",
      -  "memory_type",
      -  "created_at_epoch",
      -  "updated_at_epoch",
      -  "status",
      -  "scope"
      -]New value: +[
      +  "id",
      +  "project",
      +  "title",
      +  "text",
      +  "memory_type",
      +  "created_at_epoch",
      +  "updated_at_epoch",
      +  "status",
      +  "scope",
      +  "classification",
      +  "classification_reason",
      +  "current_context_eligible"
      +]
  3. Changed1 schema field changedv0.6.45
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "CompressedObservationSourceOutput": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "compressed_observation_id": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "compression_session_id": {
      +          "type": "string"
      +        },
      +        "created_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "source_created_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "source_hash": {
      +          "type": "string"
      +        },
      +        "source_observation_id": {
      +          "format": "int64",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "compressed_observation_id",
      +        "source_observation_id",
      +        "source_hash",
      +        "source_created_at_epoch",
      +        "compression_session_id",
      +        "created_at_epoch"
      +      ],
      +      "type": "object"
      +    },
      +    "DetailOutput": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/MemoryDetailOutput"
      +        },
      +        {
      +          "$ref": "#/$defs/ObservationDetailOutput"
      +        }
      +      ]
      +    },
      +    "MemoryDetailOutput": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "branch": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "created_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "files": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "memory_type": {
      +          "type": "string"
      +        },
      +        "project": {
      +          "type": "string"
      +        },
      +        "scope": {
      +          "type": "string"
      +        },
      +        "session_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "temporal_facts": {
      +          "items": {
      +            "$ref": "#/$defs/MemoryTemporalFactOutput"
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "text": {
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "topic_key": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "topic_trace": {
      +          "items": {
      +            "$ref": "#/$defs/TopicTraceOutput"
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "updated_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "project",
      +        "title",
      +        "text",
      +        "memory_type",
      +        "created_at_epoch",
      +        "updated_at_epoch",
      +        "status",
      +        "scope"
      +      ],
      +      "type": "object"
      +    },
      +    "MemoryTemporalFactOutput": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "confidence": {
      +          "format": "double",
      +          "type": "number"
      +        },
      +        "learned_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "object": {
      +          "type": "string"
      +        },
      +        "predicate": {
      +          "type": "string"
      +        },
      +        "project": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "subject": {
      +          "type": "string"
      +        },
      +        "valid_from_epoch": {
      +          "format": "int64",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "valid_to_epoch": {
      +          "format": "int64",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "project",
      +        "subject",
      +        "predicate",
      +        "object",
      +        "learned_at_epoch",
      +        "confidence",
      +        "status"
      +      ],
      +      "type": "object"
      +    },
      +    "ObservationDetailOutput": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "branch": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "commit_sha": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "compressed_sources": {
      +          "items": {
      +            "$ref": "#/$defs/CompressedObservationSourceOutput"
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "concepts": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "content_session_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "created_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "discovery_tokens": {
      +          "format": "int64",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "facts": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "files_modified": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "files_read": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "last_accessed_epoch": {
      +          "format": "int64",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "memory_session_id": {
      +          "type": "string"
      +        },
      +        "narrative": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "project": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "subtitle": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "title": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "memory_session_id",
      +        "type",
      +        "created_at",
      +        "created_at_epoch",
      +        "status"
      +      ],
      +      "type": "object"
      +    },
      +    "TopicTraceOutput": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "covered_from_event_id": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "covered_to_event_id": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "created_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "evidence_event_ids": {
      +          "items": {
      +            "format": "int64",
      +            "type": "integer"
      +          },
      +          "type": "array"
      +        },
      +        "files": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "segment_index": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "summary": {
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "topic_key": {
      +          "type": "string"
      +        },
      +        "updated_at_epoch": {
      +          "format": "int64",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "topic_key",
      +        "title",
      +        "summary",
      +        "status",
      +        "segment_index",
      +        "covered_from_event_id",
      +        "covered_to_event_id",
      +        "evidence_event_ids",
      +        "created_at_epoch",
      +        "updated_at_epoch"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "details": {
      +      "items": {
      +        "$ref": "#/$defs/DetailOutput"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "details"
      +  ],
      +  "title": "ObservationDetailsOutput",
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The description fully discloses side effects: it records last-accessed metadata, requires memory access updates to succeed, treats observation updates as best-effort, and enumerates exact failure conditions. This goes well beyond the annotations and does not contradict them; destructiveHint=true is not directly contradicted because the described mutation is a metadata update.

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 description is dense but every sentence earns its place: purpose, usage rule, source-specific semantics, and error behavior. It is front-loaded with the core action and avoids filler or redundancy.

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?

The description is complete for a retrieval-with-side-effect tool: it explains usage context, ID provenance, source disambiguation, side effects, and error conditions. An output schema exists, so return-value details do not need to be repeated in the description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 parameters. The description adds significant semantic value for the source parameter by explaining the exact behavior and failure modes for each source value, while ids, project, and include_suppressed remain adequately covered by the schema.

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 states a specific verb and resource: 'Fetch full details for explicit IDs' and immediately distinguishes the tool from discovery. It also clarifies that it can return memory, observation, or session-summary rows, preventing confusion with similarly named sibling tools.

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

Usage Guidelines5/5

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

The description explicitly says 'Use after search, not for discovery' and instructs callers to pass selected IDs and the exact source returned by search. It also mentions prompt-time anchors as another valid trigger, giving clear when-to-use guidance.

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