Skip to main content
Glama

preview_task_permissions

Preview standalone task permissions, writable paths, allowed commands, and Git settings before launch, without starting an agent or allocating scratch.

Instructions

Preview standalone task permissions without launching an agent or allocating scratch.

With qualification_only, returns only the cached qualification requirement plan before provider self-tests, path certification or owner checks; launch still validates those gates. Empty required feature sets need no binary inspection.

Uses the same bounded extra_writable_paths validation, installed-version checks and detected owner caps as start_task. Returns requested/effective typed paths, certification and truthful enforcement. Writable scratch-aware launches disclose future task, chain and group scratch symbolically in writable_roots without allocating them; read-only previews have no scratch root. The preview is an observation, not a reservation: launch revalidates paths and configuration. Extra grants never authorize publication. Workflow/native-adapter grants and unverified harness configurations are unavailable. Known external backend execution configuration is protected; unsupported existing inputs reject requests. Existing repository configuration authority retains its baseline limits. Grants authorize output writes, not trust in that output as a future repository, hook or executable. Startup inputs are checked, not atomically pinned against independently authorized concurrent writers; see docs/extra-writable-paths.md.

group_report_output opts in to a qualified read_only run whose sole writable root is its concrete canonical group folder (group is required or inherited). No folder is allocated. This excludes caller approvals, native children and extra writable grants.

allowed_commands is validated exactly as in start_task (grammar, installed backend version, nested-subset cap) and the returned enforcement lists it as extra_allowed_commands. branch, base and fetch are validated the same way as start_task and shown as dispatch_git without running Git.

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": {
      "repo_path": "<repo_path>"
    },
    "name": "preview_task_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNo
fetchNo
groupNo
branchNo
backendNo
freedomNo
networkNo
repo_pathYes
fetch_requiredNo
allowed_commandsNo
caller_approvalsNo
git_https_rewriteNo
qualification_onlyNo
group_report_outputNo
extra_writable_pathsNo
caller_write_approvalsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose a lot: no agent launch, no scratch allocation, no authorization of publication, protection of external backend configuration, rejection of unsupported existing inputs, and the fact that startup inputs are only checked rather than atomically pinned. The gaps are terminological rather than behavioral: terms like 'truthful enforcement', 'detected owner caps', and 'nested-subset cap' are used without definition, so the disclosure is thorough but hard to act on.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded, but the body degenerates into dense, unbroken paragraphs of caveats in jargon-heavy prose with no structure. Several statements repeat the same idea (validation is the same as start_task; launch revalidates), and the mode-specific paragraphs (qualification_only, group_report_output, allowed_commands, branch/base/fetch) are buried after generic caveats instead of being surfaced.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description does convey the key non-obvious contract (observation vs. reservation, no scratch allocation, gates revalidated at launch). But for a 16-parameter tool with no annotations and no schema descriptions, seven parameters receive no semantic treatment at all, which leaves real gaps in what an agent needs 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?

Schema coverage is 0%, so the description must do all the work. It does explain qualification_only, group_report_output, extra_writable_paths, allowed_commands, branch, base, group, and fetch, but leaves backend, freedom, network, fetch_required, caller_approvals, caller_write_approvals, and git_https_rewrite entirely unexplained, and even the covered ones are described in prose rather than mapped to parameter meaning.

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?

The first sentence gives a specific verb and resource ('Preview standalone task permissions') and immediately states the negative scope ('without launching an agent or allocating scratch'). It also names the sibling it mirrors ('Same ... as start_task') and covers its two alternate modes (qualification_only, group_report_output), so an agent can distinguish it from start_task 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?

It explains when each mode applies: qualification_only stops before self-tests, owner checks, and reports only the cached plan, while group_report_output opts into a qualified read_only run over the concrete group folder and excludes caller approvals and extra grants. It also warns that the preview is an observation, not a reservation, and that launch revalidates. What is missing is an explicit 'use start_task when you actually intend to launch' routing statement, though that is strongly implied.

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