From b2ea47cf77e080055ca291b466738c68c59a674d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gemma=20Torell=C3=B3?= Date: Thu, 12 Nov 2026 12:42:25 +0100 Subject: [PATCH] feat(mcp): posts and comments reads default to view=summary for agents Co-Authored-By: Claude Opus 5.5 --- scripts/generate_mcp_tools.py | 3 +++ tests/test_mcp_agent_views.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/generate_mcp_tools.py b/scripts/generate_mcp_tools.py index 283278a5..dc88900a 100644 --- a/scripts/generate_mcp_tools.py +++ b/scripts/generate_mcp_tools.py @@ -68,6 +68,9 @@ "getAnalytics": "summary", "listAds": "summary", "listAdSets": "summary", + "listPosts": "summary", + "getInboxPostComments": "summary", + "listInboxComments": "summary", } AGENT_DEPTHS = { diff --git a/tests/test_mcp_agent_views.py b/tests/test_mcp_agent_views.py index b110257f..6ab38276 100644 --- a/tests/test_mcp_agent_views.py +++ b/tests/test_mcp_agent_views.py @@ -72,8 +72,8 @@ def _operation(operation_id: str, name: str, values: list[str], default: str) -> } -@pytest.mark.parametrize("operation_id", ["listAds", "listAdSets"]) -def test_ads_listings_default_to_the_summary_view_for_agents( +@pytest.mark.parametrize("operation_id", ["listAds", "listAdSets", "listPosts", "getInboxPostComments", "listInboxComments"]) +def test_listings_default_to_the_summary_view_for_agents( mcp_generator, operation_id: str ) -> None: operation = _operation(operation_id, "view", ["full", "summary"], "full")