Skip to main content
Glama

Git Submodule

git_submodule
Destructive

Manage Git submodules by adding, listing, updating, syncing, or setting branches, with recursive and remote options for repository workflows.

Instructions

Submodule: add, list, update, sync, or set_branch.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_submodule"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
jobsNo
pathNo
depthNo
pathsNo
actionNolist
branchNo
remoteNo
recursiveNo
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the agent knows this mutates state. The description adds nothing beyond the action list: it doesn't say which actions are destructive, what gets overwritten (e.g. update vs sync), whether network access to the submodule URL is required, or that set_branch rewrites .gitmodules.

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?

A single front-loaded fragment with zero filler, and the action list is the most useful information placed first. Its brevity is efficient in form but tips into under-specification given the tool's complexity.

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 11 largely undocumented parameters, destructive non-idempotent mutations, no output schema, and five distinct actions bundled into one tool, the definition is far too thin for an agent to call it correctly. At minimum it should map parameters to actions and flag the destructive ones.

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 description coverage is only 18% across 11 parameters, so the description carries the burden and fails to. It never explains the critical path vs paths distinction, what url/branch/remote/depth/jobs mean per action, or which parameters are only valid for add versus set_branch.

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 names the resource (submodule) and enumerates the five concrete operations it performs (add, list, update, sync, set_branch), which distinguishes it from siblings like git_remotes or git_branches. It is specific about what the tool does, though it mirrors the action enum rather than explaining the operations.

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 to use this tool versus alternatives such as git_remotes or git_branches, and no prerequisites stated (e.g. that update/sync/set_branch require an existing submodule path). It never says when not to use it or which action fits which situation.

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