Improve AI agent usability across all MCP tools#14
Open
lucasjahn wants to merge 3 commits intoGeLi2001:mainfrom
Open
Improve AI agent usability across all MCP tools#14lucasjahn wants to merge 3 commits intoGeLi2001:mainfrom
lucasjahn wants to merge 3 commits intoGeLi2001:mainfrom
Conversation
List tools (orders, products, customers, collections) now accept an optional 'fields' parameter to select which fields the GraphQL query returns, reducing context pollution when only IDs or specific data is needed. Max page size raised from 10-100 to 250 (Shopify API limit). Affected tools: get-orders, get-products, get-customers, get-collections, get-customer-orders
Make descriptions more assertive so AI agents actually use the fields parameter instead of fetching all data. Descriptions now tell agents to always specify fields, and to ask the user which fields are needed when unsure rather than defaulting to all fields.
… and bulk tags Driven by iterative feedback from an AI consumer agent testing all 45 tools, this addresses the main friction points when an LLM operates the MCP toolset without human guidance. Field selection & countOnly: - Add `fields` param to all GET tools (products, orders, customers, collections, metafields, variants) so agents fetch only the data they need - Add `countOnly` param to list tools (get-products, get-orders, get-customers, get-customer-orders) to size result sets before paginating - Increase max page size from 50 to 250 on list endpoints Bulk tag management: - Add manage-tags-bulk tool for batch add/remove on up to 100 resources Description clarity & consistency: - Add format examples to all ID params (GID vs numeric, with examples) - Add cross-tool navigation hints (e.g. create-fulfillment references get-fulfillment-orders for obtaining required IDs) - Add metafield upsert semantics to all update tools - Add customer notification safety warnings requiring user confirmation - Change inventory-set-quantities reason from free text to validated enum Collection improvements: - Add field selection to get-collection-by-id README: - Update tool count from 31 to 45 - Document new sections: Collections, Configuration, Enhanced Order, Inventory & Pricing, shared field selection and countOnly capabilities
Owner
|
hi @lucasjahn thanks for the PR, I found there's merge conflicts after #13 got merged, can you sync with origin main again? thanks |
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.
Problem
When an AI agent/LLM consumed this MCP toolset autonomously, it hits several friction points that cause unnecessary round-trips, context bloat, and outright errors:
Solution
Iterative improvements driven by a consumer AI agent auditing all 45 tools.
All changes are backwards compatible. No new dependencies.