Skip to main content
Glama

sync_code_sessions

Imports Claude Code sessions and memory into an Obsidian Markdown vault, with dry-run previews so you can inspect changes before syncing.

Instructions

Importa as sessões e a memória do Claude Code (~/.claude/projects) para o vault. dry_run=True só mostra o que faria.

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": "sync_code_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description must carry the behavioral burden. It does reveal the source location and that dry_run defaults to a non-destructive preview, which is genuinely useful. It says nothing about what happens to existing notes (overwrite, merge, duplicate), idempotency, or volume of data written, which are the key unknowns for a vault-mutating import.

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?

Two short sentences with the action and source front-loaded and the dry-run caveat second. No filler, nothing redundant with the schema.

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?

An output schema exists, so return values need not be explained. However, for a write operation into the vault with zero annotation coverage, the description should state at minimum whether existing content is overwritten and whether repeated runs are safe; those gaps matter for correct invocation.

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?

Only one parameter exists, so the baseline is high, and the description does add real meaning by explaining that dry_run=True only reports what would be done rather than performing the import. That goes beyond the schema's bare boolean title and default.

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 ("Importa") plus the exact resource and source ("sessões e a memória do Claude Code (~/.claude/projects)") and destination ("para o vault"). The source path is a strong differentiator against siblings like sync_conversations, though the description never explicitly contrasts them.

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 only usage-oriented sentence is the dry_run preview hint, which is really parameter documentation. There is no statement of when to choose this tool over sync_conversations, whether it is safe to run repeatedly, or any preconditions (existing vault, permissions) an agent should check first.

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