Skip to main content
Glama

log_session

Log session learnings for team reuse with outcome and turn counts, so evidence reports stay honest; entries remain pending until admin approval.

Instructions

Log what this session learned, for the team to reuse.

Call once at the end. The node starts PENDING and is invisible until an admin approves it - that gate is deliberate.

outcome ("succeeded", "partial", "failed") and turns are what make the team's evidence report possible. Say "failed" when it failed: a report nobody is honest in looks like data.

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": {
      "title": "<title>",
      "body": "<body>"
    },
    "name": "log_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
tagsNo
linksNo
titleYes
turnsNo
outcomeNo
task_idNo
agent_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.4.0
    • addedInput schema / properties / outcome
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Outcome"
      +}
    • addedInput schema / properties / turns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Turns"
      +}
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and delivers the most important non-obvious behavior: the node starts PENDING and stays invisible until admin approval, and that gate is deliberate. It also implies one-shot usage. It omits what the call returns (e.g., an ID), whether repeat calls create duplicates, and any auth requirements.

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?

The timing rule and the PENDING-approval note are front-loaded and earn their space. The closing line ("Say 'failed' when it failed: a report nobody is honest in looks like data") is editorial encouragement rather than specification and could be trimmed, though it does steer a real behavior.

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?

There is no output schema and no annotations, and the tool takes 8 parameters, so the description is the only source of truth. It adequately covers invocation timing and lifecycle, but leaves return shape, idempotency, and six parameters unaddressed — enough to call the tool, not enough to call it well.

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 coverage is 0%, so the description must define all 8 parameters, but it only covers two: it enumerates valid `outcome` values ("succeeded", "partial", "failed") — genuinely useful since there is no enum in the schema — and hints at why `turns` matters. `title`, `body`, `tags`, `links`, `task_id`, and `agent_id` are never explained, leaving most of the surface undocumented.

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 gives a specific verb and resource ("Log what this session learned, for the team to reuse") plus a stated purpose (team reuse). It is distinguishable from report_gaps and confirm_memory by its session-end, narrative-log framing, though it never names a sibling to sharpen the boundary.

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?

"Call once at the end" is an explicit, actionable timing rule and an implicit cardinality constraint. It does not, however, say when NOT to use this versus report_gaps or confirm_memory, so the alternative-selection guidance is absent.

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