Skip to main content
Glama
CrossPad

crosspad-mcp-server

by CrossPad

crosspad_commit

Destructive

Commit staged changes in a specific CrossPad repo using aliases. Stage optionally supplied files first, block merge conflicts, and safely handle special characters in commit messages without pushing.

Instructions

Commit staged changes in a specific CrossPad repo. PREFER THIS over raw git commit — handles repo aliases (idf/pc/arduino/core/gui), refuses on merge conflicts, uses 0600 tempfiles for messages (no shell-quoting issues with quotes/newlines/backticks), and never pushes. Stages files[] first if supplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepo to target. Aliases: idf=platform-idf, pc=crosspad-pc, arduino=ESP32-S3, core=crosspad-core, gui=crosspad-gui.
filesNoIf supplied: stage exactly these files (repo-relative paths) then commit. If omitted: commit whatever is currently staged in the repo (no auto-stage).
messageYesCommit message. Newlines/quotes/backticks are safe — passed via 0600 tempfile, not shell-quoted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
errorNo
messageYes
successYes
commit_hashYes
files_committedYes
Behavior4/5

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

Annotations declare destructiveHint=true, and the description aligns by being explicit about mutation semantics. Adds valuable context beyond annotations: uses 0600 tempfiles avoiding shell-quoting issues, refuses on merge conflicts, never pushes, and preserves existing staged state when files omitted. Rich behavioral disclosure.

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 dense, front-loaded sentences. First sentence declares purpose and behavioral guarantees; second sentence handles the files[] conditional. Zero filler, every clause carries actionable information.

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?

Mutation tool with destructiveHint annotation, 100% schema coverage, and output schema present. Description covers safety guarantees (no push, merge-conflict refusal), tempfile mechanism, alias handling, and files[] semantics. No meaningful gaps remain for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 100% schema coverage, description adds significant semantics: explains alias resolution, clarifies staged-changes behavior vs auto-staging semantics for files[], and reassures message safety (newlines/quotes/backticks handled) with the 0600 tempfile mechanism. Confirms the tempfile approach that makes message parameter robust.

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?

Specific verb+resource: 'Commit staged changes in a specific CrossPad repo'. Clearly distinguishes from raw `git commit` by noting it handles repo aliases, refuses on merge conflicts, and never pushes. Distinct from sibling tools like crosspad_repo_status/diff.

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?

Explicit 'PREFER THIS over raw git commit' gives clear when-to-use guidance. States it refuses on merge conflicts, never pushes, and stages files[] if supplied — defining the exact behavioral contract. The repo parameter includes full alias mapping.

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/CrossPad/crosspad-mcp'

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