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
{{ message }}
Repository navigation
Proposal: Make output=md the default for the MCP search tool #65
Change the default response format of the MCP search tool from JSON to Markdown.
When callers omit params.output, the server would use output=md. Callers could retain the current behavior by explicitly passing output=json.
Motivation
The search tool currently returns JSON by default. Our internal tests show that Markdown responses use approximately 50% fewer tokens on average.
Most MCP tool responses are consumed by AI clients and agents rather than parsed directly by application code. Markdown is easier for models to read and avoids spending context tokens on deeply nested JSON syntax.
Existing agents should continue to work in normal use because they receive tool responses as model context and can read Markdown directly.
This change could break clients that assume the default response is JSON and parse it as such. I expect this to be uncommon because MCP tool results are primarily passed to agents. Applications that need a stable, machine-readable response should pass output=json explicitly or use the SerpApi API or an official language SDK.
Proposed behavior
search without params.output returns Markdown.
search with params.output="md" returns Markdown.
search with params.output="json" retains the current JSON response.
changed the title [-]Proposal: Make output=md the default for the MCP search tool[/-][+]Proposal: Make `output=md` the default for the MCP search tool[/+]on Aug 15, 2026
Hi I’d like to take a shot at this.
I’ve looked through the current search implementation and tests. I’m planning to switch the default to Markdown when output isn’t provided, while keeping explicit md and json behavior unchanged. I’ll add/update the relevant tests and docs as part of the change.
Activity
[-]Proposal: Make output=md the default for the MCP search tool[/-][+]Proposal: Make `output=md` the default for the MCP search tool[/+]Joseph-Mutua commentedon Sep 9, 2026
Hi I’d like to take a shot at this.
I’ve looked through the current
searchimplementation and tests. I’m planning to switch the default to Markdown whenoutputisn’t provided, while keeping explicitmdandjsonbehavior unchanged. I’ll add/update the relevant tests and docs as part of the change.I’ll open a PR once I have it working.