Claude Certified Developer · Foundations

Module 2: Prompts, tools and agents that hold up

Practice this module

Claude Developer (Foundations) · "Ship your first Claude feature to production" · study notes

What you'll be able to do

  • Write a system prompt with a clear role, goal, rules and output format.

  • Design a tool schema the model uses correctly, and keep security decisions (like the tenant) on the server.

  • Get guaranteed-valid JSON with structured outputs instead of regex or prefill.

  • Stream a long reply and still get the complete message at the end.

  • Write a small agent loop with a step limit, error results and parallel tool calls handled correctly.

  • Send only the context a step needs, and keep per-tenant memory safely.

  • Add screenshots and PDFs to a request, and push a backlog through the Batches API at half price.

  • Debug an agent by reading its transcript, not by guessing.

In this module

  • What you'll be able to do
  • Where we are in the running example
  • Part 1: Prompting craft (bug 1, the vague prompt)
  • Part 2: Tool use and schema design (bug 2, the loose tool)
    • The bug
    • The fix
    • tool_choice
  • Part 3: Structured outputs (bug 3, JSON by regex)
  • Part 4: Building the agent loop (bug 4, no brakes)
    • The loop, written by hand once
    • Let the SDK run the loop
  • Part 5: Streaming (bug 5, the 20-second wait)
  • Part 6: Thinking for the hard tickets
  • Part 7: Context engineering
  • Part 8: Agent memory
  • Part 9: Images, PDFs and batch
    • Screenshots and invoices
    • The backlog: Message Batches API
  • Part 10: The cumulative debug task, read the transcript
  • Common mistakes and how to spot them
  • Exam traps
  • Remember
  • Flashcards

Sign up free to continue

It takes a minute and costs nothing. Module 1 of every course stays open to everyone.

Sign up freeSign in

Built by Sanjay Shah; drafted with Claude Opus 5.5 and Fable 5.2. Unofficial study notes, not affiliated with or endorsed by Anthropic. Check facts against the official Claude docs (opens in a new tab) and your exam's official guide (opens in a new tab). Facts last checked 25 Nov 2026 · Report an error

↑ ↓ navigate · ↵ select · esc close