Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

compare

Show differences between two pulls from history by listing rows added, removed, or changed and totals that moved between pull IDs.

Instructions

Compare two pulls from history (e.g. a pull and its tweak): rows added, rows removed, rows whose numbers changed, and totals that moved, from pull_id to other_pull_id. Uses the rows both pulls kept (see keep_rows), else re-runs both. Its rows go where a query's do: the results panel, or a capped preview with more_rows for the rest.

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": {
      "pull_id": "<pull_id>",
      "other_pull_id": "<other_pull_id>"
    },
    "name": "compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
pull_idYes
other_pull_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose non-obvious behavior: it reuses rows both pulls kept and otherwise re-runs both pulls, which signals potential cost, and it explains output routing (results panel or capped preview with `more_rows`). It does not state permissions, whether re-running creates server-side state, or side effects, leaving a gap for a compute-heavy operation.

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?

Three compact sentences, front-loaded with the verb and the diff categories, then behavior, then output destination — a logical order with no filler. Sentence density is high (parentheticals and cross-references), which costs a little readability but nothing is wasted.

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 two-param, no-annotation, no-output-schema tool, the description covers what is compared, which rows are the basis, the compute fallback, and where results land including the capped-preview case. Only permissions/state-change behavior is unaddressed, which is a small omission rather than a blocking one.

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 0%, so the description must compensate, and it does the most important thing: it establishes the asymmetry between `pull_id` (base) and `other_pull_id` (comparison) via 'from `pull_id` to `other_pull_id`', which is the primary ambiguity for a diff tool. It adds no format or provenance detail for the IDs, which is a minor residual gap.

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?

Specific verb plus resource ('compare two pulls from history') with an enumerated outcome set: rows added, removed, changed numbers, and moved totals. It also orients the agent against siblings by naming `history`, `keep_rows`, and `more_rows`, so no schema-opening is needed to know what this returns.

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?

The parenthetical '(e.g. a pull and its tweak)' gives a concrete use case, and the note that it consumes rows kept by `keep_rows` tells the agent when results will be cheap versus re-computed. It stops short of explicit exclusions or a named alternative to use instead, so it is clear context without full routing guidance.

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