Skip to main content
Glama

The Claude model for a helper

helper

Selects a Leanfare model for a Claude Code subagent based on plan part or task type, then records token usage and outcome when the subagent ends.

Instructions

For Leanfare's leanfare-level mod and Claude Code's hook, not for a chat: when a Claude app is about to start a helper (a subagent), the Claude model Leanfare picks for it, by the plan part it is for or else its kind of work, as Claude's Agent tool names models (haiku, sonnet, opus, fable). With done, what a helper used once it ended; with turn, the main model's own turn. Numbers only, never words.

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

C2.4/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false, so the agent knows this is not a pure read, and the description hints that done/turn payloads record usage — roughly consistent, but it never says what a write does, whether it is persisted, or what comes back. 'Numbers only, never words' is cryptic and could describe the return value or the inputs; either way it is not actionable. With no output schema and a mutation-flagged tool, this leaves a substantial gap.

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 text is a dense run-on with an unclear antecedent structure and jargon ('leanfare-level mod', 'the plan part it is for or else its kind of work'), forcing re-reads. The key purpose is buried mid-sentence rather than front-loaded, and several clauses do not clearly earn their place.

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

Completeness2/5

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

For a 7-parameter tool with nested objects, no output schema, and a mutation flag, the description should at minimum explain the pick-vs-record modes and the returned model-name shape. Instead it offers a cryptic 'Numbers only, never words' and no statement of persistence, idempotency behavior, or error cases, leaving the agent unable to call it confidently.

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 100%, so the per-field meanings of done, task, turn, agent, asked, session and description are already documented. The description adds only marginal context beyond that, chiefly the selection rule ('by the plan part it is for or else its kind of work'), which is useful but underspecified about precedence. Baseline 3 is appropriate when the schema carries the parameter load.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description does eventually convey the core purpose: return the Claude model Leanfare would pick for a subagent, named as the Agent tool names them (haiku, sonnet, opus, fable). But the opening clause ('For Leanfare's leanfare-level mod and Claude Code's hook, not for a chat') is internal jargon that obscures the verb, and mixing selection with recording ('with done... with turn...') makes it ambiguous whether this is a lookup or a telemetry sink. The sibling tools (models, delegate, plan) are not referenced, so differentiation is left to inference.

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

Usage Guidelines2/5

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

The only usage signal is the exclusion 'not for a chat', with no positive statement of when to call this instead of sibling tools like models or delegate. No prerequisites, ordering, or call-frequency guidance is given, and the two modes (pick a model vs. report done/turn usage) are not tied to any condition.

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