Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Declare all three annotations explicitly on every MCP tool (#428)
Paulo Castellanoaf67a46b0061
diff --git a/.ai/rules/tools.md b/.ai/rules/tools.mdindex 48a7e41bb..1009328d1 100644--- a/.ai/rules/tools.md+++ b/.ai/rules/tools.md@@ -7,3 +7,6 @@ paths:## MCP tools declare their own rulesAn MCP tool declares its validation rules inline, like every FormRequest (see AGENTS.md "Backend Validation": requests are independent). Do not call a shared rules helper; the classes under app/Support/Requests/** were created in the same PR, before this rule; the owner will refactor them later, so no new code may use or extend them. Business rules live in Actions/policies so web, API and MCP enforce them identically, and the parity tests in tests/Feature/Parity prove the three surfaces agree.++## Every MCP tool declares readOnlyHint, destructiveHint and openWorldHint explicitly+The OpenAI plugin directory refuses a tool unless all three annotations are explicit booleans, and the Claude directory needs readOnlyHint or destructiveHint, so every tool carries #[IsReadOnly(bool)], #[IsDestructive(bool)] and #[IsOpenWorld(bool)], false included (follow the MCP spec: destructive = changes or removes existing data or sends something irreversible, false for purely additive writes; openWorld = can publish to public networks, fetch arbitrary URLs, call or set arbitrary external endpoints or read public catalogs, false for the private workspace, including network APIs that only read the connected account's own data such as Pinterest boards, Discord channels or TikTok creator info). A read-only tool is never destructive. Borderline cases already decided: duplicating an idea is destructive (it shifts the positions of the ideas after it); attaching media is destructive (AppendPostMedia rewrites content_type and can send a scheduled post back to approval); a note is destructive (it emails the team); creating or updating a webhook is open world (it sets an arbitrary destination); send-webhook-test-tool is not destructive (an inert ping that writes no log), while replay-webhook-log-tool is (it re-sends a real event). A token refresh during a read, like cache warming, is housekeeping and keeps the tool read-only. Add each new tool to mcpExpectedToolAnnotations() in tests/Feature/Mcp/ToolAnnotationsTest.php; the test fails when a registered tool is missing from that list.diff --git a/AGENTS.md b/AGENTS.mdindex faf84b6df..03f85d3ba 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -848,6 +848,15 @@ A controller serves **one resource**. Network-specific endpoints never pile up i- **MCP has no controllers**: one tool class per action (`app/Mcp/Tools/<Area>/<Verb><Resource>Tool.php`), never one tool that switches on the network.- Moving an endpoint between controllers keeps its URL and route name, so API clients see no change; the parity tests in `tests/Feature/Parity` must pass unchanged.+## MCP tool annotations++**Every MCP tool declares all three annotations explicitly, `false` included** (owner decision October 2026): `#[IsReadOnly(bool)]`, `#[IsDestructive(bool)]` and `#[IsOpenWorld(bool)]`, above its `#[Description]`. The OpenAI plugin directory refuses ("Not live") any tool without three explicit booleans, and the Claude directory requires `readOnlyHint` or `destructiveHint`. Annotations only describe the tool to the AI client (when to ask the user for confirmation); they never change what it does and are not rate limits.++- **readOnly**: `true` only when the tool reads or computes. Warming a cache or refreshing a token during a read still counts as read-only.+- **destructive**: `true` when the tool changes or removes existing data or sends something irreversible (updates, deletes, reorders, replacing a schedule, publishing, approving or rejecting, emails, webhook replays). `false` for purely additive writes. A read-only tool is never destructive.+- **openWorld**: `true` when the tool can publish to public networks, fetch arbitrary URLs, call or set arbitrary external endpoints, or read a public catalog. `false` inside the private workspace, including network APIs that only read the connected account's own data.+- A new tool goes into `mcpExpectedToolAnnotations()` in `tests/Feature/Mcp/ToolAnnotationsTest.php`; the test fails when a registered tool is missing from that list or has a different value. Borderline cases already decided are listed in `.ai/rules/tools.md`; follow them instead of deciding again.+## Database engines (PostgreSQL + MySQL)TryPost runs on **both PostgreSQL and MySQL**. Cloud runs PostgreSQL; a self-hosted install may pick either. Every query, migration, and test must work on both — the suite is expected to be green on each.diff --git a/app/Mcp/Tools/Analytics/GetAnalyticsPublicationTool.php b/app/Mcp/Tools/Analytics/GetAnalyticsPublicationTool.phpindex e51506f19..da7c11d3b 100644--- a/app/Mcp/Tools/Analytics/GetAnalyticsPublicationTool.php+++ b/app/Mcp/Tools/Analytics/GetAnalyticsPublicationTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get all saved metrics and metadata for a workspace analytics publication, including posts imported from a connected social network. Use the publication ID from the analytics report top posts.')]class GetAnalyticsPublicationTool extends Tool{diff --git a/app/Mcp/Tools/Analytics/GetAnalyticsReportTool.php b/app/Mcp/Tools/Analytics/GetAnalyticsReportTool.phpindex 8fa432423..44a481a71 100644--- a/app/Mcp/Tools/Analytics/GetAnalyticsReportTool.php+++ b/app/Mcp/Tools/Analytics/GetAnalyticsReportTool.php@@ -16,9 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get the current workspace analytics report for a date range (range preset 7d, 30d, mtd or custom with start and end; defaults to the last 30 days in your time zone), optionally narrowed to some channels (unknown channel ids are ignored, like the web Insights page), including summary, follower and post charts, top posts, per-account performance, data bounds, and sync coverage.')]class GetAnalyticsReportTool extends Tool{diff --git a/app/Mcp/Tools/Analytics/GetChannelInsightsTool.php b/app/Mcp/Tools/Analytics/GetChannelInsightsTool.phpindex 89239b5a1..91ce1d897 100644--- a/app/Mcp/Tools/Analytics/GetChannelInsightsTool.php+++ b/app/Mcp/Tools/Analytics/GetChannelInsightsTool.php@@ -20,9 +20,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get the insights of one channel for a date range (range preset 7d, 30d, mtd or custom with start and end; defaults to the last 30 days in your time zone), optionally narrowed by labels, untagged posts and post types: the summary, the metrics the channel reports and the metric series for the range and the previous range of the same length. In the series, posts, reach, views, impressions and profile_visits are totals of the posts published each day (or week), not daily account totals; followers is the follower count at the end of each bucket, and net_followers is the followers gained since the start of the range, so it is cumulative. growth is the monthly follower growth rate for the last 12 months (null when the channel does not report followers); it ignores the range, labels, untagged and types filters. Use list-channel-publications-tool for the ranked posts.')]class GetChannelInsightsTool extends Tool{diff --git a/app/Mcp/Tools/Analytics/ListChannelPublicationsTool.php b/app/Mcp/Tools/Analytics/ListChannelPublicationsTool.phpindex c0cdebd22..7becb5dfe 100644--- a/app/Mcp/Tools/Analytics/ListChannelPublicationsTool.php+++ b/app/Mcp/Tools/Analytics/ListChannelPublicationsTool.php@@ -20,9 +20,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the best posts of one channel in a date range, ranked by a metric (sort; defaults to the first metric the channel reports), for the current range or the previous range of the same length (period), optionally narrowed by labels, untagged posts and post types. Range preset 7d, 30d, mtd or custom with start and end; defaults to the last 30 days in your time zone. Same order as the channel Insights page; the ranking stops at the top 50 posts. Paginated: pass page to read the next page.')]class ListChannelPublicationsTool extends Tool{diff --git a/app/Mcp/Tools/ApiKey/CreateApiKeyTool.php b/app/Mcp/Tools/ApiKey/CreateApiKeyTool.phpindex 8c3d08d2f..7c5ae0c83 100644--- a/app/Mcp/Tools/ApiKey/CreateApiKeyTool.php+++ b/app/Mcp/Tools/ApiKey/CreateApiKeyTool.php@@ -15,7 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Create a new Personal Access Token (API key) for the current workspace. Returns `{token, plain_token}` like POST /api-keys: `token` is the key metadata and `plain_token` the secret, returned ONCE — store it immediately, it cannot be retrieved later.')]class CreateApiKeyTool extends Tool{diff --git a/app/Mcp/Tools/ApiKey/DeleteApiKeyTool.php b/app/Mcp/Tools/ApiKey/DeleteApiKeyTool.phpindex af9876dc5..a1e0e7ab2 100644--- a/app/Mcp/Tools/ApiKey/DeleteApiKeyTool.php+++ b/app/Mcp/Tools/ApiKey/DeleteApiKeyTool.php@@ -14,8 +14,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Revoke (delete) a Personal Access Token by ID. The current OAuth session token cannot be revoked through this tool. Existing integrations using the token will stop working.')]class DeleteApiKeyTool extends Tool{diff --git a/app/Mcp/Tools/ApiKey/ListApiKeysTool.php b/app/Mcp/Tools/ApiKey/ListApiKeysTool.phpindex 0401d7a5d..458cece44 100644--- a/app/Mcp/Tools/ApiKey/ListApiKeysTool.php+++ b/app/Mcp/Tools/ApiKey/ListApiKeysTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the Personal Access Tokens (API keys) for the current workspace. Returns metadata only — the secret token value is shown only once at creation. OAuth tokens (e.g. ChatGPT MCP sessions) are excluded. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListApiKeysTool extends Tool{diff --git a/app/Mcp/Tools/Idea/CreateIdeaStageTool.php b/app/Mcp/Tools/Idea/CreateIdeaStageTool.phpindex a3fcf21b8..03768993f 100644--- a/app/Mcp/Tools/Idea/CreateIdeaStageTool.php+++ b/app/Mcp/Tools/Idea/CreateIdeaStageTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Create a new idea board stage (column) at the end of the board.')]class CreateIdeaStageTool extends Tool{diff --git a/app/Mcp/Tools/Idea/CreateIdeaTool.php b/app/Mcp/Tools/Idea/CreateIdeaTool.phpindex 60d7185c2..bb1bdddcc 100644--- a/app/Mcp/Tools/Idea/CreateIdeaTool.php+++ b/app/Mcp/Tools/Idea/CreateIdeaTool.php@@ -17,7 +17,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Create an idea. It needs a title, a body or at least one media item. Media IDs must belong to the current workspace. Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class CreateIdeaTool extends Tool{diff --git a/app/Mcp/Tools/Idea/DeleteIdeaStageTool.php b/app/Mcp/Tools/Idea/DeleteIdeaStageTool.phpindex b18dcc0a4..d433b8c5b 100644--- a/app/Mcp/Tools/Idea/DeleteIdeaStageTool.php+++ b/app/Mcp/Tools/Idea/DeleteIdeaStageTool.php@@ -15,8 +15,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete an idea board stage. Its ideas are kept and move to the unassigned column.')]class DeleteIdeaStageTool extends Tool{diff --git a/app/Mcp/Tools/Idea/DeleteIdeasTool.php b/app/Mcp/Tools/Idea/DeleteIdeasTool.phpindex 88b1473b0..da75034d0 100644--- a/app/Mcp/Tools/Idea/DeleteIdeasTool.php+++ b/app/Mcp/Tools/Idea/DeleteIdeasTool.php@@ -16,8 +16,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete one or more ideas (up to 500) with their media. IDs that are not in the current workspace are ignored. Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class DeleteIdeasTool extends Tool{diff --git a/app/Mcp/Tools/Idea/DuplicateIdeaTool.php b/app/Mcp/Tools/Idea/DuplicateIdeaTool.phpindex 94e8e9b53..f89849be8 100644--- a/app/Mcp/Tools/Idea/DuplicateIdeaTool.php+++ b/app/Mcp/Tools/Idea/DuplicateIdeaTool.php@@ -15,7 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Duplicate an idea with its media and labels. The copy is placed right after the original in its stage. Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class DuplicateIdeaTool extends Tool{diff --git a/app/Mcp/Tools/Idea/GetIdeaTool.php b/app/Mcp/Tools/Idea/GetIdeaTool.phpindex 1da8187d0..528589d63 100644--- a/app/Mcp/Tools/Idea/GetIdeaTool.php+++ b/app/Mcp/Tools/Idea/GetIdeaTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get one idea with its title, body, stage, media and labels. Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class GetIdeaTool extends Tool{diff --git a/app/Mcp/Tools/Idea/ListIdeaStagesTool.php b/app/Mcp/Tools/Idea/ListIdeaStagesTool.phpindex a0866f9d1..dfa1d96c6 100644--- a/app/Mcp/Tools/Idea/ListIdeaStagesTool.php+++ b/app/Mcp/Tools/Idea/ListIdeaStagesTool.php@@ -13,9 +13,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the idea board stages (columns) of the current workspace in board order, with the number of ideas in each.')]class ListIdeaStagesTool extends Tool{diff --git a/app/Mcp/Tools/Idea/ListIdeasTool.php b/app/Mcp/Tools/Idea/ListIdeasTool.phpindex 78575da21..3c4e352e5 100644--- a/app/Mcp/Tools/Idea/ListIdeasTool.php+++ b/app/Mcp/Tools/Idea/ListIdeasTool.php@@ -16,9 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the ideas of the current workspace, newest first, paginated. Filters combine like the ideas page: stages (stage IDs) with unassigned (no stage), and labels (label IDs) with untagged (no label). Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class ListIdeasTool extends Tool{diff --git a/app/Mcp/Tools/Idea/MoveIdeasTool.php b/app/Mcp/Tools/Idea/MoveIdeasTool.phpindex a4ca5d908..46c89445c 100644--- a/app/Mcp/Tools/Idea/MoveIdeasTool.php+++ b/app/Mcp/Tools/Idea/MoveIdeasTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Move an idea to a stage (or to no stage) and set the order of that column. Pass in idea_ids every idea of the target stage, including the moved one, in the new order; a stale list is refused. Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class MoveIdeasTool extends Tool{diff --git a/app/Mcp/Tools/Idea/ReorderIdeaStagesTool.php b/app/Mcp/Tools/Idea/ReorderIdeaStagesTool.phpindex 3bdd2ff69..9d783013a 100644--- a/app/Mcp/Tools/Idea/ReorderIdeaStagesTool.php+++ b/app/Mcp/Tools/Idea/ReorderIdeaStagesTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Reorder the idea board stages. Pass every stage ID of the workspace in the new order.')]class ReorderIdeaStagesTool extends Tool{diff --git a/app/Mcp/Tools/Idea/UpdateIdeaStageTool.php b/app/Mcp/Tools/Idea/UpdateIdeaStageTool.phpindex 5e2d3d311..29567db54 100644--- a/app/Mcp/Tools/Idea/UpdateIdeaStageTool.php+++ b/app/Mcp/Tools/Idea/UpdateIdeaStageTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Rename an idea board stage.')]class UpdateIdeaStageTool extends Tool{diff --git a/app/Mcp/Tools/Idea/UpdateIdeaTool.php b/app/Mcp/Tools/Idea/UpdateIdeaTool.phpindex 26da5b22b..664fbf4ca 100644--- a/app/Mcp/Tools/Idea/UpdateIdeaTool.php+++ b/app/Mcp/Tools/Idea/UpdateIdeaTool.php@@ -17,7 +17,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Update an idea. Only the fields you send change; media_ids and label_ids replace the stored lists. The idea must keep a title, a body or media. Ideas cannot be turned into posts through MCP; use create-post-tool with the idea text if needed.')]class UpdateIdeaTool extends Tool{diff --git a/app/Mcp/Tools/Label/CreateLabelTool.php b/app/Mcp/Tools/Label/CreateLabelTool.phpindex 0f8f17945..e0c138d96 100644--- a/app/Mcp/Tools/Label/CreateLabelTool.php+++ b/app/Mcp/Tools/Label/CreateLabelTool.php@@ -15,7 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Create a new label with a name and hex color.')]class CreateLabelTool extends Tool{diff --git a/app/Mcp/Tools/Label/DeleteLabelTool.php b/app/Mcp/Tools/Label/DeleteLabelTool.phpindex 7f7b539a4..96aaf0f10 100644--- a/app/Mcp/Tools/Label/DeleteLabelTool.php+++ b/app/Mcp/Tools/Label/DeleteLabelTool.php@@ -15,8 +15,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete a label permanently. The label is detached from all posts that referenced it. This cannot be undone.')]class DeleteLabelTool extends Tool{diff --git a/app/Mcp/Tools/Label/ListLabelsTool.php b/app/Mcp/Tools/Label/ListLabelsTool.phpindex 6db6009e5..ac42a0456 100644--- a/app/Mcp/Tools/Label/ListLabelsTool.php+++ b/app/Mcp/Tools/Label/ListLabelsTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the labels for the current workspace. Labels are colored tags used to categorize posts. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListLabelsTool extends Tool{diff --git a/app/Mcp/Tools/Label/UpdateLabelTool.php b/app/Mcp/Tools/Label/UpdateLabelTool.phpindex 252b3a8e8..af043afb1 100644--- a/app/Mcp/Tools/Label/UpdateLabelTool.php+++ b/app/Mcp/Tools/Label/UpdateLabelTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Update a label name or color.')]class UpdateLabelTool extends Tool{diff --git a/app/Mcp/Tools/Platform/ListContentTypesTool.php b/app/Mcp/Tools/Platform/ListContentTypesTool.phpindex 910baa91a..fb295f735 100644--- a/app/Mcp/Tools/Platform/ListContentTypesTool.php+++ b/app/Mcp/Tools/Platform/ListContentTypesTool.php@@ -13,9 +13,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List every platform with its content types and their rules. Per content type: max/min media count, requires_media, accept_images/accept_videos/accept_documents, accepts_gif, accepts_mov, forbids_mixed_media, max_video_duration_sec (null = no cap), max_image_bytes / max_video_bytes / max_document_bytes, aspect_ratio_min / aspect_ratio_max for images and video_aspect_ratio_min / video_aspect_ratio_max for videos (width / height, null = not checked; GIFs are never checked; auto_fits_image when images are fitted into the frame on publish instead), image_min_width / image_min_height / image_max_width / image_max_height in pixels, supports_alt_text, supports_user_tags (Instagram tags in media meta.user_tags), supports_video_cover (meta.cover_offset_ms), captionless (stories publish no text, so the text is neither sent nor measured), document_must_be_alone (a PDF must be the only attachment), supports_thread_replies and max_thread_replies (threads on X, Bluesky and Mastodon through meta.thread_replies). Per platform: allowed_media_types, default_content_type, max_content_length (the default text limit of the network; the limit of each account, such as 25000 for an X account with long posts, is max_content_length in list-social-accounts-tool), max_hashtags (Instagram: 5), alt_text_max_length and required_meta (meta needed before a post is scheduled or published; Google Business events and offers also need meta.event, and a YouTube post needs meta.title or text). Media rules never block a draft: they are checked when a post is scheduled, queued or published (create-post-tool, create-posts-tool, update-post-tool, publish-post-tool), and a post whose media breaks a rule of its content_type is rejected with a per-platform error. Call this before attaching media or choosing a content_type.')]class ListContentTypesTool extends Tool{diff --git a/app/Mcp/Tools/Post/ApprovePostTool.php b/app/Mcp/Tools/Post/ApprovePostTool.phpindex 9d01730b2..bc0b7f766 100644--- a/app/Mcp/Tools/Post/ApprovePostTool.php+++ b/app/Mcp/Tools/Post/ApprovePostTool.php@@ -18,8 +18,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Approve a post that is waiting for approval (status pending_approval). By default it is scheduled exactly as its author asked: added to the queue (next or top) or at the requested time. Pass scheduled_at (ISO 8601, in the future) to pick another time, or publish_now to publish immediately; one of them is required when the requested time has passed or the author asked to publish now. Only members who publish directly can approve.')]class ApprovePostTool extends Tool{diff --git a/app/Mcp/Tools/Post/AttachMediaFromUploadTool.php b/app/Mcp/Tools/Post/AttachMediaFromUploadTool.phpindex 53899b56d..0c2d5984a 100644--- a/app/Mcp/Tools/Post/AttachMediaFromUploadTool.php+++ b/app/Mcp/Tools/Post/AttachMediaFromUploadTool.php@@ -19,7 +19,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Attach a file uploaded with request-media-upload-tool to a post. The upload_token is the value request-media-upload-tool returned; the file is resolved by that token within the current workspace, then appended after the post media (to reorder or remove media, call update-post-tool with the media ids in the new order). The file type must be one the post channel accepts (allowed_media_types in list-content-types-tool). Posts that are publishing, published or failed cannot change; a scheduled post edited by a member who needs approval goes back to pending_approval. Size, video duration, GIF and MOV caps per content_type (see list-content-types-tool) are checked when the post is scheduled or published, not here. Media is added to the post itself; to give a thread reply its own media, pass the upload_token in meta.thread_replies with update-post-tool.')]class AttachMediaFromUploadTool extends Tool{diff --git a/app/Mcp/Tools/Post/AttachMediaFromUrlTool.php b/app/Mcp/Tools/Post/AttachMediaFromUrlTool.phpindex 02c7b9c46..fc0107b09 100644--- a/app/Mcp/Tools/Post/AttachMediaFromUrlTool.php+++ b/app/Mcp/Tools/Post/AttachMediaFromUrlTool.php@@ -17,7 +17,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Download images, videos, or PDF documents from public URLs and attach them to a post. Each URL is fetched, stored, and registered as a Media record on the workspace. The media is appended after the post\'s current media. Each URL must serve the file itself: redirects are not followed, and web pages, private-network hosts and files over the type\'s size ceiling are refused. Only the types the post\'s channel accepts are kept. URLs that could not be attached are listed in failed_urls, and failures gives the reason of each (unreachable, type_not_allowed, too_large, host_not_allowed) with a message. Video duration is measured on the server. Per-network size, duration, GIF and MOV caps (see list-content-types-tool) are enforced when the post is scheduled or published. Supported files: JPEG, PNG, GIF and WebP images (HEIC and HEIF too when the server can convert them), MP4 and MOV videos, and PDF. Each download must finish within 20 seconds and fit the server limits (by default 10 MB and 67 megapixels for an image, 1 GB for a video, 100 MB for a PDF). Media is added to the post itself; to give a thread reply its own media, pass it in meta.thread_replies with update-post-tool.')]class AttachMediaFromUrlTool extends Tool{diff --git a/app/Mcp/Tools/Post/ClearPostRecurrenceTool.php b/app/Mcp/Tools/Post/ClearPostRecurrenceTool.phpindex 20584ee79..9e76c4b17 100644--- a/app/Mcp/Tools/Post/ClearPostRecurrenceTool.php+++ b/app/Mcp/Tools/Post/ClearPostRecurrenceTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Stop a post from repeating: removes its recurrence rule. The post itself and its next scheduled time stay as they are.')]class ClearPostRecurrenceTool extends Tool{diff --git a/app/Mcp/Tools/Post/CreatePostNoteTool.php b/app/Mcp/Tools/Post/CreatePostNoteTool.phpindex 3915c96d0..e07d200dd 100644--- a/app/Mcp/Tools/Post/CreatePostNoteTool.php+++ b/app/Mcp/Tools/Post/CreatePostNoteTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Add a note (internal team comment) to a post. Notes are never published to the network. Every other workspace member is emailed about it; on a post pending approval, only the approvers and the member who asked are.')]class CreatePostNoteTool extends Tool{diff --git a/app/Mcp/Tools/Post/CreatePostTool.php b/app/Mcp/Tools/Post/CreatePostTool.phpindex a0df84d9a..08a85db01 100644--- a/app/Mcp/Tools/Post/CreatePostTool.php+++ b/app/Mcp/Tools/Post/CreatePostTool.php@@ -28,7 +28,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Create one post for one social account in the current workspace: a draft, a post scheduled at a custom time, a post queued in the channel\'s next free slot (queue: next) or first slot (queue: top), a queue post in one specific free slot (queue_slot, an instant from list-free-slots-tool), or a post published now. When the acting member needs approval in this workspace, a scheduled, queued or publish-now post is stored with status pending_approval instead and waits for approve-post-tool. Use create-posts-tool to create a batch. Use list-content-types-tool to discover valid content_types. To publish a thread on X, Bluesky or Mastodon, put the follow-up posts in meta.thread_replies: up to 24 replies published under the post, each {text, media} with up to 4 media items given by url, id or upload_token, e.g. [{"text": "2/ ..."}, {"text": "3/ ...", "media": [{"url": "https://..."}]}]. Each reply must fit the text limit of the account and follows the media rules of a post on that network. Before a post can be scheduled or published it needs: TikTok meta.privacy_level (get-tiktok-creator-info-tool), Pinterest meta.board_id (list-pinterest-boards-tool), Discord meta.channel_id (list-discord-channels-tool), Google Business events and offers meta.event (title and dates), YouTube a title (meta.title, or the first line of the text); list-content-types-tool lists them per platform as required_meta. A scheduled or published post also needs text or media.')]class CreatePostTool extends Tool{diff --git a/app/Mcp/Tools/Post/CreatePostsTool.php b/app/Mcp/Tools/Post/CreatePostsTool.phpindex facb23311..02c43f233 100644--- a/app/Mcp/Tools/Post/CreatePostsTool.php+++ b/app/Mcp/Tools/Post/CreatePostsTool.php@@ -24,7 +24,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Create one independent post per destination in the current workspace, as the web composer does when several channels are selected: each destination becomes its own post on its own channel, and the posts share a post_group_id. Each destination may override the shared content, media, content_type and meta. status draft keeps them editable, scheduled schedules them at scheduled_at or in each channel queue (queue: next or top), publishing publishes them now; one specific slot (queue_slot) is not taken here, use create-post-tool or move-post-to-slot-tool for that. When the acting member needs approval in this workspace, scheduled, queued and publish-now posts are stored with status pending_approval and wait for approve-post-tool. To publish a thread on X, Bluesky or Mastodon, put the follow-up posts in meta.thread_replies: up to 24 replies published under the post, each {text, media} with up to 4 media items given by url, id or upload_token, e.g. [{"text": "2/ ..."}, {"text": "3/ ...", "media": [{"url": "https://..."}]}]. Each reply must fit the text limit of the account and follows the media rules of a post on that network. Before a post can be scheduled or published it needs: TikTok meta.privacy_level (get-tiktok-creator-info-tool), Pinterest meta.board_id (list-pinterest-boards-tool), Discord meta.channel_id (list-discord-channels-tool), Google Business events and offers meta.event (title and dates), YouTube a title (meta.title, or the first line of the text); list-content-types-tool lists them per platform as required_meta. A scheduled or published post also needs text or media.')]class CreatePostsTool extends Tool{diff --git a/app/Mcp/Tools/Post/DeletePostNoteTool.php b/app/Mcp/Tools/Post/DeletePostNoteTool.phpindex 82a20a9d5..ee4ab92fc 100644--- a/app/Mcp/Tools/Post/DeletePostNoteTool.php+++ b/app/Mcp/Tools/Post/DeletePostNoteTool.php@@ -17,8 +17,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete a note from a post. Only the note author can delete it. This cannot be undone.')]class DeletePostNoteTool extends Tool{diff --git a/app/Mcp/Tools/Post/DeletePostTool.php b/app/Mcp/Tools/Post/DeletePostTool.phpindex 7d7d21043..9ee1462c6 100644--- a/app/Mcp/Tools/Post/DeletePostTool.php+++ b/app/Mcp/Tools/Post/DeletePostTool.php@@ -14,8 +14,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete a post from TryPost permanently; this cannot be undone. A post is never removed from the network where it was published. Posts that are publishing, published or failed cannot be changed or deleted. A member who needs approval may delete only posts they wrote, or requests they made that are still pending approval.')]class DeletePostTool extends Tool{diff --git a/app/Mcp/Tools/Post/GetPostMetricsTool.php b/app/Mcp/Tools/Post/GetPostMetricsTool.phpindex ce28a5528..a14dac8da 100644--- a/app/Mcp/Tools/Post/GetPostMetricsTool.php+++ b/app/Mcp/Tools/Post/GetPostMetricsTool.php@@ -13,9 +13,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Read the latest saved analytics of a published TryPost post, including reactions, comments, saves, reach, views, and watch time where supported. Values may lag the provider until the next analytics job. metrics is "unsupported" for an unpublished post or a network without analytics.')]class GetPostMetricsTool extends Tool{diff --git a/app/Mcp/Tools/Post/GetPostTool.php b/app/Mcp/Tools/Post/GetPostTool.phpindex 3c43057e9..4bf77b201 100644--- a/app/Mcp/Tools/Post/GetPostTool.php+++ b/app/Mcp/Tools/Post/GetPostTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get a specific post by ID. Times are UTC (Y-m-d H:i:s). Returns its content, media, labels, status, schedule_mode, scheduled_at, published_at, recurrence, approval fields (approval_requested_by, approved_by and their times), origin, post_group_id, and for its platform the content_type, meta (thread_replies included), status, error_message and platform_url.')]class GetPostTool extends Tool{diff --git a/app/Mcp/Tools/Post/ListPostNotesTool.php b/app/Mcp/Tools/Post/ListPostNotesTool.phpindex c097963ca..bbc311d19 100644--- a/app/Mcp/Tools/Post/ListPostNotesTool.php+++ b/app/Mcp/Tools/Post/ListPostNotesTool.php@@ -16,9 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the notes (internal team comments) on a post, newest first. Notes are never published to the network. Each note has its body and its author (id, name, photo_url). Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListPostNotesTool extends Tool{diff --git a/app/Mcp/Tools/Post/ListPostsTool.php b/app/Mcp/Tools/Post/ListPostsTool.phpindex d6df4d505..1078f8a88 100644--- a/app/Mcp/Tools/Post/ListPostsTool.php+++ b/app/Mcp/Tools/Post/ListPostsTool.php@@ -17,9 +17,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List posts for the current workspace, ordered by scheduled date (newest first). Optional filters: status (draft|scheduled|pending_approval|published|failed), search (matches against post content), channels (social account IDs), labels (label IDs) with untagged (posts without labels), like the publish page filters. Unknown IDs match nothing. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListPostsTool extends Tool{diff --git a/app/Mcp/Tools/Post/PreviewPostTool.php b/app/Mcp/Tools/Post/PreviewPostTool.phpindex db4f4fcc2..020e31be9 100644--- a/app/Mcp/Tools/Post/PreviewPostTool.php+++ b/app/Mcp/Tools/Post/PreviewPostTool.php@@ -13,9 +13,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Preview how a post will be sent to its channel without publishing: the exact text the network gets (X links defused when that is on), next to the original content, with length stats. Use it to check a text before scheduling.')]class PreviewPostTool extends Tool{diff --git a/app/Mcp/Tools/Post/PublishPostTool.php b/app/Mcp/Tools/Post/PublishPostTool.phpindex 0b586842d..7d09a467c 100644--- a/app/Mcp/Tools/Post/PublishPostTool.php+++ b/app/Mcp/Tools/Post/PublishPostTool.php@@ -21,8 +21,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Publish a post now, schedule it at a custom time (scheduled_at) or put it in the channel queue (queue). Works on drafts and on scheduled posts. Use update-post-tool first to change its content, content_type or meta. It is validated like a scheduled post: text limits, required meta, the media rules of its content_type (see list-content-types-tool) and thread replies; a failure names the platform and field, and nothing is published. Posts that are publishing, published or failed cannot be changed or deleted. When the acting member needs approval in this workspace, the post is stored with status pending_approval instead and waits for approve-post-tool. Before a post can be scheduled or published it needs: TikTok meta.privacy_level (get-tiktok-creator-info-tool), Pinterest meta.board_id (list-pinterest-boards-tool), Discord meta.channel_id (list-discord-channels-tool), Google Business events and offers meta.event (title and dates), YouTube a title (meta.title, or the first line of the text); list-content-types-tool lists them per platform as required_meta. A scheduled or published post also needs text or media.')]class PublishPostTool extends Tool{diff --git a/app/Mcp/Tools/Post/RejectPostTool.php b/app/Mcp/Tools/Post/RejectPostTool.phpindex 8eb4024dc..3daf8d05b 100644--- a/app/Mcp/Tools/Post/RejectPostTool.php+++ b/app/Mcp/Tools/Post/RejectPostTool.php@@ -15,7 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Reject a post that is waiting for approval (status pending_approval). The post goes back to drafts for its author; no reason is stored. Only members who publish directly can reject.')]class RejectPostTool extends Tool{diff --git a/app/Mcp/Tools/Post/RequestMediaUploadTool.php b/app/Mcp/Tools/Post/RequestMediaUploadTool.phpindex 5b5a42b8e..596b93ce1 100644--- a/app/Mcp/Tools/Post/RequestMediaUploadTool.php+++ b/app/Mcp/Tools/Post/RequestMediaUploadTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Issue a one-shot signed POST URL that lets the user upload a local file (image, video, or PDF document) directly to this workspace. Accepted types: JPEG, PNG, GIF, WebP, MP4, MOV, PDF, plus HEIC/HEIF photos (converted to JPEG) when the server can convert them. Returns an upload_token, upload_url, max_bytes, and max_bytes_by_type — those are the server ceilings (max_bytes equals the video cap; an image is also refused above 67 megapixels by default); each network enforces its own, usually smaller, size / duration / format caps at schedule or publish time, so check list-content-types-tool for the post\'s enabled content_types first. Video duration is measured on the server after the upload. Upload the file with one multipart/form-data POST to upload_url, the file in the form field named by field_name (`media`), e.g. `curl -F media=@path/to/file "<upload_url>"`; hand that command to the user or run it from the MCP client. The URL works once, until expires_at; ask for a new one for each file. A refused file answers 422 with the reason. The upload is kept 24 hours (unused uploads are then deleted). After upload, pass the upload_token as a media item to create-post-tool, create-posts-tool or update-post-tool, or call attach-media-from-upload-tool(post_id, upload_token), before it expires. A token is spent by the first post that takes it; to put the same file on another post, pass that post\'s media id instead. A file already online can skip the upload: pass its url as a media item or call attach-media-from-url-tool.')]class RequestMediaUploadTool extends Tool{diff --git a/app/Mcp/Tools/Post/SetPostRecurrenceTool.php b/app/Mcp/Tools/Post/SetPostRecurrenceTool.phpindex 4c9aa25e1..92741aaf0 100644--- a/app/Mcp/Tools/Post/SetPostRecurrenceTool.php+++ b/app/Mcp/Tools/Post/SetPostRecurrenceTool.php@@ -24,7 +24,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Make a scheduled post repeat: every `interval` days, weeks, months or years, `times` more times. The post must be scheduled with a time, and the last occurrence must fall on or before 2037-12-31 23:59:59 UTC. Each occurrence keeps the same local time in the channel time zone. Only members who publish directly can set a recurrence.')]class SetPostRecurrenceTool extends Tool{diff --git a/app/Mcp/Tools/Post/UpdatePostNoteTool.php b/app/Mcp/Tools/Post/UpdatePostNoteTool.phpindex 0dfc79ec7..c3d56c625 100644--- a/app/Mcp/Tools/Post/UpdatePostNoteTool.php+++ b/app/Mcp/Tools/Post/UpdatePostNoteTool.php@@ -17,7 +17,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Edit the text of a note on a post. Only the note author can edit it. No email is sent.')]class UpdatePostNoteTool extends Tool{diff --git a/app/Mcp/Tools/Post/UpdatePostTool.php b/app/Mcp/Tools/Post/UpdatePostTool.phpindex e75bafadd..fe25090c7 100644--- a/app/Mcp/Tools/Post/UpdatePostTool.php+++ b/app/Mcp/Tools/Post/UpdatePostTool.php@@ -26,7 +26,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Update one post for its existing social account. Caption, media, content_type, meta (platform settings, merged with the stored ones), status, schedule, queue and labels may change; content_type and meta are top-level fields because a post has exactly one social account, which is fixed. When the acting member needs approval in this workspace, a scheduled, queued or publish-now update is stored with status pending_approval instead. meta is merged with the stored settings: send null for a key to clear it; thread_replies replaces the whole list. To place the post in one specific free slot use move-post-to-slot-tool. Posts that are publishing, published or failed cannot be changed or deleted. To publish a thread on X, Bluesky or Mastodon, put the follow-up posts in meta.thread_replies: up to 24 replies published under the post, each {text, media} with up to 4 media items given by url, id or upload_token, e.g. [{"text": "2/ ..."}, {"text": "3/ ...", "media": [{"url": "https://..."}]}]. Each reply must fit the text limit of the account and follows the media rules of a post on that network. Before a post can be scheduled or published it needs: TikTok meta.privacy_level (get-tiktok-creator-info-tool), Pinterest meta.board_id (list-pinterest-boards-tool), Discord meta.channel_id (list-discord-channels-tool), Google Business events and offers meta.event (title and dates), YouTube a title (meta.title, or the first line of the text); list-content-types-tool lists them per platform as required_meta. A scheduled or published post also needs text or media.')]class UpdatePostTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/ActivateRepurposeTool.php b/app/Mcp/Tools/Repurpose/ActivateRepurposeTool.phpindex 09bf266b9..b488c274f 100644--- a/app/Mcp/Tools/Repurpose/ActivateRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/ActivateRepurposeTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Activate a repurpose. Requires at least one destination and stamps the watermark, so only videos published from now on are replicated.')]class ActivateRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/CreateRepurposeTool.php b/app/Mcp/Tools/Repurpose/CreateRepurposeTool.phpindex 2b7eb8fe9..ddb07a134 100644--- a/app/Mcp/Tools/Repurpose/CreateRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/CreateRepurposeTool.php@@ -20,7 +20,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Create a repurpose. It starts as a draft and only replicates videos published after it is activated. Source must be an Instagram or Facebook account, the only networks that allow downloading the video. Each destination picks the format it publishes as, so a Story can land as a Reel. Google Business cannot be a destination. Required meta (TikTok privacy_level, Pinterest board_id, Discord channel_id) is checked when the repurpose is activated and on every update of an active one. A source account can back one repurpose per source_format and cannot also be a destination.')]class CreateRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/DeleteRepurposeTool.php b/app/Mcp/Tools/Repurpose/DeleteRepurposeTool.phpindex 2c33e8b1f..144e5ad59 100644--- a/app/Mcp/Tools/Repurpose/DeleteRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/DeleteRepurposeTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete a repurpose. Polling stops immediately; posts it already created stay in the calendar.')]class DeleteRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/DisableRepurposeTool.php b/app/Mcp/Tools/Repurpose/DisableRepurposeTool.phpindex f94908828..8bbf64684 100644--- a/app/Mcp/Tools/Repurpose/DisableRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/DisableRepurposeTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Disable a repurpose and clear its watermark. Activating it again starts fresh, so whatever was published meanwhile stays out.')]class DisableRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/GetRepurposeTool.php b/app/Mcp/Tools/Repurpose/GetRepurposeTool.phpindex 8669d8cd0..b7a9c0d0b 100644--- a/app/Mcp/Tools/Repurpose/GetRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/GetRepurposeTool.php@@ -16,10 +16,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Read one repurpose, including the format it watches, its destinations and the last polling error.')]-#[IsReadOnly]class GetRepurposeTool extends Tool{use AuthorizesMcpTool, ResolvesWorkspaceRepurpose;diff --git a/app/Mcp/Tools/Repurpose/ListRepurposeItemsTool.php b/app/Mcp/Tools/Repurpose/ListRepurposeItemsTool.phpindex 9d2557a3a..63bf2f1ac 100644--- a/app/Mcp/Tools/Repurpose/ListRepurposeItemsTool.php+++ b/app/Mcp/Tools/Repurpose/ListRepurposeItemsTool.php@@ -17,10 +17,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List every source video a repurpose has seen, with why each was skipped when it was: already published through TryPost, no downloadable file, or a failed download. This is where to look when a video was not replicated.')]-#[IsReadOnly]class ListRepurposeItemsTool extends Tool{use AuthorizesMcpTool, ResolvesWorkspaceRepurpose;diff --git a/app/Mcp/Tools/Repurpose/ListRepurposeSourceFormatsTool.php b/app/Mcp/Tools/Repurpose/ListRepurposeSourceFormatsTool.phpindex 546e4fc4e..a9dd4e97d 100644--- a/app/Mcp/Tools/Repurpose/ListRepurposeSourceFormatsTool.php+++ b/app/Mcp/Tools/Repurpose/ListRepurposeSourceFormatsTool.php@@ -13,10 +13,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the video formats a repurpose can watch a source account for, such as reels, feed videos and stories. Use these values when creating or updating a repurpose.')]-#[IsReadOnly]class ListRepurposeSourceFormatsTool extends Tool{use AuthorizesMcpTool;diff --git a/app/Mcp/Tools/Repurpose/ListRepurposesTool.php b/app/Mcp/Tools/Repurpose/ListRepurposesTool.phpindex 7a1305c1b..148d378ce 100644--- a/app/Mcp/Tools/Repurpose/ListRepurposesTool.php+++ b/app/Mcp/Tools/Repurpose/ListRepurposesTool.php@@ -16,10 +16,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the repurposes of the current workspace. A repurpose watches one source account for one video format and republishes every new video to its destinations. Videos published through TryPost are never replicated.')]-#[IsReadOnly]class ListRepurposesTool extends Tool{use AuthorizesMcpTool;diff --git a/app/Mcp/Tools/Repurpose/PauseRepurposeTool.php b/app/Mcp/Tools/Repurpose/PauseRepurposeTool.phpindex b615f9d25..9d9b9f9ff 100644--- a/app/Mcp/Tools/Repurpose/PauseRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/PauseRepurposeTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Pause a repurpose. Polling stops but the watermark is kept, so resuming continues from where it left off.')]class PauseRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/ResumeRepurposeTool.php b/app/Mcp/Tools/Repurpose/ResumeRepurposeTool.phpindex efb2b0ec8..7aa35bc70 100644--- a/app/Mcp/Tools/Repurpose/ResumeRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/ResumeRepurposeTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Resume a paused repurpose from where it stopped.')]class ResumeRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Repurpose/UpdateRepurposeTool.php b/app/Mcp/Tools/Repurpose/UpdateRepurposeTool.phpindex de1d8ba51..ae0198278 100644--- a/app/Mcp/Tools/Repurpose/UpdateRepurposeTool.php+++ b/app/Mcp/Tools/Repurpose/UpdateRepurposeTool.php@@ -21,7 +21,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Update a repurpose. Changing the source account or the watched format resets the watermark, so only videos published after the change are replicated. Required meta (TikTok privacy_level, Pinterest board_id, Discord channel_id) is checked when the repurpose is activated and on every update of an active one. A source account can back one repurpose per source_format and cannot also be a destination.')]class UpdateRepurposeTool extends Tool{diff --git a/app/Mcp/Tools/Signature/CreateSignatureTool.php b/app/Mcp/Tools/Signature/CreateSignatureTool.phpindex 1d2df32ac..c7ebf8c37 100644--- a/app/Mcp/Tools/Signature/CreateSignatureTool.php+++ b/app/Mcp/Tools/Signature/CreateSignatureTool.php@@ -15,7 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Create a new signature with a name and content (hashtags, links, custom text, etc.). A signature is not added automatically to any post: append its content to the post content yourself.')]class CreateSignatureTool extends Tool{diff --git a/app/Mcp/Tools/Signature/DeleteSignatureTool.php b/app/Mcp/Tools/Signature/DeleteSignatureTool.phpindex c101f6b26..5b5382fc5 100644--- a/app/Mcp/Tools/Signature/DeleteSignatureTool.php+++ b/app/Mcp/Tools/Signature/DeleteSignatureTool.php@@ -15,8 +15,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete a signature permanently. This cannot be undone.')]class DeleteSignatureTool extends Tool{diff --git a/app/Mcp/Tools/Signature/ListSignaturesTool.php b/app/Mcp/Tools/Signature/ListSignaturesTool.phpindex dbaed7559..bd54179eb 100644--- a/app/Mcp/Tools/Signature/ListSignaturesTool.php+++ b/app/Mcp/Tools/Signature/ListSignaturesTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the signatures for the current workspace. Signatures are reusable text blocks (hashtags, links, custom text) that you can append to a post content; a signature is not added automatically to any post. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListSignaturesTool extends Tool{diff --git a/app/Mcp/Tools/Signature/UpdateSignatureTool.php b/app/Mcp/Tools/Signature/UpdateSignatureTool.phpindex 4261da391..ac3ebe51d 100644--- a/app/Mcp/Tools/Signature/UpdateSignatureTool.php+++ b/app/Mcp/Tools/Signature/UpdateSignatureTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Update a signature name or content.')]class UpdateSignatureTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/CopyPostingScheduleTool.php b/app/Mcp/Tools/SocialAccount/CopyPostingScheduleTool.phpindex afe3a7c3a..d5b088892 100644--- a/app/Mcp/Tools/SocialAccount/CopyPostingScheduleTool.php+++ b/app/Mcp/Tools/SocialAccount/CopyPostingScheduleTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Copy the posting schedule of another channel of the workspace onto this one. The source must have a schedule. Queued posts whose slot no longer exists are re-placed. Only workspace admins can copy it.')]class CopyPostingScheduleTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/CreatePinterestBoardTool.php b/app/Mcp/Tools/SocialAccount/CreatePinterestBoardTool.phpindex f316fcb29..b6bcccfef 100644--- a/app/Mcp/Tools/SocialAccount/CreatePinterestBoardTool.php+++ b/app/Mcp/Tools/SocialAccount/CreatePinterestBoardTool.php@@ -20,7 +20,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(true)]#[Description('Create a board on a connected Pinterest account. Returns the board id, name and cover_url; use the id as meta.board_id when creating a Pinterest post.')]class CreatePinterestBoardTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/GeneratePostingScheduleTool.php b/app/Mcp/Tools/SocialAccount/GeneratePostingScheduleTool.phpindex 57fbc1a57..b309bf380 100644--- a/app/Mcp/Tools/SocialAccount/GeneratePostingScheduleTool.php+++ b/app/Mcp/Tools/SocialAccount/GeneratePostingScheduleTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Generate the posting schedule of a channel from the recommended windows of its network, for a number of posts per week (goal). Replaces the current schedule; mode is accepted for parity but has no effect today (both values generate from the goal over the network windows); queued posts whose slot no longer exists are re-placed. Only workspace admins can generate it.')]class GeneratePostingScheduleTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/GetInstagramAudioTool.php b/app/Mcp/Tools/SocialAccount/GetInstagramAudioTool.phpindex adc30606d..090fdad48 100644--- a/app/Mcp/Tools/SocialAccount/GetInstagramAudioTool.php+++ b/app/Mcp/Tools/SocialAccount/GetInstagramAudioTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(true)]#[Description('Get one Instagram audio asset by id (the meta.audio.id of a reel, or an id from search-instagram-audio-tool): title, artist, duration and fresh cover and preview links, which Instagram expires. Fails when the track is no longer available. Requires an Instagram account connected through Facebook.')]class GetInstagramAudioTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/GetPostingScheduleTool.php b/app/Mcp/Tools/SocialAccount/GetPostingScheduleTool.phpindex 92e0de949..83bff34a9 100644--- a/app/Mcp/Tools/SocialAccount/GetPostingScheduleTool.php+++ b/app/Mcp/Tools/SocialAccount/GetPostingScheduleTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Read the posting schedule of a connected channel: its time zone, weekly posting goal and the seven days with their local posting times (day 0 is Sunday). The queue places posts on these times.')]class GetPostingScheduleTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/GetTikTokCreatorInfoTool.php b/app/Mcp/Tools/SocialAccount/GetTikTokCreatorInfoTool.phpindex 78ba279f5..bb789ad7c 100644--- a/app/Mcp/Tools/SocialAccount/GetTikTokCreatorInfoTool.php+++ b/app/Mcp/Tools/SocialAccount/GetTikTokCreatorInfoTool.php@@ -18,10 +18,14 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Attributes\Name;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]#[Name('get-tiktok-creator-info-tool')]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Read what TikTok lets a connected TikTok account publish right now: privacy_level_options (the only privacy_level values allowed for this creator), comment_disabled / duet_disabled / stitch_disabled (when true, allow_comments / allow_duet / allow_stitch must stay false), max_video_post_duration_sec (the longest video TikTok accepts from this creator; it is not checked when you schedule, so compare the video duration yourself), and can_post. Call it before creating or scheduling a TikTok post and pick meta.privacy_level (destinations[].meta.privacy_level in create-posts-tool) from privacy_level_options. can_post false means TikTok banned this creator from posting. When TikTok reports a posting limit (daily cap, quota or rate limit) the tool returns an error instead: scheduled posts retry automatically once it lifts. If TikTok does not answer, the tool returns an error: retry in a moment.')]class GetTikTokCreatorInfoTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/ListDiscordChannelsTool.php b/app/Mcp/Tools/SocialAccount/ListDiscordChannelsTool.phpindex 616f72fca..a3f581e43 100644--- a/app/Mcp/Tools/SocialAccount/ListDiscordChannelsTool.php+++ b/app/Mcp/Tools/SocialAccount/ListDiscordChannelsTool.php@@ -16,7 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List Discord text/announcement channels the bot can post to for a connected Discord server. Use the returned channel id as meta.channel_id (destinations[].meta.channel_id in create-posts-tool) when creating or updating a Discord post (required to publish).')]class ListDiscordChannelsTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/ListFreeSlotsTool.php b/app/Mcp/Tools/SocialAccount/ListFreeSlotsTool.phpindex 04329eac8..bc2120965 100644--- a/app/Mcp/Tools/SocialAccount/ListFreeSlotsTool.php+++ b/app/Mcp/Tools/SocialAccount/ListFreeSlotsTool.php@@ -15,9 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the next free queue slots of a channel as UTC instants, soonest first: at most 30, within the next 90 days. A slot is free when no scheduled post and no queue request pending approval holds it. Pass one as queue_slot to create-post-tool, or use move-post-to-slot-tool for an existing post.')]class ListFreeSlotsTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/ListPinterestBoardsTool.php b/app/Mcp/Tools/SocialAccount/ListPinterestBoardsTool.phpindex a39eb7d0c..b77177d25 100644--- a/app/Mcp/Tools/SocialAccount/ListPinterestBoardsTool.php+++ b/app/Mcp/Tools/SocialAccount/ListPinterestBoardsTool.php@@ -17,7 +17,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List Pinterest boards for a connected Pinterest account. Use the returned board id as meta.board_id (destinations[].meta.board_id in create-posts-tool) when creating or updating a Pinterest post (required to publish).')]class ListPinterestBoardsTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/ListSocialAccountsTool.php b/app/Mcp/Tools/SocialAccount/ListSocialAccountsTool.phpindex 4968937dc..abc07357c 100644--- a/app/Mcp/Tools/SocialAccount/ListSocialAccountsTool.php+++ b/app/Mcp/Tools/SocialAccount/ListSocialAccountsTool.php@@ -13,9 +13,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List the connected social accounts for the current workspace (LinkedIn, X, Bluesky, Pinterest, Threads, etc.). Each account has an id, platform, display_name, username, connection status (connected, token_expired or disconnected), timezone (the channel time zone: posting times and queue slots are in it), posting_goal (posts per week, or null), has_posting_schedule (true when the account has posting times, so posts can use queue) max_content_length (the text limit of this account), long_posts and verified_badge. On X, long_posts is true for an account with a paid X subscription (Basic, Premium or Premium+) or a verified organization, and it may post up to 25000 characters; every other X account is limited to 280. verified_badge is the checkmark X shows (blue, business or government, else null); a badge alone does not mean long posts, so read long_posts or max_content_length. Both are refreshed when the account connects and once a day. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListSocialAccountsTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/MovePostToSlotTool.php b/app/Mcp/Tools/SocialAccount/MovePostToSlotTool.phpindex ee35eb249..85407199a 100644--- a/app/Mcp/Tools/SocialAccount/MovePostToSlotTool.php+++ b/app/Mcp/Tools/SocialAccount/MovePostToSlotTool.php@@ -18,7 +18,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Move a scheduled post of a channel onto one of its free queue slots (a UTC instant from list-free-slots-tool); it becomes a queue post in that slot. A slot that is taken, off the schedule or held by a request pending approval is refused. Only members who publish directly can move posts.')]class MovePostToSlotTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/ReorderQueueTool.php b/app/Mcp/Tools/SocialAccount/ReorderQueueTool.phpindex 1f009d855..0c03f46f1 100644--- a/app/Mcp/Tools/SocialAccount/ReorderQueueTool.php+++ b/app/Mcp/Tools/SocialAccount/ReorderQueueTool.php@@ -15,7 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Reorder the queue of a channel. post_ids lists the first queued posts of the channel in the new order; the posts swap among the slots they already hold. The ids must be exactly the first reorderable queued posts of the channel, otherwise the queue changed and the call is refused. Only members who publish directly can reorder.')]class ReorderQueueTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/SearchInstagramAudioTool.php b/app/Mcp/Tools/SocialAccount/SearchInstagramAudioTool.phpindex 77dd77822..000ad1390 100644--- a/app/Mcp/Tools/SocialAccount/SearchInstagramAudioTool.php+++ b/app/Mcp/Tools/SocialAccount/SearchInstagramAudioTool.php@@ -20,7 +20,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(true)]#[Description('Search Instagram audio (licensed music and original sounds) to attach to a reel, for an Instagram account connected through Facebook. Omit q for what is trending. Use a returned id as meta.audio.id (with optional title, artist, audio_volume and video_volume from 0 to 100) on an instagram_reel post. Results are cached for ten minutes; a workspace may make '.InstagramAudio::LOOKUPS_PER_MINUTE.' uncached lookups per minute.')]class SearchInstagramAudioTool extends Tool{diff --git a/app/Mcp/Tools/SocialAccount/UpdatePostingScheduleTool.php b/app/Mcp/Tools/SocialAccount/UpdatePostingScheduleTool.phpindex b6231889d..8012f8513 100644--- a/app/Mcp/Tools/SocialAccount/UpdatePostingScheduleTool.php+++ b/app/Mcp/Tools/SocialAccount/UpdatePostingScheduleTool.php@@ -19,7 +19,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Replace the posting schedule of a channel: time zone, weekly posting goal and the seven days (day 0 is Sunday) with their posting times: at most 4 unique HH:mm times per day, in the channel time zone. A null posting_schedule clears it. Queued posts whose slot no longer exists are re-placed into the first free slots, and a time zone change moves every queued post to the same local clock time in the new zone. Only workspace admins can edit it.')]class UpdatePostingScheduleTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/CreateWebhookTool.php b/app/Mcp/Tools/Webhook/CreateWebhookTool.phpindex 12d8266f7..13403ec82 100644--- a/app/Mcp/Tools/Webhook/CreateWebhookTool.php+++ b/app/Mcp/Tools/Webhook/CreateWebhookTool.php@@ -18,8 +18,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;use RuntimeException;+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(true)]#[Description('Create an outgoing webhook for the current workspace. Returns the signing secret — it can be read later with get-webhook-tool or rotated with rotate-webhook-secret-tool. Private or local endpoints are rejected. Creating does not send a test request. Each delivery is a JSON POST signed in the X-Webhook-Signature header (HMAC-SHA256 of the body with the signing secret). After 5 failed deliveries in a row the webhook is paused and the account owner is emailed.')]class CreateWebhookTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/DeleteWebhookTool.php b/app/Mcp/Tools/Webhook/DeleteWebhookTool.phpindex f5f30f63a..f77c5a44a 100644--- a/app/Mcp/Tools/Webhook/DeleteWebhookTool.php+++ b/app/Mcp/Tools/Webhook/DeleteWebhookTool.php@@ -16,8 +16,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Delete a webhook and its delivery logs permanently. This cannot be undone.')]class DeleteWebhookTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/GetWebhookTool.php b/app/Mcp/Tools/Webhook/GetWebhookTool.phpindex 45f7ee9bd..05fedeafc 100644--- a/app/Mcp/Tools/Webhook/GetWebhookTool.php+++ b/app/Mcp/Tools/Webhook/GetWebhookTool.php@@ -15,9 +15,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get a webhook by ID, including the signing secret. Verify deliveries with HMAC-SHA256 of the JSON body; the hex digest is sent as X-Webhook-Signature.')]class GetWebhookTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/ListWebhookLogsTool.php b/app/Mcp/Tools/Webhook/ListWebhookLogsTool.phpindex 600394308..e1648851c 100644--- a/app/Mcp/Tools/Webhook/ListWebhookLogsTool.php+++ b/app/Mcp/Tools/Webhook/ListWebhookLogsTool.php@@ -16,9 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List recent delivery logs for a webhook, newest first, including payload and response body. Use replay-webhook-log-tool with a log id to resend a delivery. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListWebhookLogsTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/ListWebhooksTool.php b/app/Mcp/Tools/Webhook/ListWebhooksTool.phpindex 17fec47be..855f0ff84 100644--- a/app/Mcp/Tools/Webhook/ListWebhooksTool.php+++ b/app/Mcp/Tools/Webhook/ListWebhooksTool.php@@ -14,9 +14,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('List outgoing webhooks for the current workspace. Signing secrets are omitted — use get-webhook-tool to read a secret. Paginated with the app page size: pass page; the response carries total, per_page, current_page and last_page.')]class ListWebhooksTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/ReplayWebhookLogTool.php b/app/Mcp/Tools/Webhook/ReplayWebhookLogTool.phpindex f78970963..7d73d8959 100644--- a/app/Mcp/Tools/Webhook/ReplayWebhookLogTool.php+++ b/app/Mcp/Tools/Webhook/ReplayWebhookLogTool.php@@ -16,9 +16,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsOpenWorld]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Replay a webhook delivery log. Dispatches a new signed delivery with a new log ID using the original payload data, even if the webhook is paused or disabled.')]class ReplayWebhookLogTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/RotateWebhookSecretTool.php b/app/Mcp/Tools/Webhook/RotateWebhookSecretTool.phpindex 7bb22aaeb..f0e1ba12d 100644--- a/app/Mcp/Tools/Webhook/RotateWebhookSecretTool.php+++ b/app/Mcp/Tools/Webhook/RotateWebhookSecretTool.php@@ -17,8 +17,12 @@ use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsDestructive]+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(false)]#[Description('Rotate the webhook signing secret. The previous secret stops working immediately. The new secret is returned in the response.')]class RotateWebhookSecretTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/SendWebhookTestTool.php b/app/Mcp/Tools/Webhook/SendWebhookTestTool.phpindex d2294d9e8..f7277ddaa 100644--- a/app/Mcp/Tools/Webhook/SendWebhookTestTool.php+++ b/app/Mcp/Tools/Webhook/SendWebhookTestTool.php@@ -16,10 +16,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;use RuntimeException;-#[IsOpenWorld]+#[IsReadOnly(false)]+#[IsDestructive(false)]+#[IsOpenWorld(true)]#[Description('Send a signed webhook.test ping to the webhook endpoint. Use this to verify the receiver is reachable. Does not create a delivery log.')]class SendWebhookTestTool extends Tool{diff --git a/app/Mcp/Tools/Webhook/UpdateWebhookTool.php b/app/Mcp/Tools/Webhook/UpdateWebhookTool.phpindex 8aaa6a711..1cab3a769 100644--- a/app/Mcp/Tools/Webhook/UpdateWebhookTool.php+++ b/app/Mcp/Tools/Webhook/UpdateWebhookTool.php@@ -21,8 +21,14 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;+use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;use RuntimeException;+#[IsReadOnly(false)]+#[IsDestructive(true)]+#[IsOpenWorld(true)]#[Description('Update a webhook endpoint, subscribed events, or status (enabled or disabled). Re-enabling a paused webhook resets consecutive failures. Private or local endpoints are rejected. Updating does not send a test request.')]class UpdateWebhookTool extends Tool{diff --git a/app/Mcp/Tools/Workspace/GetWorkspaceTool.php b/app/Mcp/Tools/Workspace/GetWorkspaceTool.phpindex fad9b6485..d37258bec 100644--- a/app/Mcp/Tools/Workspace/GetWorkspaceTool.php+++ b/app/Mcp/Tools/Workspace/GetWorkspaceTool.php@@ -12,9 +12,13 @@ use Laravel\Mcp\Response;use Laravel\Mcp\ResponseFactory;use Laravel\Mcp\Server\Attributes\Description;use Laravel\Mcp\Server\Tool;+use Laravel\Mcp\Server\Tools\Annotations\IsDestructive;+use Laravel\Mcp\Server\Tools\Annotations\IsOpenWorld;use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;-#[IsReadOnly]+#[IsReadOnly(true)]+#[IsDestructive(false)]+#[IsOpenWorld(false)]#[Description('Get the current workspace (the one this connection acts in: id, name, timestamps) and what the caller may do there: me.is_admin (manages members, settings, channels and posting times), me.requires_approval (true when the caller\'s scheduled, queued and publish-now posts are stored as pending_approval until an approver uses approve-post-tool) and me.publishes_directly.')]class GetWorkspaceTool extends Tool{diff --git a/tests/Feature/Mcp/ToolAnnotationsTest.php b/tests/Feature/Mcp/ToolAnnotationsTest.phpnew file mode 100644index 000000000..732b8c25d--- /dev/null+++ b/tests/Feature/Mcp/ToolAnnotationsTest.php@@ -0,0 +1,171 @@+<?php++declare(strict_types=1);++use App\Mcp\Servers\TryPostServer;++/**+ * @return array<string, array{readOnlyHint: mixed, destructiveHint: mixed, openWorldHint: mixed}>+ */+function mcpToolAnnotations(): array+{+ $tools = (new ReflectionClass(TryPostServer::class))->getDefaultProperties()['tools'];++ return collect($tools)+ ->map(fn (string $tool): array => app($tool)->toArray())+ ->mapWithKeys(fn (array $tool): array => [$tool['name'] => (array) $tool['annotations']])+ ->all();+}++/**+ * @return array<string, array{0: bool, 1: bool, 2: bool}> readOnlyHint, destructiveHint, openWorldHint per tool+ */+function mcpExpectedToolAnnotations(): array+{+ return [+ // Posts+ 'list-posts-tool' => [true, false, false],+ 'get-post-tool' => [true, false, false],+ 'create-post-tool' => [false, true, true],+ 'create-posts-tool' => [false, true, true],+ 'update-post-tool' => [false, true, true],+ 'publish-post-tool' => [false, true, true],+ 'approve-post-tool' => [false, true, true],+ 'reject-post-tool' => [false, true, false],+ 'preview-post-tool' => [true, false, false],+ 'delete-post-tool' => [false, true, false],+ 'attach-media-from-url-tool' => [false, true, true],+ 'request-media-upload-tool' => [false, false, false],+ 'attach-media-from-upload-tool' => [false, true, false],+ 'get-post-metrics-tool' => [true, false, false],+ 'list-post-notes-tool' => [true, false, false],+ 'create-post-note-tool' => [false, true, false],+ 'update-post-note-tool' => [false, true, false],+ 'delete-post-note-tool' => [false, true, false],+ 'set-post-recurrence-tool' => [false, true, true],+ 'clear-post-recurrence-tool' => [false, true, false],++ // Analytics+ 'get-analytics-report-tool' => [true, false, false],+ 'get-analytics-publication-tool' => [true, false, false],+ 'get-channel-insights-tool' => [true, false, false],+ 'list-channel-publications-tool' => [true, false, false],++ // Platforms, signatures and labels+ 'list-content-types-tool' => [true, false, false],+ 'list-signatures-tool' => [true, false, false],+ 'create-signature-tool' => [false, false, false],+ 'update-signature-tool' => [false, true, false],+ 'delete-signature-tool' => [false, true, false],+ 'list-labels-tool' => [true, false, false],+ 'create-label-tool' => [false, false, false],+ 'update-label-tool' => [false, true, false],+ 'delete-label-tool' => [false, true, false],++ // Ideas+ 'list-ideas-tool' => [true, false, false],+ 'get-idea-tool' => [true, false, false],+ 'create-idea-tool' => [false, false, false],+ 'update-idea-tool' => [false, true, false],+ 'delete-ideas-tool' => [false, true, false],+ 'duplicate-idea-tool' => [false, true, false],+ 'move-ideas-tool' => [false, true, false],+ 'list-idea-stages-tool' => [true, false, false],+ 'create-idea-stage-tool' => [false, false, false],+ 'update-idea-stage-tool' => [false, true, false],+ 'delete-idea-stage-tool' => [false, true, false],+ 'reorder-idea-stages-tool' => [false, true, false],++ // Channels, queue and network lookups+ 'list-social-accounts-tool' => [true, false, false],+ 'get-posting-schedule-tool' => [true, false, false],+ 'update-posting-schedule-tool' => [false, true, false],+ 'generate-posting-schedule-tool' => [false, true, false],+ 'copy-posting-schedule-tool' => [false, true, false],+ 'list-free-slots-tool' => [true, false, false],+ 'reorder-queue-tool' => [false, true, false],+ 'move-post-to-slot-tool' => [false, true, false],+ 'list-pinterest-boards-tool' => [true, false, false],+ 'create-pinterest-board-tool' => [false, false, true],+ 'list-discord-channels-tool' => [true, false, false],+ 'search-instagram-audio-tool' => [true, false, true],+ 'get-instagram-audio-tool' => [true, false, true],+ 'get-tiktok-creator-info-tool' => [true, false, false],++ // Repurpose+ 'list-repurposes-tool' => [true, false, false],+ 'get-repurpose-tool' => [true, false, false],+ 'create-repurpose-tool' => [false, false, false],+ 'update-repurpose-tool' => [false, true, true],+ 'activate-repurpose-tool' => [false, true, true],+ 'pause-repurpose-tool' => [false, true, false],+ 'resume-repurpose-tool' => [false, true, true],+ 'disable-repurpose-tool' => [false, true, false],+ 'delete-repurpose-tool' => [false, true, false],+ 'list-repurpose-items-tool' => [true, false, false],+ 'list-repurpose-source-formats-tool' => [true, false, false],++ // Webhooks+ 'list-webhooks-tool' => [true, false, false],+ 'get-webhook-tool' => [true, false, false],+ 'create-webhook-tool' => [false, false, true],+ 'update-webhook-tool' => [false, true, true],+ 'delete-webhook-tool' => [false, true, false],+ 'send-webhook-test-tool' => [false, false, true],+ 'rotate-webhook-secret-tool' => [false, true, false],+ 'list-webhook-logs-tool' => [true, false, false],+ 'replay-webhook-log-tool' => [false, true, true],++ // Workspace and API keys+ 'get-workspace-tool' => [true, false, false],+ 'list-api-keys-tool' => [true, false, false],+ 'create-api-key-tool' => [false, false, false],+ 'delete-api-key-tool' => [false, true, false],+ ];+}++test('every tool declares readOnlyHint, destructiveHint and openWorldHint as explicit booleans', function () {+ foreach (mcpToolAnnotations() as $name => $annotations) {+ foreach (['readOnlyHint', 'destructiveHint', 'openWorldHint'] as $hint) {+ expect($annotations)->toHaveKey($hint, message: "{$name} has no {$hint}");+ expect($annotations[$hint])->toBeBool("{$name} {$hint} is not a boolean");+ }+ }+});++test('a read-only tool is never destructive', function () {+ foreach (mcpToolAnnotations() as $name => $annotations) {+ if ($annotations['readOnlyHint'] ?? false) {+ expect($annotations['destructiveHint'] ?? null)->toBeFalse("{$name} is read-only but destructive");+ }+ }+});++test('list and get tools are read-only, create tools write and delete tools are destructive', function () {+ foreach (mcpToolAnnotations() as $name => $annotations) {+ if (str($name)->startsWith(['list-', 'get-'])) {+ expect($annotations['readOnlyHint'] ?? null)->toBeTrue("{$name} should be read-only");+ }++ if (str($name)->startsWith('create-')) {+ expect($annotations['readOnlyHint'] ?? null)->toBeFalse("{$name} should not be read-only");+ }++ if (str($name)->startsWith('delete-')) {+ expect($annotations['destructiveHint'] ?? null)->toBeTrue("{$name} should be destructive");+ }+ }+});++test('each tool is annotated as expected', function (string $name) {+ [$readOnly, $destructive, $openWorld] = mcpExpectedToolAnnotations()[$name];+ $annotations = mcpToolAnnotations()[$name] ?? [];++ expect($annotations['readOnlyHint'] ?? null)->toBe($readOnly)+ ->and($annotations['destructiveHint'] ?? null)->toBe($destructive)+ ->and($annotations['openWorldHint'] ?? null)->toBe($openWorld);+})->with(fn (): array => array_keys(mcpExpectedToolAnnotations()));++test('the expected annotations list exactly the registered tools', function () {+ expect(array_keys(mcpExpectedToolAnnotations()))->toEqualCanonicalizing(array_keys(mcpToolAnnotations()));+});