feat(agent-toolkit): add get_account_context tool#319
Open
guygotlieb wants to merge 5 commits intomasterfrom
Open
feat(agent-toolkit): add get_account_context tool#319guygotlieb wants to merge 5 commits intomasterfrom
guygotlieb wants to merge 5 commits intomasterfrom
Conversation
68dfad4 to
9e38be5
Compare
Add a new READ-only tool that fetches account-level context via
me { account { ... } } GraphQL query. Returns account identity,
plan details, active products, trial status, and configuration.
Enables AI agents to make informed decisions when operating in
account context (used by create-board, forms, campaigns, CRM skills).
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
9e38be5 to
456bbcf
Compare
…nt as-is Remove helpers.ts and return me.account directly from the GQL query instead of reshaping the response. Drop unused logo field. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Collaborator
Author
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
…er count queries Add explicit mention of active_members_count and max_users fields so the model picks this tool over list_users_and_teams when users ask about team size or member count. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…context Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.
Summary
get_account_contextREAD-only tool to agent-toolkit (v5.4.0)me { account { ... } }GraphQL queryme.accountdirectly — no response reshaping, the GQL query is the single source of truthChanges
New files
get-account-context-tool.ts— Tool class extendingBaseMondayApiTool<undefined>(no input params)get-account-context.graphql.ts— GraphQL query fetching Account fields including Plan and AccountProductget-account-context.test.ts— 3 test cases (full data, minimal/null fields, auth error)Modified files
index.ts— RegisteredGetAccountContextToolinallGraphqlApiToolsarray + re-exportpackage.json— Version bump 5.3.2 → 5.4.0graphql.ts/gql.ts— Codegen'd types forGetAccountContextQueryWhat the tool returns
Account identity (id, name, slug, tier), plan details (tier, period, max_users), active products (core, CRM, software, service, marketing, forms, whiteboard), trial status, and account settings (first_day_of_the_week, show_timeline_weekends, country_code).
Design decisions
logofield — not useful for AI agent context.Testing
Related
📋 Monday.com tracking item
🤖 Generated with Claude Code