Repository navigation
feat(agent-toolkit): include Notetaker setup status in get_user_context (5.80.0) - #554
Conversation
55dfec2 to
1a6db8c
Compare
…xt (5.79.0)
Adds an optional `notetaker` block (status, access, calendar connection,
auto-join settings and admin locks) from `notetaker { settings }` at API
version 2027-01. Fetched in parallel with favorites with a 1.5s timeout;
left out on timeout, error or null so the rest of the context is unchanged.
Depends on DaPulse/monday-meetings#740 being deployed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er_context DaPulse/monday-meetings#740 adds notetaker.settings.reason, which says why a user has no access (scope, block, AI disabled, credits). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DaPulse/monday-meetings#740 adds notetaker.settings.setup_url, the page where a NOT_CONNECTED user connects a calendar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1a6db8c to
235d0a5
Compare
…g entry Also restores the unrelated *throws* emphasis that a formatter had rewritten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t_user_context Mirrors the guidance in DaPulse/monday-meetings#740 (921684e): per-status instructions, show_connect_integration first with setup_url as the fallback, ask the user when calendar_connected is null. Types the notetaker enums and tests every status. Sub-item 13616514544 (s17) Session-Id: agent:4424:api:session:b8800362-7eb3-43e2-af77-24120d289138 Agent-Id: 4424
… entry Sub-item 13616514544 (s17)
rami-monday
left a comment
There was a problem hiding this comment.
Thanks for this, Ritik. Fetching the Notetaker block in parallel with a timeout and leaving it out on failure looks right. I have two main points, both about where the guidance lives:
- Move the per-status guidance out of the tool description and into the response. Details inline.
- Don't ship the setup flow as a separate skill. Return it with the response when setup is needed. Details inline.
If you make these changes, the description test (tells the agent how to act on each notetaker status) should become a test that checks the right guidance comes back for each status.
| - Get the user's Notetaker setup (notetaker.status, reason, has_access, calendar_connected, setup_url, auto_join) when available, to decide whether Notetaker still needs setting up. Act on notetaker.status: | ||
| - NO_ACCESS: tell the user why, from notetaker.reason (NOT_ALLOWED_PER_SCOPE, BLOCKED or AI_DISABLED) and who can fix it; do not retry or change settings. | ||
| - NOT_CONNECTED: if calendar_connected is null the check failed, so ask the user whether they connected a calendar instead of telling them to connect one. Otherwise call the show_connect_integration tool (load it first if needed) twice in the same reply, with integrationName googleCalendar and outlookCalendar, and call get_user_context again once they connect. Only if that tool does not exist, give notetaker.setup_url or tell them to open Notetaker in monday. | ||
| - AUTO_JOIN_OFF: unless the user already said which meetings, ask them, then confirm before changing auto_join with the update_notetaker_auto_join_settings mutation (read its description for the options). | ||
| - AUTO_JOIN_LOCKED_OFF: tell the user an account admin turned auto-join off and locked it; do not change it. | ||
| - ACTIVE: nothing to set up. When notetaker.reason is NO_CREDITS, tell the user Notetaker is on hold until credits renew or an admin adds more. |
There was a problem hiding this comment.
This is a lot of text for the description. The description goes to every client on every tools/list, for every user, and most of them will never touch Notetaker. Each status the agent doesn't hit still costs context, and the description gets harder to maintain as statuses are added.
The guidance should be dynamic and come back with the response, for the one status the user is actually in. For example:
"notetaker": {
"status": "NO_ACCESS",
"reason": "AI_DISABLED",
"instructions": "Notetaker is unavailable because an account admin turned off AI features. Tell the user an admin can turn them back on. Do not retry or change settings."
}The same goes for NOT_CONNECTED (connect a calendar with show_connect_integration, and fall back to setup_url), AUTO_JOIN_OFF, AUTO_JOIN_LOCKED_OFF and NO_CREDITS. Each one returns its own instruction, and ACTIVE returns none.
The description can then shrink to one line, for example: Get the user's Notetaker setup status; when setup is needed, the response includes instructions to follow.
It would be even better if the Notetaker settings query returned the instruction text itself. Then your service owns the wording, and you can improve it without publishing a new agent-toolkit version.
| relevantBoards, | ||
| relevantDocs, | ||
| relevantPeople, | ||
| ...(notetaker && { notetaker }), |
There was a problem hiding this comment.
About the notetaker-setup skill: shipping it as a skill is a problem. We would have to add it to each connector separately (ChatGPT, Claude, Copilot, and so on), submit it for review, and wait for every client to approve it. We would repeat all of that for every change.
Instead, when Notetaker still needs setting up (NOT_CONNECTED or AUTO_JOIN_OFF), return the skill's setup guide as instructions in this block: the steps to connect a calendar, choose auto-join options, and handle each error. Every client gets it right away with no review cycle, you can update it whenever you want, and users who are already ACTIVE don't pay for it in context.
…stead of the tool description Review on mondaycom#554: the per-status guidance went to every client on every tools/list. get_user_context now selects notetaker.settings.instructions, written per status by the Notetaker service (DaPulse/monday-meetings#740), and the description only points agents to it. Tests check instructions pass through for each status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, agreed on both points. Pushed 8b804b7:
Until #740 ships the field, the Notetaker query fails and the block is left out, so this can merge first. |
master released 5.79.0 (fetch_file_content), so the get_user_context Notetaker entry moves to 5.80.0 and the agent-toolkit version is bumped to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…taker line tool-description-safety.test.ts rejects ";" and backticks in tool descriptions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
master released 5.79.1 (name filter guidelines). The get_user_context Notetaker entry stays at 5.80.0, above it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
notetakerblock toget_user_context:status,has_access,reason(why the user has no access),calendar_connected,setup_url,instructionsandauto_join(with admin locks). The data comes fromnotetaker { settings }at API version2027-01.instructionsis written by the Notetaker service for the user's current status (for example, connect a calendar withshow_connect_integration, or ask which meetings to auto-join). Per-status guidance stays out of the tool description, so the wording can change without a toolkit release. It isnullwhen nothing needs doing.status,reasonand the auto-join modes are typed as their enum values.null, so the rest of the context stays the same.agent-toolkitto 5.80.0 and updates the CHANGELOG. (master took 5.79.0 forfetch_file_contentwhile this PR was open; master is merged in.)Feature flag and rollout
notetaker-mcp-autojoin-settings, checked per account by notetaker (DaPulse/monday-meetings#740). With it off,notetaker.settingsreturnsnulland this block is omitted, so deploying this change is a no-op for those accounts.Follow-up
@mondaydotcomorg/agent-toolkitto 5.80.0 in the MCP gateway (DaPulse/ai-toolbox,microservices/platform-mcp-gateway).Test plan
user-context-tool.test.ts(17 tests): block present and requested at2027-01with a 1.5s timeout; every status passed through as returned;instructionsrequested and per-status guidance kept out of the description; settingsnull; request failed or timed out; no user (no notetaker request made).tsc --noEmitclean after the master merge.🤖 Generated with Claude Code