Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_submodule_update

Destructive

Updates a submodule in a parent repo to the latest commit on a tracking branch via fetch, checkout, and stage. Discards local submodule commits not on the remote branch.

Instructions

Update a submodule in a parent repo to the latest commit on a tracking branch (git fetch + checkout origin/ + stage). Destructive: discards local commits in the submodule that are not on the remote branch.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "submodule": "<submodule>",
      "repo": "<repo>"
    },
    "name": "crosspad_submodule_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesParent repo containing the submodule (idf, pc, arduino, or full name)
branchNoRemote branch to track (e.g. main, develop)main
submoduleYesWhich submodule to operate on

Output Schema

NameRequiredDescriptionDefault
docsNo
nextNo
repoYes
errorNo
noticeNo
stagedYes
new_shaYes
old_shaYes
successYes
submoduleYes
changed_filesYes
commits_pulledYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0
  2. Removedv10.2.0
  3. First observedv9.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, yet the description still adds real value by specifying exactly what is lost: local commits in the submodule not present on the remote branch. It also exposes the underlying git sequence, which tells the agent the operation touches the network and mutates the parent repo index. It stops short of stating behavior for uncommitted working-tree changes in the submodule, which would have made it a 5.

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 tight sentences: the operation and its mechanism come first, and the destructive consequence is stated immediately after. Every clause carries information, with no restatement of the tool name or filler.

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?

With annotations covering the safety profile, a full output schema, and 100% parameter description coverage, the description only needs to add the mechanism and the loss condition, which it does. The one gap is that 'stage' is not clarified (whether staging occurs in the parent repo or the submodule) and uncommitted-change behavior is unstated.

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?

Schema coverage is 100% and both enum parameters carry their own descriptions, so the schema already does the heavy lifting. The description only indirectly reinforces the branch parameter via 'origin/<branch>' and adds nothing about defaults or constraints beyond the schema, so the baseline 3 applies.

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?

The description gives a specific verb and resource ('Update a submodule in a parent repo') plus the exact mechanism (git fetch + checkout origin/<branch> + stage), so an agent knows precisely what operation runs. It does not name or contrast any sibling tool, but no sibling in the supplied list appears to overlap with submodule updating, so the lack of differentiation costs little.

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

Usage Guidelines3/5

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

Usage is implied by the mechanism ('update to the latest commit on a tracking branch') and the destructive warning implicitly says when not to use it, but there is no explicit when-to-use framing or named alternative (e.g., commit/push flows for keeping local work). The agent must infer the scenario rather than being routed to it.

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