Skip to content

feat(mcp): optional per-tool responseMapping.followUp workflow hint#416

Merged
keysersoft merged 1 commit into
mainfrom
feat/tool-followup-hint
Jul 14, 2026
Merged

feat(mcp): optional per-tool responseMapping.followUp workflow hint#416
keysersoft merged 1 commit into
mainfrom
feat/tool-followup-hint

Conversation

@keysersoft

Copy link
Copy Markdown
Contributor

What

Add an opt-in followUp string to a tool's responseMapping. When set, DynamicMcpTools appends it to the tool result as a WORKFLOW HINT line.

Why

Agents (Claude, etc.) reliably read tool results but often ignore multi-step guidance in a tool description. When an analysis needs several tools (e.g. a "professional football prediction" = predictions + odds + lineups + player stats + injuries + h2h), the agent tends to stop after the first obviously-relevant call. Putting the "call X, Y next" directive inside the result the agent just received drives the full chain far more reliably.

Scope

  • ResponseMapping.followUp?: string (engine-types.ts).
  • DynamicMcpTools: append it to resultText when present (cached with the response).
  • Purely additive & opt-in: tools without followUp are byte-for-byte unchanged. No other engine or tool affected.

Add an opt-in `followUp` string to a tool's responseMapping. When set,
DynamicMcpTools appends it to the tool result as a "WORKFLOW HINT" line.
The calling agent sees, inside the output it just received, what to do
next (e.g. "a professional prediction also needs odds, lineups, player
stats — call them before replying"). This drives multi-step tool chains
far more reliably than a pre-call tool description, which agents read but
often don't act on. Purely additive: tools without followUp are unchanged.
@keysersoft
keysersoft enabled auto-merge (squash) July 14, 2026 08:59
@keysersoft
keysersoft merged commit f478683 into main Jul 14, 2026
12 checks passed
@keysersoft
keysersoft deleted the feat/tool-followup-hint branch July 14, 2026 09:01
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant