Skip to main content
Glama

Run one Nisi workflow locally

agiw_nisi_run

Run a Nisi draft, test, review, and repair workflow on provided file contents in an isolated temp directory, returning proposed changes and a report without editing project files.

Instructions

Run one Nisi v0.3.2 workflow (draft, syntax check, tests, independent review, bounded repair) on file CONTENTS you pass in, using the configured local author and reviewer models. Runs in a private temporary directory that is removed afterwards. Never reads or writes project files and never executes generated code; returns proposed contents and Nisi's report for you to review and apply yourself. Tests are the built-in checks (some file changed, no empty file) plus optional contains/not_contains assertions.

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": {
      "task": "<task>"
    },
    "name": "agiw_nisi_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat to change, in plain language.
filesNoCurrent contents of the files the models may change (relative paths).
ticketNoOptional claim ticket (required when config require_ticket is true). Admitted before the run starts; every proposed path must be within writeScope. Cooperative exclusion, not independent authorization. Refused on overlap with an admitted ticket; released afterwards.
new_filesNoRelative paths the author may create.
assertionsNo
repair_budgetNo
timeout_secondsNo
acceptance_criteriaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / ticket / description
      Previous value: -"Optional claim ticket (required when config require_ticket is true). Admitted before the run starts, refused if its write scope overlaps an admitted ticket, released afterwards."New value: +"Optional claim ticket (required when config require_ticket is true). Admitted before the run starts; every proposed path must be within writeScope. Cooperative exclusion, not independent authorization. Refused on overlap with an admitted ticket; released afterwards."
  2. Changed1 schema field changed
    • addedInput schema / properties / ticket
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Optional claim ticket (required when config require_ticket is true). Admitted before the run starts, refused if its write scope overlaps an admitted ticket, released afterwards.",
      +  "properties": {
      +    "claimState": {
      +      "description": "Only Granted or Active is admitted.",
      +      "type": "string"
      +    },
      +    "owner": {
      +      "maxLength": 256,
      +      "type": "string"
      +    },
      +    "ticketId": {
      +      "maxLength": 128,
      +      "type": "string"
      +    },
      +    "writeScope": {
      +      "items": {
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "maxItems": 64,
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ticketId",
      +    "claimState",
      +    "writeScope",
      +    "owner"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond annotations it discloses the sandbox profile: a private temp directory removed afterwards, no project file I/O, no execution of generated code, and a return value of proposed contents plus a report to apply manually. The ticket's cooperative-exclusion semantics live in the schema rather than the description, and repair/timeout behavior is undisclosed, leaving minor gaps. Nothing conflicts with readOnlyHint=false, destructiveHint=false, openWorldHint=false.

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?

Four sentences, front-loaded with what the tool does, then the isolation guarantees, then the return contract; every sentence carries information. The middle clauses are densely packed, which costs a little readability but not meaning.

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 an 8-parameter, nested-object tool with no output schema, the description covers the critical unknowns: the sandbox boundary, non-execution, and what comes back. It is thin on the operational knobs (timeout, repair budget) but complete enough for an agent to call it correctly.

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?

With 50% schema coverage the description usefully explains that files are current contents and that assertions are the optional contains/not_contains checks layered on built-in tests. It adds nothing for repair_budget, timeout_seconds, acceptance_criteria, or new_files, so half the surface still relies on terse schema text.

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 (run) and resource (one Nisi v0.3.2 workflow) and enumerates the internal stages (draft, syntax check, tests, review, bounded repair). It also pins the scope that separates it from sibling tools: it operates on file CONTENTS supplied in the request, not on project files.

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?

It makes clear when this tool applies (you pass current file contents and want a reviewed proposal back) and what it does not do (no project reads/writes, no execution), which routes an agent away from treating it as a file editor. There is no explicit named alternative or exclusion rule for the sibling tools, so it falls short of a 5.

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