Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

tweak

Modify a past pull by running changed SQL on the same source; see the SQL difference and save the new query as a child pull for comparison.

Instructions

Tweak a past pull ('same, but last quarter'): run sql, your change to that pull's stored SQL, on the same source. The reply shows the SQL difference; the new pull is saved as a child of the old one. question is the user's request (defaults to the old). When no definition you were given covers part of the question, say what you assumed in assumptions, one short sentence each ("active customer means an order in the last 90 days"); they're kept with this answer on the user's computer, for them to review and turn into definitions.

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>",
      "sql": "<sql>"
    },
    "name": "tweak"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
pull_idYes
questionNo
assumptionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the SQL runs against the same source, that the reply contains a SQL diff, that the result is persisted as a child pull, and that assumptions are stored on the user's computer for review. It doesn't say whether the underlying query results are returned, nor anything about permissions or whether the parent pull is ever modified.

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?

Front-loads the core action and outcome, then moves to the two optional parameters. The assumptions sentence is long, running a parenthetical example plus the persistence note, but every clause carries information an agent would otherwise have to guess.

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 four-parameter mutation-style tool with no output schema, this covers inputs, side effects (child pull creation), and the shape of the reply. The one real gap is whether running `sql` returns data rows or only the diff, which matters for how an agent reports results.

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 for three of four parameters: `sql` is defined as the delta to the pull's stored SQL, `question` as the user's request defaulting to the old one, and `assumptions` gets meaning, format ('one short sentence each'), and persistence behavior. `pull_id` is only implied via 'that pull' and never explicitly described as identifying the pull to tweak.

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?

States a specific verb and resource — tweak a past pull by running your modified `sql` on the same source — and adds the concrete outcome (old-vs-new SQL diff, new pull saved as a child of the old). The name 'tweak' is opaque on its own, but the description resolves it. It never names a sibling (e.g. compare, history) to distinguish the case where a user wants a variation versus a comparison.

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 example ('same, but last quarter') gives an explicit trigger context, and the assumptions clause explains what to do when existing definitions don't cover the question. There is no when-not-to-use guidance and no routing to alternative tools for similar follow-up requests.

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