Skip to main content
Glama

Sync state from Git

lognexus_state_sync

Synchronizes persistent state from the current Git branch and GitHub metadata, returning the updated state for AI coding agents.

Instructions

Synchronize the persistent state from the current Git branch and GitHub metadata, then return the updated state.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does disclose that the result is the updated state, but nothing about whether existing local state is overwritten, what happens on conflict with the remote, whether this mutates the working tree or commits anything, or what GitHub auth/network access is required. For a sync operation with write potential, these are material omissions.

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?

One sentence, front-loaded with the action and source of truth, ending with the return behavior. No filler. It could be marginally better structured by splitting the call-to-action from the return semantics, but nothing is wasted.

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

Completeness2/5

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

With no annotations and no output schema, the description is the only source of behavioral information, and it omits side effects, conflict/merge behavior, idempotency, and required environment (Git repo, GitHub credentials). Given a state-mutating sync in a family of state tools, this leaves an agent unable to predict the outcome confidently.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is 4. The description does not need to elaborate on inputs beyond this.

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 (synchronize) and a specific resource (persistent state), plus the sources (current Git branch and GitHub metadata) and that it returns the updated state. An agent can distinguish it from lognexus_state_get or lognexus_state_clear. It stops short of naming a sibling or explicit scope boundary, so not a 5.

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?

There is no guidance on when this should be called instead of lognexus_state_get, lognexus_commit, or lognexus_status, and no prerequisites are stated. The only implied context is that a Git branch must be current, which the agent has to infer from the phrase 'current Git branch'.

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