Skip to main content
Glama
anthonyjbolo

io.github.anthonyjbolo/mcp-fb-publisher

by anthonyjbolo

fb_validate_pre_publish

Validate a Facebook post candidate against configurable guardrails including image requirement, banned topics, character limits, and duplicate content detection before publishing.

Instructions

Run all guard-rails BEFORE publishing.

Checks: - image_required (per-page config) - banned_topics (substring, accent-insensitive) - length (10..63206 chars) - anti_duplicate (Jaccard 4-grams vs recent posts, lookback per config)

Args: page_id: Numeric Meta Page ID. message: Candidate post text. image_url: Optional candidate image URL. fetch_recent: If True (default), fetches recent posts from Meta to run the anti-duplicate check. Set False to skip network. page_access_token: Optional page-scoped token (used only if fetch_recent).

Returns: Dict with verdict ("go"|"block"), per-check details, errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYes
messageYes
image_urlNo
fetch_recentNo
page_access_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses network call dependency (fetch_recent, page_access_token) and details of checks (e.g., Jaccard index). No annotation support; description carries burden well, though potential side effects are not fully covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Efficient structure: intro line, bulleted checks, parameter list. Every sentence adds value. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers checks, parameters, return value. Given no annotations and 0% schema coverage, description is thorough. Minor omission: no details on error handling or exact output dict keys.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, detailed parameter descriptions compensate fully: values, defaults, purpose (e.g., fetch_recent 'Set False to skip network'). Adds meaning beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb+resource: validates pre-publish. Lists four specific checks, differentiating from sibling tools like fb_anti_duplicate_check which only performs one check.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states 'BEFORE publishing', giving clear usage context. Describes optional fetch_recent behavior, but doesn't explicitly contrast with siblings or state when not to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anthonyjbolo/mcp-fb-publisher'

If you have feedback or need assistance with the MCP directory API, please join our Discord server