Skip to main content
Glama

pasm_context

Retrieve read-only cognitive context for the topic: long-term memories, emotion value, personality, and available actions. Call this first, then use recalled content as remembered facts in replies.

Instructions

取 PASM 认知上下文(只读,不写记忆)。返回:与当前话题相关的长期记忆、当前情绪值、人格、可用动作池。这是把 PASM 接进大模型提示词的首选工具 —— 先调它,再把 recalled 里的内容当作'你确实记得的事'写进回复。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNo最多返回几条记忆,默认 5
queryNo当前用户说的话/话题,用于检索相关记忆
agent_idNo智能体 id,默认 default。不同 id 记忆互相隔离default

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It explicitly states the operation is read-only and does not write memory, and it explains the intended downstream behavior of treating recalled content as 'things you actually remember'. This is meaningful transparency for a context-retrieval tool.

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 compact and well-structured: it front-loads the read-only nature and return payload, then provides a clear usage directive. Every sentence earns its place and there is no redundant prose.

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 tool with no output schema and no annotations, the description adequately covers the return contents and how to use them in a prompt. It could mention edge cases or output formatting, but the provided information is sufficient for correct invocation.

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 the baseline is 3. The description adds no new parameter-level detail beyond referencing the current topic; parameter semantics are already fully handled by the input 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 uses a specific verb ('取', get) with a clear resource ('PASM 认知上下文') and states it is read-only and does not write memory. It also lists the return payload, which distinguishes it from memory-writing sibling tools like pasm_save and pasm_feedback.

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 explicitly says this is the preferred tool for integrating PASM into an LLM prompt and to call it first. It gives clear context for when to use it, but it does not mention when not to use it or name alternative sibling tools for exclusion.

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