Skip to main content
Glama

github_mcp.preview_job

Inspect a job's changes and prepare a review snapshot with paginated per-file diffs, fingerprint, final tree, and warnings; it updates local state under policy but does not approve or publish.

Instructions

Inspect and, when needed, prepare a review snapshot of a job's changes. May update local job state and fingerprint under write policy. Returns paginated per-file diffs, fingerprint, final tree and warnings; review every page before requesting trusted local approval. Does not grant approval or publish.

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": {
      "job_id": "<job_id>"
    },
    "name": "github_mcp.preview_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size, 1–50 changes; default 20.
job_idYesExisting job identifier.
offsetNoZero-based change offset; default 0.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.2
    • addedInput schema / properties / job_id / description
      Added value: +"Existing job identifier."
    • addedInput schema / properties / limit / description
      Added value: +"Page size, 1–50 changes; default 20."
    • addedInput schema / properties / offset / description
      Added value: +"Zero-based change offset; default 0."
  2. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

This is where the definition earns its keep: it explains why readOnlyHint=false matters ('may update local job state and fingerprint under write policy') and enumerates what comes back (per-file diffs, fingerprint, final tree, warnings). It also states the negative boundary (no approval, no publish). Only gaps are error/partial-failure behavior.

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?

Four short sentences, front-loaded with the action, then side effects, then return shape, then the operational warning. No filler and the most dangerous fact (local state mutation) appears early.

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?

With annotations and an output schema already present, the description supplies the missing context: the hidden write side effect and the pagination-completeness requirement. It does not mention prerequisites (e.g., required job state) or what a warnings field implies for proceeding.

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 coverage is 100%, so limit, offset, and job_id are already fully documented. The description adds interpretive value by tying pagination to a safety workflow ('review every page'), but gives no guidance on sensible page sizes or what happens if a page is skipped.

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?

The description states a concrete verb and resource: inspect a job's changes and prepare a review snapshot. The closing 'Does not grant approval or publish' carves out a boundary versus publish/approval-oriented siblings, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

'When needed' plus 'review every page before requesting trusted local approval' implies the review-then-approve workflow, but it never says when to call this instead of get_diff, get_job_report, or get_job_status. Usage is implied rather than stated.

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