Skip to main content
Glama
Zythenth

Antigravity MCP Bridge

by Zythenth

Read patch by file or chunk

antigravity_read_patch
Read-only

Read paginated patch content for a coding task, optionally filtered to one changed path, with each chunk bound to the full preview hash for verifiable, resumable review.

Instructions

Read at most 50000 UTF-16 units of the current patch, optionally selecting a changed path. Bind every read to the full preview hash. Follow nextOffset until hasMore is false. Use preview with includePatch false for metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
limitNo
offsetNo
taskIdYes
expectedSha256Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
textNo
errorNo
lengthNo
offsetNo
sha256No
taskIdNo
hasMoreNo
nextOffsetNo
offsetUnitNo
totalLengthNo
contentSha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), so the description adds value with the 50000-unit read cap, the 'follow nextOffset until hasMore is false' loop, and the requirement to bind each read to the full preview hash. The hash-binding constraint is a meaningful behavioral detail beyond annotations, though failure behavior on mismatch is left implicit.

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, front-loaded sentences with no filler; the core read action leads, followed by path selection, hash binding, pagination, and the alternative. Every sentence adds distinct operational value.

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 an output schema present, return values need not be described, and the description covers pagination, size cap, hash binding, and sibling routing. The only notable omission is the meaning of taskId, but otherwise it is complete for a read tool.

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 description coverage is 0%, so the description carries the burden and largely succeeds: it explains limit (max 50000 UTF-16 units), path (optional changed path), offset (via nextOffset), and expectedSha256 ('bind every read to the full preview hash'). Only taskId is left unexplained, keeping it short of a full 5.

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 and resource ('Read ... the current patch') and clarifies scope (up to 50000 UTF-16 units, optional path selection). It also distinguishes itself from the sibling antigravity_preview by routing metadata lookups there, so an agent can tell the two apart without opening a schema.

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?

Gives clear operating context: select a 'changed path' optionally, 'Follow nextOffset until hasMore is false' for pagination, and use 'preview with includePatch false for metadata' as the alternative. It names an alternative tool but stops short of explicit when-not-to-use conditions.

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