Skip to main content
Glama

The Claude model for a helper

helper

Returns the Claude model a Claude helper (subagent) should run on, and records what helpers and main turns used. Called by Leanfare's own leanfare-level mod and Claude Code hook, never by the model in a chat.

Instructions

Returns the Claude model a Claude helper (subagent) should run on, and records what helpers and main turns used. Called by Leanfare's own leanfare-level mod and Claude Code hook, never by the model in a chat. Use: before a helper starts, pass task (and description, agent, asked); Leanfare answers with the model as the Agent tool names it (haiku, sonnet, opus or fable), its full id and why, or says to keep the model. After it ends, pass done; for the main model's own turn, pass turn. It writes token counts to Leanfare's local report and keeps no words. To hand work to an outside model use delegate or plan.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "helper"
  }
}

Input Schema

NameRequiredDescriptionDefault
doneNoA helper's end: id (from the pick), model (the id that ran), input, cached and output tokens, seconds, reason (answer, aborted, refusal, error).
taskNoThe helper's prompt, as the Agent tool got it.
turnNoThe main model's own turn: model, input, cached and output tokens, and effort if known.
agentNoThe helper's agent type (general-purpose, Explore, Plan, or a plugin's).
askedNoThe model the Agent call named, if it named one.
sessionNoThe session or chat it belongs to, if known.
descriptionNoThe Agent tool's short description of the task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.1

TDQS

A4.1/5.0
Behavior4/5

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

The annotations only say readOnlyHint=false and non-idempotent, so the description carries the burden here, and it adds real context: it writes token counts to Leanfare's local report, 'keeps no words', and says what the answer looks like (haiku/sonnet/opus/fable, full id and why, or 'keep the model'). It does not cover what happens when it is called with no arguments (0 required params) or how failures surface, which keeps it from 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.

Conciseness3/5

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

It is front-loaded with purpose and free of filler, but the telegraphic style ('It writes token counts to Leanfare's local report and keeps no words', 'or says to keep the model') makes it denser than necessary for easy parsing. The information earns its place, but the wording could be clearer.

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?

With 7 optional parameters, nested objects, and no output schema, the description does the work of describing the return shape verbally and discloses the report side effect. What is missing is edge-case behavior: what a call with no arguments does and whether a pick must precede a done record.

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 description coverage is 100%, so the baseline is 3. The description goes beyond the schema by explaining the sequencing relationship among task, done, and turn, and noting that done's id comes 'from the pick' and that asked is the model the Agent call named. It adds useful operational meaning rather than restating field text.

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?

The description gives a specific verb and resource: it 'Returns the Claude model a Claude helper (subagent) should run on, and records what helpers and main turns used.' It also identifies the caller (Leanfare's mod and Claude Code hook) and explicitly names sibling alternatives delegate and plan. It falls just short of 5 because the tool fuses two purposes, choosing a model and recording usage, which takes a few sentences to untangle.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit timing guidance is given for each mode: pass task 'before a helper starts', pass done 'after it ends', and pass turn 'for the main model's own turn.' It also states an exclusion ('never by the model in a chat') and routes outside-model work to delegate or plan.

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