Skip to main content
Glama

delegate_checked

Drafts code or text with one model, routes it to a different model family for review, applies fixes, and rechecks issues to return a verified answer with pass/fail status.

Instructions

Like delegate, but self-verifying: model A drafts, a model from a DIFFERENT family reviews it, A fixes the issues, the reviewer re-checks (up to rounds fix cycles). Returns the final answer plus FINAL STATUS (PASS/FAIL/UNREVIEWED) and any open issues. Use for important generated code or text, so you only spend tokens on a final check.

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": "delegate_checked"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocode = write/modify code · text = prose, translation, marketing copy · summarize = digest big files/docs · review = find problems · reasoning = math/logic/planning · general = anything else. Picks the best free model for it.
taskYesComplete, self-contained instructions (see `delegate`).
filesNoFile paths (relative to the project or absolute) that the free model should see. They are read from disk by this server, so their content does NOT cost you tokens. Secret values (.env, keys, tokens, passwords) are masked automatically.
modelNoOptional preferred drafting model (substring of provider/model).
roundsNoMax fix cycles after the first review (0-3, default 2).
save_toNoWrite the result to this file instead of returning it. Use for generated code/docs so you do not re-type them. You only get a one-line confirmation; Read or diff the file to verify.
overwriteNo
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it discloses the multi-round review loop, the cross-family reviewer constraint, the `rounds` cap, and the possible terminal statuses (PASS/FAIL/UNREVIEWED) plus open issues. It does not cover whether `save_to` overwrites an existing file destructively (the `overwrite` param is undocumented here) or latency/cost implications of the extra review rounds, which keeps it below a 5.

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?

One front-loaded paragraph that leads with the differentiator against `delegate`, then the pipeline, then the return shape, then the usage rule — every clause adds information. It is dense rather than padded, though the pipeline sentence could be split for faster scanning.

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?

There is no output schema, so the description must describe returns — and it does (final answer, FINAL STATUS with enumerated values, open issues). For an 8-parameter tool it is largely complete, with the main residual gap being the undocumented `overwrite`/`save_to` interaction.

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 description coverage is 75%, so the schema already does most of the work. The description adds real meaning only for `rounds` ("up to `rounds` fix cycles") and defers `task` semantics to `delegate`, while `overwrite` and `max_tokens` remain unexplained anywhere — the baseline 3 applies.

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 mechanism (draft by model A, review by a different model family, fixes, re-check) and explicitly positions itself against the sibling `delegate` ("Like `delegate`, but self-verifying"). It also names the return payload (final answer, FINAL STATUS, open issues), so an agent can distinguish it from `delegate` and `review` without opening any 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 a clear selection rule: "Use for important generated code or text, so you only spend tokens on a final check", which implies the cheaper `delegate` is for less critical work. It stops short of explicit exclusions (e.g., don't use for trivial tasks, don't use when you only want critique via `review`), but the context is clear enough to choose correctly.

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

Deploy Server

Other Tools