Skip to main content
Glama

session_sync

Synchronize DSH session logs into the L3 archive, remove deleted sessions, and return counts to keep long-term memory current.

Instructions

Sync DSH session logs into the archive (L3). Deleted sessions are removed from the archive too. Returns counts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "session_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRe-parse even if mtime unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose two important traits: deletion propagation ('Deleted sessions are removed from the archive too') and that the response is counts. It does not address whether the operation is idempotent, what happens on partial failure, whether it can be interrupted, or what counts are returned (sessions added/removed/skipped). The destructive-propagation disclosure is the strongest element here.

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?

Three short sentences, front-loaded with the action and resource, then the side effect, then the return value. Nothing is redundant, though '(L3)' is opaque jargon that costs a slot without adding actionable meaning for an agent.

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?

For a single-optional-parameter mutating tool with no annotations and no output schema, the definition covers purpose, a key side effect, and the rough shape of the return. It still leaves the agent without guidance on invocation timing, cost, idempotency, or the exact meaning of the returned counts.

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% and the single parameter 'force' is fully documented as 'Re-parse even if mtime unchanged', so the schema does the work. The description adds nothing about 'force' — notably it does not warn that forcing re-parses is more expensive — so the baseline of 3 applies.

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?

States a specific verb and resource: syncs DSH session logs into the archive, tagged (L3). That is clearly distinct from session_get and session_search, which read individual or matching sessions. The exact sync semantics (incremental vs. full re-import) remain unspecified, but the resource and direction of the operation are unambiguous.

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?

The description never says when to run this versus a read tool like session_search, nor whether it is meant to be periodic, one-shot after a batch of sessions, or a prerequisite for later archive queries. It also omits any prerequisite such as needing a writable archive or an initialized archive store. Usage can only be inferred from the word 'Sync'.

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