Skip to main content
Glama

Push changes to Overleaf

push_changes
Destructive

Publishes all pending local edits to Overleaf as one commit, rechecking for collaborator changes and refusing conflicting pushes without overwriting work.

Instructions

Publish every pending local edit to Overleaf as one commit. This is the only tool that changes the project collaborators see, and the change is immediate and public. Call read_project (view changes) first, and compile_project when the edit could break the build. Before pushing, the server re-checks Overleaf and rebases onto whatever collaborators pushed in the meantime. If two edits touch the same lines the push is refused, both versions are reported, and no local work is lost: nothing is overwritten and no winner is chosen. commitMessage labels the one commit made from the pending edits; commits already waiting from an earlier refused push keep their own messages and go out with it. Only the chosen project is pushed. Returns the new commit hash and the diff that was published, or reports that there was nothing to push.

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": {
      "commitMessage": "<commitMessage>"
    },
    "name": "push_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoWhich project to use: its Overleaf address, its 24-character id, or a registered project name. Omit to use the default project.
commitMessageYesMessage describing the change, shown in the project's Overleaf history. One line, written for a co-author, e.g. "Rewrite Section 4 discussion".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / properties / commitMessage / minLength
      Added value: +1
  2. First observedv0.3.8

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and non-idempotency; the description goes well beyond them by explaining the server-side rebase against collaborator pushes, the refuse-on-conflict behavior with no local work lost and no winner chosen, and the semantics of queued commits from an earlier refusal. The only remaining gap is rate-limit or timing behavior, which is minor for this mutation.

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?

Front-loaded with purpose and the public/immediate warning before the conditional instructions, and each sentence carries distinct information. It runs long for eight sentences, but the density is high enough that little could be cut without losing operational detail.

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?

With no output schema, the description still specifies the return (new commit hash plus the published diff, or a nothing-to-push report), covers the failure mode, and sets prerequisites. For a two-parameter destructive tool with annotations present, an agent has everything needed to call it correctly.

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%, so parameters are already documented, yet the description still adds real meaning: commitMessage labels only the single commit created from pending edits, while commits waiting from an earlier refused push keep their own messages and go out with it. It also clarifies that only the chosen project is pushed, resolving ambiguity about the optional project parameter.

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?

States a specific verb and resource ("Publish every pending local edit to Overleaf as one commit") and explicitly differentiates scope: "This is the only tool that changes the project collaborators see." An agent can distinguish it from read_project, edit_file, and read_history without opening any schema.

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?

Gives explicit sequencing and alternatives: call read_project first, use compile_project when the edit could break the build. It also states the conflict case (same-line edits refuse the push) which tells the agent when not to expect success and what to do about it.

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