Skip to main content
Glama

submit_diff_review

Submit a git diff to a selected reviewer on the elisym network. Automatically detects or accepts a base ref for comparison, and optionally includes review instructions.

Instructions

Send a code-review job: the MCP server runs git diff inside repo_path and forwards the diff to the chosen provider. The diff content never appears in the LLM's output tokens, only the short tool call does. When base is omitted, auto-detects: dirty working tree -> diff against HEAD; clean tree with main/master/origin-HEAD found -> ${detected}...HEAD; otherwise falls back to diff against HEAD. Pass base explicitly (e.g. "main", a tag, or a SHA) to force a ${base}...HEAD PR-style range. Optional prompt is prepended above the diff so reviewers can scope the review. Default capability is "review" - override if the provider advertises a different tag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoOptional base ref (branch, tag, SHA). When set, diffs ${base}...HEAD. When omitted, auto-detects working-tree vs main/master/origin-HEAD.
promptNoOptional instructions prepended above the diff (e.g. "focus on auth flow").
repo_pathNoPath to the git repo. Absolute or relative to the MCP server's working directory..
capabilityNoCapability tag advertised by the reviewer. Override if not "review".review
session_idNoConversation control. Omit for automatic session management (providers advertising context support get a conversation auto-started on first contact; an ongoing conversation triggers a continue/new/one-off question before anything is published). Pass "new" to force a fresh conversation, "none" to force a stateless one-off, or a session_id from a previous result to continue that conversation. The provider answers with the conversation context of prior exchanges under the same id.
kind_offsetNo
timeout_secsNo
provider_npubYes
allow_outside_cwdNoAllow reviewing a repo outside the MCP server working directory. Off by default - the diff is forwarded to the provider before payment and is invisible in the transcript, so the repo is confined to the working dir subtree unless this is set. Sensitive paths (secret keys, .env, SSH/keypair, ~/.elisym, /proc) are always refused.
max_price_lamportsNo
Behavior4/5

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

Even without annotations, the description discloses important behaviors: the diff is forwarded to the provider and never appears in LLM output tokens, the base auto-detection algorithm, sensitive path refusal, and session management details. This adds value beyond what annotations would typically cover, but could be more explicit about side effects (e.g., job creation).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections, but is verbose (multiple paragraphs). While it covers necessary details, some sentences are dense and could be condensed. It earns its place given the complexity, but lacks the brevity of top-tier descriptions.

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

Completeness3/5

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

Given the complexity (10 parameters, no annotations, no output schema), the description covers core behavior, parameter options, and constraints (sensitive paths). However, it omits the return value structure and next steps (e.g., how to retrieve results), leaving the agent with incomplete context for full workflow understanding.

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?

The description adds significant meaning for base, prompt, repo_path, capability, session_id, and allow_outside_cwd, often beyond the schema. However, 4 parameters (provider_npub, kind_offset, timeout_secs, max_price_lamports) lack schema descriptions and are not explained in the description, leaving gaps. Baseline 3 is appropriate due to moderate schema coverage (60%) and partial compensation.

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?

The description clearly states the tool's action: 'Send a code-review job: the MCP server runs git diff inside repo_path and forwards the diff to the chosen provider.' It specifies the verb ('send'), the resource ('code-review job'), and the mechanism, distinguishing it from sibling tools like submit_job or submit_and_pay_job which do not involve local git operations.

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

Usage Guidelines4/5

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

The description provides detailed guidance on when to use parameters: auto-detection logic for base, explicit override for PR-style ranges, prepending a prompt, and overriding the capability tag. It explains session management with clear options. However, it does not explicitly state when to use this tool instead of other job-related tools, nor does it mention excluded scenarios.

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/elisymlabs/elisym'

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