Implement generative AI and agentic solutions 2.2 Build agents by using Foundry

You create version 2 of a toolbox that adds a new tool.

Study guide skill: Integrate agent tools, including APIs, knowledge stores, search, content understanding, and custom functions

Question B2-011

You create version 2 of a toolbox that adds a new tool. Agents connect to the toolbox's consumer endpoint, {project_endpoint}/toolboxes/{toolbox_name}/mcp, and they still don't see the new tool. You must not change agent code or redeploy any agent. What should you do?

Select one answer.

  • A Delete version 1 so the agents fall back to version 2
  • B Update every agent to use the version-specific developer endpoint for version 2
  • C Edit version 1 in place to add the new tool
  • D Promote version 2 to the toolbox's default_version ✓ Correct answer

Answer: D

The consumer endpoint always serves the toolbox's default_version, and creating a new version doesn't promote it automatically. Promoting version 2 makes every agent on the consumer endpoint pick it up with no code change or redeployment. Toolbox versions are immutable snapshots, so you can't edit version 1, and the version-specific developer endpoint is for testing before promotion and would require changing the agents.

Deep dive

How it works

Toolboxes have two kinds of endpoint, and the difference is the whole answer:

  • Consumer endpoint: {project_endpoint}/toolboxes/{toolbox_name}/mcp. Agents connect here, and it always serves the toolbox's default_version.
  • Developer (version-specific) endpoint: .../toolboxes/{toolbox_name}/versions/{version}/mcp. It's for testing or validating a specific version before you promote it.

Versions are immutable snapshots of a toolbox's tool configuration. Every create call produces a new version, and creating a new version doesn't automatically promote it. You decide when to update default_version. The first version of a new toolbox becomes the default automatically, which is why the agents are still on version 1.

So the steps are:

  1. Validate version 2 on its version-specific endpoint (list its tools, run one request that calls the new tool).
  2. Promote version 2 to default_version, for example with azd ai toolbox publish.
  3. Every agent on the consumer endpoint picks it up, with no code change or redeployment.

The other options, and when you'd use them

  • Delete version 1: Deleting a version doesn't promote another one. The default_version field controls which version the endpoint serves, and you change it by promoting, not by deleting.
  • Point every agent at the version-specific endpoint: That endpoint is reserved for testing a version before you promote it. Rewiring the agents also breaks the no-code-change rule.
  • Edit version 1 in place: Toolbox versions are immutable snapshots. Changes always create a new version.

Exam tip

New toolbox version not showing up = promote it to default_version. Consumer endpoint serves the default; the version-specific endpoint is for testing.

References

Last reviewed:

Ready to test yourself? The quiz asks this and every other AI-103 question, with instant feedback. Practice this in a quiz →

All Generative AI & agents questions · AI-103 study guide

Thanks for your feedback!