Skip to main content
Glama
ishan-parihar

facebook-lyr

Create Photo Post

create_photo_post
Destructive

Publish a photo to Facebook as the active or specified identity. The image is validated and normalized to Facebook's feed spec before upload; if rejected, clear errors are surfaced.

Instructions

Upload a photo and publish it as the active (or specified) identity.

The image is validated and normalized (resized to Facebook's feed spec) before the upload attempt. Best-effort: modern Facebook may reject cookie-based uploads; failures surface as clear errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesLocal file path or http(s) URL of the image to post
confirmNoMust be true to publish
messageNoOptional caption/text with the photo
account_idNoOptional stored identity id to post as (default: active)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The annotation destructiveHint=true already signals mutation, but the description adds valuable context: image validation/normalization, best-effort upload that may be rejected by Facebook, and clear error surfacing. This goes beyond the annotations without contradicting them.

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?

The description is two sentences, front-loaded with the primary action, followed by relevant operational details. It is concise and every sentence contributes meaningful information.

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?

With a complete schema, output schema, and annotations, the description adequately covers the tool's purpose, image processing, and failure modes. It does not explain return values, but the output schema covers that. Minor gaps like the confirm parameter behavior are already in the schema.

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

Parameters3/5

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

Schema description coverage is 100% for all four parameters, so the baseline is 3. The description adds some context about the source being validated and normalized, but does not add new parameter-level meaning beyond what the schema already provides.

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?

The description clearly states a specific action ('Upload a photo and publish it') and distinguishes this tool from siblings like create_video_post and create_carousel_post. It also specifies the identity context, making the purpose unmistakable.

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

Usage Guidelines3/5

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

The description implies use for photo posts but does not explicitly contrast with alternatives like create_video_post or create_carousel_post. It provides a useful caveat about cookie-based uploads but no explicit when-to-use or when-not-to-use guidance.

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/ishan-parihar/facebook-lyr'

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