Skip to main content
Glama
Cloto-dev

CPersona

Official
by Cloto-dev

recall_with_context

Read-only

Merge stored memories with conversation history: recall relevant entries, deduplicate, sort chronologically, and return a unified list filtered by external context.

Instructions

Recall memories and merge with external conversation context. Automatically deduplicates, sorts chronologically, and returns a unified list. Replaces separate recall + manual merge in the caller. Content is preview-tiered by default — see recall's full_content / get_contents (full_content shares recall's 200k-char response budget, bug-211). Every external_context entry's content filters the recall (the caller already holds that text), but only role=user / role=assistant entries are merged into messages. When entries of other roles are present the response carries context_filter_only={roles:[...]} — those entries filtered the recall without appearing in the output, whether or not they dropped a memory this time. gate_fallback=true (absent otherwise) is forwarded from the underlying recall: every candidate fell below the quality gate and the below-gate lexical matches were returned instead of an empty result — treat them as low-confidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deepNoDeep recall — same semantics as in `recall`: halves the quality gate so weaker matches are admitted.
limitNoPer-retriever search depth for the underlying recall, not a pure response cap — same semantics as recall's limit: lowering it shrinks the candidate pool itself, not just the rows returned. (Agent-facing cap; the library layer accepts up to the scan window for direct callers.)
queryYesSearch query
channelNoMemory channel filter
agent_idYesAgent ID
source_idNov2.4.20 per-user source filter — passed through to recall. Same semantics as in `recall`.
project_idNov2.4.17 γ filter — passed through to recall. Same semantics as in `recall`. v2.5.1: pass '@auto' to resolve this agent's default from the server's operating context (the resolution is echoed as resolved_project_id; an unmapped agent yields operating_context_warning). bug-186: resolution requires a configured operating context. With none — the default, and equally the outcome of a sidecar that fails to parse — the sentinel is NOT resolved: it is stored and filtered as the literal project_id '@auto', resolved_project_id echoes '@auto', and no warning is raised. Read resolved_project_id before relying on the resolution.
session_keyNoOpaque session identity you declare — a partition hint, NOT authentication. It scopes this process's per-session state: the degraded-recall advisory's "already told you" memory, and which no-persist pause applies to this call. It does NOT filter stored data (use agent_id / project_id / channel for that), and it never reaches the database. Omit it to share one bucket with every other caller that omits it, which is the behaviour that predates this parameter.
full_contentNov2.5.0 preview tier opt-out — same semantics as in `recall`.
external_contextNoConversation history entries [{role, name?, user_id?, content, timestamp?}, ...]

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv2.5.10
    • changedInput schema / properties / limit / description
      Previous value: -"Per-retriever search depth for the underlying recall, not a pure response cap — same semantics as recall's limit (CSC #716): lowering it shrinks the candidate pool itself, not just the rows returned. (Agent-facing cap; the library layer accepts up to the scan window for direct callers.)"New value: +"Per-retriever search depth for the underlying recall, not a pure response cap — same semantics as recall's limit: lowering it shrinks the candidate pool itself, not just the rows returned. (Agent-facing cap; the library layer accepts up to the scan window for direct callers.)"
    • addedInput schema / properties / session_key
      Added value: +{
      +  "default": "",
      +  "description": "Opaque session identity you declare — a partition hint, NOT authentication. It scopes this process's per-session state: the degraded-recall advisory's \"already told you\" memory, and which no-persist pause applies to this call. It does NOT filter stored data (use agent_id / project_id / channel for that), and it never reaches the database. Omit it to share one bucket with every other caller that omits it, which is the behaviour that predates this parameter.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv2.5.6
    • changedInput schema / properties / deep / description
      Previous value: -"Disable time decay"New value: +"Deep recall — same semantics as in `recall`: halves the quality gate so weaker matches are admitted."
  3. Changed1 schema field changedv2.5.4
    • changedInput schema / properties / limit / description
      Previous value: -"Max recalled memories (agent-facing cap; the library layer accepts up to the scan window for direct callers)"New value: +"Per-retriever search depth for the underlying recall, not a pure response cap — same semantics as recall's limit (CSC #716): lowering it shrinks the candidate pool itself, not just the rows returned. (Agent-facing cap; the library layer accepts up to the scan window for direct callers.)"
  4. Addedv2.5.2
  5. Removedv2.5.1
  6. Changed2 schema fields changedv2.4.34
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "v2.4.17 γ filter — passed through to recall. Same semantics as in `recall`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / source_id
      Added value: +{
      +  "default": "",
      +  "description": "v2.4.20 per-user source filter — passed through to recall. Same semantics as in `recall`.",
      +  "type": "string"
      +}
  7. Addedv2.4.10

TDQS

A4.6/5.0
Behavior5/5

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

With readOnlyHint=true already covering the safety profile, the description adds substantial behavioral detail beyond annotations: deduplication, chronological ordering, preview-tiering, external_context filtering semantics, role-based merging, context_filter_only behavior, and gate_fallback low-confidence signaling. This is rich context that an agent needs to interpret the response correctly.

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?

The description is dense and long but almost every sentence earns its place given the absence of an output schema and the tool's intricate return semantics. It front-loads the core purpose before diving into caveats. It could be tightened with bullet points, but the structure is effective for the complexity.

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?

Given 10 parameters, no output schema, and several non-obvious response behaviors, the description covers dedup, ordering, preview tiers, filtering semantics, context_filter_only, and gate_fallback. It also cross-references sibling tools and known caveats like bug-211, making it about as complete as an agent needs for correct invocation and interpretation.

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 baseline is 3, but the description adds meaning beyond the schema: it explains how external_context entries filter the recall and which roles are merged into messages, and it clarifies the full_content response-budget implication. This goes beyond simply restating parameter descriptions.

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-resource pair: 'Recall memories and merge with external conversation context.' It further clarifies the value-add—deduplication, chronological sorting, and a unified list—and explicitly distinguishes itself from 'separate recall + manual merge,' making its purpose unambiguous relative to siblings like recall.

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 states it replaces the separate recall-plus-merge workflow and references recall, full_content, and get_contents for alternative behavior. It does not provide an explicit 'use this when external_context is present, use recall otherwise' rule, but the merge focus and references make the intended usage context clear.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cloto-dev/CPersona'

If you have feedback or need assistance with the MCP directory API, please join our Discord server