Skip to main content
Glama

Backup Journal Database

backup_journal

Create a timestamped copy of the journal database in the backups/ directory to preserve project memory.

Instructions

Create a timestamped backup of the journal database. Backups are stored in the backups/ directory.

Input Schema

NameRequiredDescriptionDefault
nameNoCustom backup name (optional, defaults to timestamp). Anti-Hallucination Hint: You can use positional args like mj.backup.backupJournal("my_name").
compressNoAnti-Hallucination Hint: Compression is natively handled by the database engine. This parameter is safely ignored.
use_test_dbNo

Output Schema

NameRequiredDescriptionDefault
codeNoError code (e.g. VALIDATION_ERROR, INTERNAL_ERROR)
pathNo
errorNoHuman-readable error message
detailsNoAdditional error context
messageNo
successYes
categoryNoError category (validation, query, connection, internal)
filenameNo
sizeBytesNo
suggestionNoSuggested fix for the error
recoverableNoWhether the error is recoverable
aggregated_errorsNoDetails of individual errors in a multi-step operation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description's job is lighter. It adds the useful detail that backups land in backups/ with a timestamp, but says nothing about retention, disk cost, permissions, or whether repeated calls accumulate files.

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?

Two short sentences, front-loaded with the action and followed by the output location; nothing is padded. Slight loss for being so terse that it omits operational detail.

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 no explanation, and annotations cover the safety profile. Still, for a write operation in a dense backup/restore tool family, the description should say where the backup record can be found afterwards (list_backups) and how it relates to cleanup.

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 only 67% and the description mentions no parameters at all. The 'name' and 'compress' semantics live entirely in the schema, while 'use_test_db' is undocumented in both places – the description does nothing to close that gap.

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 concrete verb+resource ('Create a timestamped backup of the journal database') and the storage location. It does not distinguish itself from the sibling backup/restore tools (list_backups, restore_backup, cleanup_backups, team_backup), so an agent must infer the difference.

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?

No guidance on when to take a backup versus using team_backup, restore_backup, or cleanup_backups, and no prerequisites or caveats. The agent is left to infer usage entirely from the name.

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

Deploy Server

Other Tools