Skip to main content
Glama

submit_job

Submits a batch of coding agent jobs across up to 20 repositories, running each independently to implement changes and open merge or pull requests.

Instructions

Submit a batch of agent jobs. Each repository runs as an independent job.

Returns {batch_id, jobs: [{job_id, repo_id, ref, thread_id, status}], failed: [...]}. Each job runs independently; poll with get_job_status per job_id or pass wait=true.

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": {
      "repos": "<repos>",
      "prompt": "<prompt>"
    },
    "name": "submit_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWhen true, blocks until every job in the batch completes (up to 10 minutes total) and returns each job's full result.
mutedNoMute notifications for every job in this batch.
reposYes1-20 repositories to run against.
promptYesTask instruction for the agent. Describe the intended change — do NOT ask the agent to commit, push, create a branch, or open a merge/pull request; those steps run automatically after the job, and DAIV generates the branch name, commit message, and MR/PR title/description itself. Be specific: include file paths, function names, or error messages. The same prompt runs independently against each repository, except one whose repos[].prompt replaces it; with `shared_session` it runs once across all of them.
thread_idNoOptional. Continue an existing thread by passing its UUID (from a prior submit_job or get_job_status response). When set, ``repos`` must contain exactly one entry whose session belongs to the calling user and is not archived for them; a multi-repository session also accepts its full list, in order, with no ``ref``. If the session is busy, the job joins its next run for the job's branch, which starts once the current run ends; jobs that join the same next run share its job_id.
referencesNoOptional external work-item references (max 20) linked into the MR/PR DAIV creates, e.g. [{"key": "PROJ-123", "url": "https://...", "provider": "jira", "relation": "relates"}]. Providers with special syntax: gitlab-issue, github-issue, sentry, jira; any other provider renders as a plain reference link. relation=closes opts into auto-close on merge where the provider supports it (default: relates). On thread continuation, new references are merged into the session.
agent_modelNoModel override as 'provider_slug:model_name' (e.g. 'openrouter:anthropic/claude-sonnet-4.6'). Provider slug must match an enabled Provider row. Omit to use the repository's models.agent model, else the system default; the call is refused when no system default is configured.
environmentNoOptional sandbox environment to use for every job in this batch — pass the env name or UUID. Visible scopes are the caller's USER envs plus all GLOBAL envs. Use ``list_environments`` to discover names. When omitted, the runtime is Auto-resolved for each repository (USER env matching repo_ids → GLOBAL env matching repo_ids → GLOBAL default).
mcp_overridesNoOptional MCP servers to switch on or off for every job in this batch, relative to the default set, e.g. {"grafana": true}: true adds an on-demand server, false drops an active one. On a continued thread (thread_id) they apply on top of the thread's own, and can't change them while another run on the thread is unfinished.
shared_sessionNoRun every repository in one session: the agent sees all of them and opens one merge request per repository it changes. The first repository is the main one. At most 5.
agent_thinking_levelNoOptional thinking effort: minimal/low/medium/high. Omit to inherit the repository's models.agent level, else the system default.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses batch independence and the polling-vs-blocking model, but never states that jobs mutate repositories (creating branches, commits and MRs) or that wait blocks for up to 10 minutes and caps at 20 repos — that context lives only in the schema.

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 the action and kept to four short sentences. "Each repository runs as an independent job" and "Each job runs independently" are near-duplicates, so one sentence is wasted, but the rest earns its place.

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?

An output schema exists, so restating the return shape is redundant but harmless. For an 11-parameter mutation tool with zero annotations, the description is thin on side effects and prerequisites (permissions, repo limits, shared_session constraints) that an agent needs before committing to a batch.

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 description coverage is 100%, so the schema already documents all 11 parameters in detail. The description adds only the wait/poll tradeoff, which the wait parameter's own description also covers; it adds no new meaning for repos, prompt, thread_id or environment.

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?

States a specific verb and resource ("Submit a batch of agent jobs") plus the batch unit and independence semantics ("Each repository runs as an independent job"). It does not distinguish itself from the sibling schedule_job, so an agent must infer the difference between one-off submission and scheduling.

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?

Explicitly routes the agent for result retrieval: "poll with get_job_status per job_id or pass wait=true", naming the alternative tool and the condition for each. It gives no guidance on when to prefer this over schedule_job, and no exclusions.

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