Skip to main content
Glama

run_repository_pipeline

Run the complete repository-intelligence chain (snapshot, triage, plan, simulate) in one call, returning every stage's response, timings, and the IDs needed for the apply step.

Instructions

Run the whole repository-intelligence chain — snapshot, triage, plan, simulate — in one call and return the canonical repository envelope with every stage's response, stage timings, and the ids (snapshot_id, plan_id, simulation_id) the apply step needs. Pass snapshot_id to reuse an existing snapshot or snapshot to create one inline; stop_after halts the chain early (triage skips the LLM planner, plan also skips the deterministic simulate). Signals, triage bounds, model, runs, and seed mirror the standalone stage tools. Use the single-stage tools when you need to inspect or adjust between stages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runsNoSimulation scenario count; omit for the complexity-adaptive count.
seedNoSimulation seed; defaults to 42.
modelNoOptional planner model override for the plan stage.
signalsNoTriage evidence seeds (see triage_repository).
snapshotNoInline create_repository_snapshot arguments when no snapshot_id is given.
stop_afterNoStage to halt after; defaults to simulate (full chain).
snapshot_idNoExisting snapshot id to reuse.
token_budgetNoTriage evidence token budget; defaults to 6000.
repository_idYesSaved repository connector id from list_connectors.
max_snippet_linesNoTriage per-snippet line cap; defaults to 40.
max_evidence_itemsNoTriage evidence item cap; defaults to 16.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.1.3
    • addedInput schema / properties / max_evidence_items / description
      Added value: +"Triage evidence item cap; defaults to 16."
    • addedInput schema / properties / max_snippet_lines / description
      Added value: +"Triage per-snippet line cap; defaults to 40."
    • addedInput schema / properties / model / description
      Added value: +"Optional planner model override for the plan stage."
    • addedInput schema / properties / repository_id / description
      Added value: +"Saved repository connector id from list_connectors."
    • addedInput schema / properties / runs / description
      Added value: +"Simulation scenario count; omit for the complexity-adaptive count."
    • addedInput schema / properties / seed / description
      Added value: +"Simulation seed; defaults to 42."
    • addedInput schema / properties / signals / description
      Added value: +"Triage evidence seeds (see triage_repository)."
    • addedInput schema / properties / snapshot / description
      Added value: +"Inline create_repository_snapshot arguments when no snapshot_id is given."
    • addedInput schema / properties / snapshot_id / description
      Added value: +"Existing snapshot id to reuse."
    • addedInput schema / properties / stop_after / description
      Added value: +"Stage to halt after; defaults to simulate (full chain)."
    • addedInput schema / properties / token_budget / description
      Added value: +"Triage evidence token budget; defaults to 6000."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only include false hints for readOnly, openWorld, idempotent, and destructive, which are not very informative. The description adds significant behavioral context: it details the chain of stages, the return envelope contents (response, timings, ids), how stop_after halts early (with specific side effects like skipping the planner or simulate), and the ability to reuse snapshots. This goes beyond the annotations and provides insight into the tool's side effects and data flow.

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?

The description is relatively long but each sentence introduces a distinct concept: the chain and return envelope, snapshot handling, stop_after behavior, parameter mirroring, and the guidance to use single-stage tools. The most critical information (purpose, snapshot id, stop_after) is front-loaded, and the final guidance sentence is a useful addition without unnecessary fluff.

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

Completeness4/5

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

Given the complexity of an 11-parameter orchestration tool with nested objects and no output schema, the description covers the essential aspects: what the tool does, how to control the chain, how to handle snapshots, and when to use alternatives. It doesn't detail the exact format of the envelope or how errors propagate, but with no output schema, that might be a minor gap. It provides enough for an agent to call correctly in most cases.

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% with rich descriptions for each parameter, so the baseline is 3. The description adds value by explaining how parameters interact: e.g., passing snapshot_id vs snapshot, stop_after values and their effect on subsequent stages, and that 'runs' and 'seed' mirror standalone tools. This clarifies the orchestration semantics beyond the raw schema.

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 function: runs the entire repository-intelligence chain (snapshot, triage, plan, simulate) in one call, returning a canonical envelope with stage responses, timings, and ids. It mentions specific stage names and the resources involved, making it easy to distinguish from the single-stage tools like triage_repository and simulate_repository.

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?

The description explicitly states when to use this tool versus alternatives: 'Use the single-stage tools when you need to inspect or adjust between stages.' It also explains the key parameters (snapshot_id vs snapshot, stop_after) and how they affect the chain. This provides clear guidance on when to choose this orchestration tool over its components.

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

Deploy Server

Other Tools