Conversation
Co-authored-by: MWGMorningwood <2997336+MWGMorningwood@users.noreply.github.com>
Co-authored-by: MWGMorningwood <2997336+MWGMorningwood@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Evaluate the usability of the memory MCP defined here for LLMs and improve input validation and descriptions. Copilot seems to have trouble using the tools quite often. Specifically, it may help to inform the agent to view the knowledge graph, create e...
Improve MCP tool usability for LLMs with auto-creation and workflow guidance
Aug 26, 2025
MWG-Logan
approved these changes
Aug 27, 2025
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.
Addresses the core issue where "Copilot seems to have trouble using the tools quite often" by implementing comprehensive usability improvements that reduce friction and provide clear workflow guidance.
Problem Statement
LLMs frequently struggled with the memory MCP tools due to:
Key Improvements
🔄 Auto-Creation Features
add_observation: Now automatically creates missing entities with configurableentityType(defaults to "Unknown")create_relations: Automatically creates missing entities referenced in relationshipscreate_entities: Auto-creates empty observations arrays when missingExample - this now works even if "John" doesn't exist:
📋 Enhanced Tool Descriptions & Workflow Guidance
read_graph: Marked as "RECOMMENDED FIRST STEP" with clear guidance⚡ Improved Error Messages & Validation
Before:
After:
📚 Updated Documentation
Impact
These changes significantly improve LLM usability by:
The tools should now be much more intuitive and reliable for AI assistants to use correctly.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.