fix(get_agent): migrate from deprecated agent query to agents endpoint#340
Merged
Conversation
Uses agents(ids, limit) instead of the soon-to-be-deprecated agent(id) query. Single-agent fetch passes ids:[id] and takes the first result; list-all passes limit:100 and surfaces that cap in the response message. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
NadavAvraham
commented
May 10, 2026
| Agent state in get_agent results is one of ACTIVE, INACTIVE, ARCHIVED, or FAILED. DELETED agents are filtered from these queries — DELETED only appears as the return value of delete_agent. Agent kind is one of PERSONAL, ACCOUNT_LEVEL, or EXTERNAL. | ||
|
|
||
| Pass id to fetch one specific agent by its unique identifier. Omit id to list every non-deleted personal agent owned by the authenticated user. An empty list means the user owns no agents, which is not an error. | ||
| Pass id to fetch one specific agent by its unique identifier. Omit id to list agents owned by the authenticated user (capped at 100 — ask the user for a higher limit if needed). An empty list means the user owns no agents, which is not an error. |
Collaborator
Author
There was a problem hiding this comment.
I know this is not a best practice of course, but agents do not support pagination still. We will work on adding it and I will update the tool as well
RomKadria
approved these changes
May 10, 2026
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
agent(id: ID!)GraphQL query with the newagents(ids, limit)endpointids: [id]and takes the first result from the arraylimit: 100and surfaces that cap in the response message so the LLM can prompt for a higher limit if neededMonday Item
https://monday.monday.com/boards/8139440172/pulses/11795649625
Test Plan
agents(ids: [ID!], limit: Int)🤖 Generated with Claude Code