feat: Add fetch-object tool for direct object retrieval by ID #253
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
Add a new
fetch-objecttool that allows fetching individual Todoist objects (tasks, projects, comments, sections) directly by their ID. This complements existingfind-*tools by providing a simpler interface when the object ID is already known.Why a new tool instead of extending
fetch?The existing
fetchtool is designed for OpenAI MCP spec compliance:"task:123","project:456")The new
fetch-objecttool provides a cleaner, more flexible API:typeandidparameters (more intuitive)Keeping them separate maintains MCP spec compliance for
fetchwhile providing a more powerful general-purpose tool for direct object retrieval.Changes
Use Case
This tool is particularly useful for AI agents that:
Test Results
✅ All 363 tests pass
✅ Type-check: No errors
✅ Linting: All checks pass
✅ Schema validation: Gemini API compatible
🤖 Generated with Claude Code