Skip to content

feat(agent-toolkit): include Notetaker setup status in get_user_context (5.80.0) - #554

Merged
rami-monday merged 10 commits into
mondaycom:masterfrom
ritikag2209:feature/get-user-context-notetaker-status
Nov 26, 2026
Merged

rami-monday merged 10 commits into
mondaycom:masterfrom
ritikag2209:feature/get-user-context-notetaker-status

Conversation

@ritikag2209

@ritikag2209 ritikag2209 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional notetaker block to get_user_context: status, has_access, reason (why the user has no access), calendar_connected, setup_url, instructions and auto_join (with admin locks). The data comes from notetaker { settings } at API version 2027-01.
  • instructions is written by the Notetaker service for the user's current status (for example, connect a calendar with show_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 is null when nothing needs doing.
  • status, reason and the auto-join modes are typed as their enum values.
  • Fetched in parallel with favorites, with a 1.5s timeout. The block is left out on timeout, error, or null, so the rest of the context stays the same.
  • Bumps agent-toolkit to 5.80.0 and updates the CHANGELOG. (master took 5.79.0 for fetch_file_content while this PR was open; master is merged in.)

Feature flag and rollout

  • The flag lives on the server: notetaker-mcp-autojoin-settings, checked per account by notetaker (DaPulse/monday-meetings#740). With it off, notetaker.settings returns null and this block is omitted, so deploying this change is a no-op for those accounts.
  • Until #740 is deployed, the query fails fast and the block is omitted.

Follow-up

  • After this merges and 5.80.0 is published, a separate PR bumps @mondaydotcomorg/agent-toolkit to 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 at 2027-01 with a 1.5s timeout; every status passed through as returned; instructions requested and per-status guidance kept out of the description; settings null; request failed or timed out; no user (no notetaker request made).
  • tsc --noEmit clean after the master merge.

🤖 Generated with Claude Code

@ritikag2209
ritikag2209 force-pushed the feature/get-user-context-notetaker-status branch from 55dfec2 to 1a6db8c Compare November 23, 2026 11:59
ritikag2209 and others added 3 commits November 23, 2026 13:32
…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>
@ritikag2209
ritikag2209 force-pushed the feature/get-user-context-notetaker-status branch from 1a6db8c to 235d0a5 Compare November 23, 2026 13:32
…g entry

Also restores the unrelated *throws* emphasis that a formatter had rewritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bridge Four added 2 commits November 23, 2026 14:59
…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

@rami-monday rami-monday left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. Move the per-status guidance out of the tool description and into the response. Details inline.
  2. 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.

Comment on lines +38 to +43
- 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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 }),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@ritikag2209

Copy link
Copy Markdown
Contributor Author

Thanks, agreed on both points. Pushed 8b804b7:

  • Guidance moved into the response. notetaker.settings now has an instructions field. The Notetaker service writes it for the user's current status, so the wording can change without an agent-toolkit release, and it is null for ACTIVE. The tool description is back to one line pointing agents to notetaker.instructions. The server side is being added in DaPulse/monday-meetings#740.
  • No separate skill. The setup steps from the skill (calendar connect via show_connect_integration with setup_url as the fallback, the auto-join options, error handling) go into those instructions for NOT_CONNECTED and AUTO_JOIN_OFF. I'll close feat: add notetaker-setup skill skills#11 once #740 has the field.
  • Tests. The description test is replaced with a test that instructions passes through for each status.

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>
@ritikag2209 ritikag2209 changed the title feat(agent-toolkit): include Notetaker setup status in get_user_context (5.79.0) feat(agent-toolkit): include Notetaker setup status in get_user_context (5.80.0) Nov 24, 2026
ritikag2209 and others added 2 commits November 24, 2026 13:55
…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>
@rami-monday
rami-monday merged commit 4788c1d into mondaycom:master Nov 26, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants