Skip to main content
Glama

Resolve Sync Conflict

sync_resolve_conflict
Idempotent

Resolve offline-sync conflicts by updating sync metadata. Mark a conflicted request as clean after manual reconciliation, or leave it dirty for later push.

Instructions

Resolve a local offline-sync conflict by updating only the request's sync metadata: mark_clean=true after the agent has reconciled local vs remote (status becomes clean); mark_clean=false keeps the row dirty for a later push. Prerequisite: the request should already appear in sync_conflicts. Side effects are local SQLite metadata only—no automatic merge of body text, no remote API calls, and no deletion of the request. Prefer sync_conflicts to list candidates and sync_status to inspect timestamps; do not use for ordinary field edits (update_request). Mutating, non-destructive, and idempotent for the same mark_clean value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mark_cleanNotrue: mark reconciled/clean after manual review; false (default): leave dirty so a later offline push is expected. Does not rewrite title/body.
request_idYesLocal request ID currently in conflict (from sync_conflicts).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resolvedYesTrue when the conflict metadata was written successfully.
request_idYesRequest ID whose conflict state was updated.
sync_statusYesResulting sync status string (typically clean or dirty).
Behavior5/5

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

Beyond annotations (idempotentHint=true, destructiveHint=false), the description discloses that only local SQLite metadata is affected, no automatic merge, no remote API calls, no deletion, and idempotency for the same mark_clean value. This adds significant behavioral context.

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 concise, well-structured, and front-loaded with the core action. Every sentence provides necessary information without redundancy.

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

Completeness5/5

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

Given the complexity of sync conflict resolution, the description covers prerequisites, side effects, and differentiators. Output schema exists, so return values are handled. Complete and actionable.

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?

Schema coverage is 100% with descriptions, but the description adds behavioral context for mark_clean (e.g., effect on status and later push). This adds value beyond the schema alone.

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 resolves a local offline-sync conflict by updating sync metadata (mark_clean). It uses specific verbs and resources, and distinguishes from sibling tools like update_request, sync_conflicts, and sync_status.

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?

Explicitly states prerequisites (request must appear in sync_conflicts), when to use (for conflict resolution), and when not to use (ordinary field edits). It also guides the agent to prefer sync_conflicts for listing and sync_status for timestamps.

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/edithatogo/fyi-cli'

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