Skip to content
Claude Certified Architect – Foundations (CCAR-F) Exam Prep

Lesson 8 of 30 · 6 min

x
8/30

Tool Interface Design

Video lesson: CCAR-F 08/30: Tool Interface Design

The description is the selection mechanism

Anthropic's guidance: detailed descriptions are "by far the most important factor in tool performance". A description should say:

  • what the tool does
  • when to use it and when not to
  • what each parameter means and how it changes behaviour
  • caveats and limits, including what the tool does not return

Aim for at least 3 to 4 sentences per tool, more for complex tools.

Definition fields

FieldNotes
nameMust match ^[a-zA-Z0-9_-]{1,128}$
descriptionPlain text, as above
input_schemaJSON Schema for the parameters
input_examplesOptional; each example must validate against the schema or the request fails with a 400; costs roughly 20 to 50 tokens (simple) up to 100 to 200 (nested)

Also available per tool: cache_control, strict, defer_loading, allowed_callers.

Design rules

  1. Prioritise descriptions; add input_examples for complex or format-sensitive inputs.
  2. Consolidate related operations into fewer tools with an action parameter, not one tool per verb (create_pr, review_pr, merge_pr).
  3. Namespace names when tools span services (github_list_prs, slack_send_message).
  4. Return high-signal output only: stable identifiers (slugs, UUIDs), just the fields Claude needs next. Bloated responses waste context.
  5. Ask for an explanation, not reasoning: a parameter that asks for the model's step-by-step thinking can trigger a reasoning_extraction refusal.

Why overlapping tools fail (design guidance)

If two tools have near-identical descriptions (for example search_orders and lookup_orders), the model must guess. Fix the interface, not the prompt: merge them, or rewrite each description so the boundary is explicit ("use X for ids, Y for free-text search; X does not return history").

Poor vs good: "Gets the stock price for a ticker." (no when, no returns, no params) vs a description that states the exchange scope, returned currency, when to use it, and that it returns nothing else.

Exam traps

  • Fixing wrong tool choice with a longer system prompt when the descriptions are the problem.
  • Vague parameter docs ("type": "string" and nothing else).
  • One tool per tiny action, which multiplies near-duplicates.
  • Returning entire records when two fields were needed.
  • Names with spaces or dots (fail the name regex).

References

  1. Define tools — checked Oct 16, 2026

Check your understanding

  • Two tools are confused with each other. First fix?Show answer

    Answer

    Rewrite or merge descriptions so the boundary is explicit.
  • What happens if an input_examples entry violates the schema?Show answer

    Answer

    400 error.
  • Better design: create_pr, review_pr, merge_pr, or one pr tool with action?Show answer

    Answer

    One tool with action (fewer, more capable tools).
Previous

Progress is saved in this browser.

Next Lesson