Claude Certified Architect – Foundations Practice Question 61: Subagent Description Delegation
Claude Certified Architect, Foundations · Test 7 · question 1 of 10
A team builds a support-triage agent with the Claude Agent SDK. They define a subagent named "billing-analyst" through the agents option and include the Agent tool in allowedTools. Its description is just "Helper", and its prompt holds detailed billing-dispute instructions. When users ask about refund disputes, the main agent answers on its own and never delegates. What is the most direct fix that keeps automatic delegation?
Show answer and explanation
Answer:
A is correct. The SDK documents that Claude decides when to invoke a subagent based on the task and each subagent's description ("Natural language description of when to use this agent"), so a vague description like "Helper" gives the parent nothing to match against. A clear, specific description (for example, "Handles billing disputes and refund eligibility questions. Use for any refund or chargeback request.") fixes automatic delegation. If you need a guarantee, you can also name the subagent in the prompt.
B is wrong because the prompt field is the subagent's own system prompt; the parent does not use it to decide whether to delegate. C is wrong because maxTurns caps the subagent's agentic turns once it runs; it has no bearing on whether it is chosen. D is wrong because tools restricts what the subagent can do after it starts, and an empty list would not make Claude delegate to it.
Reference: Subagents in the SDK - Claude Agent SDK