Skip to main content
Glama

Turn context

memory_turn_context
Read-onlyIdempotent

Prompt-submitted hook: open the pending turn and return recall for this turn.

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": {
      "session_id": "<session_id>",
      "prompt": "<prompt>",
      "platform": "<platform>"
    },
    "name": "memory_turn_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
turn_idNo
platformYes
session_idYes
agent_contextNo
parent_session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description's phrase "open the pending turn" reads like a state change, which sits in tension with readOnlyHint and leaves the agent unsure whether calling this mutates memory state or is a pure read; "return recall" also never says what recall contains or how large it is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no padding, and the hook trigger is front-loaded. It is concise to the point of under-specification, however, and the "open... and return..." construction compresses two distinct behaviors into one clause without separating them.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter hook with zero schema descriptions and no output schema, the description should explain the required identifiers, the meaning of agent_context, and the shape of the returned recall. It covers none of these, leaving an agent unable to construct a correct call or interpret the result with confidence.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across six parameters, so the description carries the full burden and adds essentially nothing. It only alludes to "this turn" (turn_id) and "prompt" implicitly; session_id, platform, agent_context (the one enum) and parent_session_id are entirely unexplained in both schema and prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Open the pending turn and return recall for this turn" gives a verb pair (open/return) and a resource (turn context), so the general intent is graspable. But the jargon ("pending turn", "recall") is undefined and nothing distinguishes it from siblings like memory_capture_turn or memory_session_boundary, which plausibly also touch turns.

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

Usage Guidelines2/5

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

"Prompt-submitted hook" implies it fires automatically when a prompt arrives, which is a hint of when it runs. There is no guidance on when an agent should call it versus memory_capture_turn or memory_search, no prerequisites (does a session must exist first?), and no statement of what happens if invoked outside a hook flow.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.