Skip to main content
Glama

sync_portfolio

Synchronize your local portfolio elements with GitHub using configurable modes: additive for safe additions, mirror for exact matching, or backup for data protection. Always preview changes with dry-run first.

Instructions

Sync ALL elements in your local portfolio with your GitHub repository. By default uses 'additive' mode which only adds new items and never deletes (safest). Use 'mirror' mode for exact sync (with deletion confirmations). Use 'backup' mode to treat GitHub as backup source. ALWAYS run with dry_run:true first to preview changes. For individual elements, use 'portfolio_element_manager' instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directionNoSync direction: 'push' (upload to GitHub), 'pull' (download from GitHub), or 'both' (bidirectional sync). Defaults to 'push'.
modeNoSync mode: 'additive' (default, only adds new items, never deletes), 'mirror' (makes exact match, requires confirmation for deletions), 'backup' (GitHub as backup, only pulls missing items locally). Defaults to 'additive' for safety.
forceNoWhether to force sync even if there are conflicts. Use with caution as this may overwrite changes. In 'mirror' mode, this skips deletion confirmations.
dry_runNoShow what would be synced without actually performing the sync. RECOMMENDED to run with dry_run:true first to preview changes.
confirm_deletionsNoIn 'mirror' mode, require explicit confirmation for each deletion. Defaults to true unless force:true is set.
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: safety recommendations ('ALWAYS run with dry_run:true first'), mode-specific behaviors (additive never deletes, mirror requires confirmations, backup treats GitHub as source), and sibling tool differentiation. It doesn't mention rate limits or authentication requirements, but covers most operational aspects.

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?

The description is efficiently structured with zero wasted sentences. It front-loads the core purpose, then explains modes, provides critical safety advice, and ends with sibling tool differentiation. Every sentence adds essential information for correct tool usage.

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

Completeness4/5

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

For a complex synchronization tool with 5 parameters and no output schema, the description provides strong contextual completeness. It covers purpose, modes, safety practices, and sibling differentiation. The main gap is lack of information about return values or what happens after sync completes, but given the operational focus, it's reasonably complete.

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?

With 100% schema description coverage, the baseline is 3. The description adds some value by explaining mode semantics ('additive' as safest default, 'mirror' with deletion confirmations, 'backup' mode purpose) and reinforcing the dry_run recommendation, but doesn't provide significant additional parameter context beyond what's already well-documented in the schema.

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

Purpose5/5

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

The description clearly states the tool's purpose with specific verbs ('sync ALL elements') and resources ('local portfolio', 'GitHub repository'), distinguishing it from sibling tools like 'portfolio_element_manager' for individual elements. It explicitly defines the scope as comprehensive synchronization.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool vs. alternatives: 'ALWAYS run with dry_run:true first' for safety, and 'For individual elements, use 'portfolio_element_manager' instead.' It also explains when to use different modes (additive for safety, mirror for exact sync, backup for GitHub as backup source).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DollhouseMCP/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server