Skip to main content
Glama

sumo_qa_format_context_bundle

Read-onlyIdempotent

Validate and render a host-neutral issue/PR context bundle as a compact markdown brief for QA review or planning, flagging stale or unknown facts.

Instructions

Validate and render a host-neutral issue/PR CONTEXT BUNDLE as a compact markdown brief for QA review/planning (issue #149). FILE/FORMAT PLUMBING ONLY — the host gathers the facts; this tool never inspects a repo, makes a network call, or assumes GitHub. A partial/empty bundle is first-class: when little is supplied, the consuming skill falls back to direct repo inspection.

Common natural-language phrasings that map to this tool: "build the review context bundle", "format this PR/issue context for review", "render the context bundle with its freshness", "summarise the diff/CI/test facts I gathered".

bundle is a dict with optional issue_summary, pr_summary, head_sha, changed_files (each {path, change_kind}), test_evidence / ci_status (each {result, freshness, source}, plus optional captured_at / detail), and user_constraints. freshness is one of fresh/stale/unknown/absent; only a FRESH PASS is safety-supporting — a stale, unknown, or absent fact is rendered with an explicit "do not claim safety from it" warning. Supply local_head_sha (the host's live local head) to detect a bundle-vs-local-state conflict; when the shas differ the brief calls out the divergence instead of trusting either side. max_files bounds the changed-file list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bundleYes
max_filesNo
local_head_shaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.42.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only/idempotent/non-open-world, and the description adds substantive behavior beyond them: partial/empty bundles are first-class, freshness values are enumerated, stale/unknown/absent facts are rendered with an explicit 'do not claim safety' warning, and a bundle-vs-local-state SHA divergence is called out rather than silently trusted.

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?

Purpose is front-loaded with a bolded scope boundary, and the field-level detail is dense but each clause informs invocation. The NL-phrasing list and the issue-number parenthetical add mild retrieval value rather than essential content, keeping it just short of maximal conciseness.

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?

For a 3-param formatter with no output schema and a nested, untyped bundle object, the description supplies enough to call it correctly and understand the rendered artifact. It could more fully describe the emitted brief's structure, but the freshness/conflict warnings and fallback behavior cover the agent's decision needs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description carries the full burden and does so thoroughly: it names every bundle key (issue_summary, pr_summary, head_sha, changed_files with {path, change_kind}, test_evidence/ci_status with {result, freshness, source}, user_constraints), defines the freshness enum, and explains local_head_sha's conflict-detection role and max_files' bounding role.

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 pair (validate and render) and a precise resource (host-neutral issue/PR context bundle as a compact markdown brief for QA review/planning). The explicit boundary 'FILE/FORMAT PLUMBING ONLY — never inspects a repo, makes a network call, or assumes GitHub' cleanly separates it from siblings like sumo_qa_scan_repo and sumo_qa_analyze_diff_impact.

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?

Provides concrete natural-language triggers ('build the review context bundle', 'format this PR/issue context for review') and a clear condition for use, plus the fallback behavior when a partial/empty bundle is supplied. It doesn't name a specific sibling alternative explicitly, but the negative scope ('the host gathers the facts') effectively routes the agent away from inspection tools.

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