Remove toolbox preview header from the Mastering Toolbox notebook - #73
Merged
Conversation
lindazqli
force-pushed
the
fix/toolbox-preview-header-scope
branch
from
July 17, 2026 01:32
daab7b6 to
14a884b
Compare
nicholasdbrady
requested changes
Jul 29, 2026
nicholasdbrady
left a comment
Member
There was a problem hiding this comment.
Cookbook review: Publish after fixes
The general Toolboxes=V1Preview cleanup is consistent, but the Skills path still needs one correction before merge.
- Required: Section 4l · Skills now says Skills CRUD is the only flow that needs a preview feature flag. Current Microsoft Learn guidance also requires
Foundry-Features: Skills=V1Previewwhen a toolbox version includes a skill reference. This notebook pinsazure-ai-projects2.3.x and callsproject.toolboxes.create_version(..., skills=...); that stable operation does not inject the Skills header. WithSKILL_NAMEset, the version-creation cells can therefore fail. Conditionally passheaders={"Foundry-Features": "Skills=V1Preview"}wheneverskillsis non-empty (including the normal, search-first, and RAI-guarded version creation paths), and update the prose so it does not claim only Skills CRUD is preview-gated. The optional REST example currently has noskillspayload, so it does not need the header unless that payload is extended.
After the fix, exercise the notebook path with SKILL_NAME set to confirm skill attachment succeeds.
What works: The obsolete toolbox header constant and its MCP/management call sites were removed consistently; notebook cell IDs, metadata, outputs, and execution counts remain unchanged, and the PR checks pass.
Stable azure-ai-projects 2.3.x toolboxes.create_version does not auto-inject the Skills preview header, so passing a non-empty skills= would fail. Conditionally send headers={'Foundry-Features': 'Skills=V1Preview'} on all three version-creation paths (normal, search-first, RAI-guarded) only when skills is present, and correct the Section 4l prose that claimed skills CRUD was the only preview-gated flow.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
mastering-foundry-toolbox.ipynbnotebook applied aFoundry-Features: Toolboxes=V1Previewheader (via aTOOLBOX_HEADERSconstant) to every toolbox MCP call, the management REST API, and skill-resource reads. That header is not required for any of those paths. This PR removes it everywhere and corrects the surrounding prose.Why
tools/list/call_tool) needs only a bearer token scoped tohttps://ai.azure.com/.default- no preview header.POST .../versions,PATCH .../{name}) needs only the bearer token.resources/list/resources/read) is standard MCP against the same endpoint - no preview header.project.beta.skills.*create / update-default), and thebeta.skillsSDK sends it automatically - so it is never set by hand in the notebook.Changes
TOOLBOX_HEADERSdefinition and every**TOOLBOX_HEADERSspread (5 REST, verify cells, 10b skills, MAF, LangGraph, Copilot SDK).No tool behavior changes - the removed headers were unnecessary. Notebook JSON validated; all 59 cells intact.