You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add excludeResponse parameter to reduce token usage (#136)
Added an optional excludeResponse parameter to all MCP tools that allows
excluding the full response body from Microsoft Graph API and only
returning a success/failure indication.
This is useful for operations where only the outcome matters (success or
failure) and the response data is not needed, significantly reducing
token usage in MCP responses.
Changes:
- Added excludeResponse parameter to all tool schemas (default: false)
- Updated GraphRequestOptions interface to include excludeResponse
- Modified formatJsonResponse to return minimal response when enabled
- Added error handling to return { success: false } for failures
Behavior:
- excludeResponse=false (default): Returns full response as before
- excludeResponse=true (success): Returns { "success": true }
- excludeResponse=true (error): Returns { "success": false } with isError: true
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>
0 commit comments