Skip to content

fix: rename fetch_feeds_tool to refresh_feeds_tool#3

Merged
fatherlinux merged 1 commit into
mainfrom
feat/rename-fetch-to-refresh
Jun 14, 2026
Merged

fix: rename fetch_feeds_tool to refresh_feeds_tool#3
fatherlinux merged 1 commit into
mainfrom
feat/rename-fetch-to-refresh

Conversation

@fatherlinux

Copy link
Copy Markdown
Member

Summary

  • Rename fetch_feeds_toolrefresh_feeds_tool to make the network cost obvious
  • Updated docstring warns it's slow (30-60s) and recommends list_entries for reading cached content
  • Updated README.md and CLAUDE.md references

Test plan

  • uv run ruff check src/ passes
  • Tool appears as refresh_feeds_tool in MCP tool listing
  • Agents calling the old name get a clear error rather than silent failure

🤖 Generated with Claude Code

The old name sounded like a read operation but triggers a live network
crawl of all feed sources (30-60s). Agents calling it inline during
briefings hit gateway timeouts. The new name makes the cost obvious.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@fatherlinux fatherlinux merged commit 3a7fa20 into main Jun 14, 2026
6 of 10 checks passed
@fatherlinux fatherlinux deleted the feat/rename-fetch-to-refresh branch June 14, 2026 17:30

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the fetch_feeds_tool to refresh_feeds_tool in the server implementation, README, and CLAUDE.md, updating its description to clarify that it crawls feed sources over the network. The review feedback correctly identifies that the updated docstring in server.py refers to list_entries instead of the actual tool name list_entries_tool, which could cause issues or hallucinations for LLMs consuming the tool definition.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

async def refresh_feeds_tool(feed_id: int | None = None) -> str:
"""Crawl feed sources over the network for new content. Slow — takes 30-60s for all feeds.

Prefer the systemd timer for background updates. Use list_entries to read cached content.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The docstring refers to list_entries to read cached content, but the actual registered tool name is list_entries_tool. Since MCP tool docstrings are directly exposed to LLMs, using the incorrect tool name can cause the LLM to fail or hallucinate when trying to call the recommended tool. Please update this to list_entries_tool.

Suggested change
Prefer the systemd timer for background updates. Use list_entries to read cached content.
Prefer the systemd timer for background updates. Use list_entries_tool to read cached content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant