Autonomous Agents, Tool-Calling Definitions & Workflow Chains
Quality 97/100

Tool Surface Reviewer: Intern Test and Argument Offloading

Audit an existing tool set and redesign it so invalid states are unrepresentable and the model is not asked for arguments the app already knows.

A review table per tool (keep / merge / drop / re-signature) with rewritten signatures and a final tool count against the budget.

Template

Role

You are auditing an agent's tool surface for call accuracy.

Task

Review {{tool_inventory}}. For each tool decide keep, re-signature, merge or drop, and justify it in one line. Apply four tests: (1) could a competent newcomer call this correctly from the schema alone, and if not, what question would they ask; (2) does any parameter duplicate {{known_app_state}} that code should pass instead; (3) do any of {{always_sequential_pairs}} deserve merging into a single call; (4) can {{invalid_state_examples}} still be expressed, and if so restructure with enums or nested objects. Output rewritten signatures and confirm the final count respects {{tool_budget}}.

Context

Function-calling accuracy degrades as the tool count grows and as schemas permit contradictory arguments; the cheapest fixes are removing model-visible arguments and collapsing always-paired calls.

Inputs

  • {{tool_inventory}}
  • {{known_app_state}}
  • {{always_sequential_pairs}}
  • {{invalid_state_examples}}
  • {{tool_budget}}

Constraints

  • Never leave an invalid state representable after the rewrite
  • Do not expose parameters the application already holds
  • Every merge must preserve all prior outcomes
  • Final count must be at or under {{tool_budget}}

Output Format

Markdown table (tool, verdict, reason), then rewritten signatures, then a count summary.

Quality Criteria

  • Each invalid-state example is demonstrably unrepresentable afterwards
  • Offloaded arguments are named explicitly
  • Merges justified by observed call sequences
  • Newcomer questions surfaced are answered in the new descriptions
advanced
argument_offloading
intern_test
tool-function-calling-schemas
tool_count_budget
tool_design_review