When building Gemini/LLM integrations, always use the most current and indexed API documentation/spec first, and avoid inefficient fallback behaviors.
Apply this standard:
search_documentation is available: treat it as the only documentation source.
search_documentation, read the returned docs, and then generate code immediately.llms.txt after MCP already provided sufficient information.llms.txt) to discover pages, then fetch only the specific needed pages.gemini-api-dev skill examples.Example (MCP-first behavior):
IF tool search_documentation exists:
docs = search_documentation("How to call Structured Outputs in Gemini")
// Ensure docs are sufficient
generate code using docs
// Do NOT fetch llms.txt as a fallback
ELSE:
fetch llms.txt index
fetch only the needed page(s)
generate code using fetched docs
Enter the URL of a public GitHub repository