Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SCM_OUTPUT_DIRNoDirectory for finished images and reels.
SCM_PENPOT_URLNoPenpot server URL.
SCM_AUTO_KEEPERNoWhether to auto-start the Penpot keeper.
SCM_BRAND_KIT_DIRYesFolder for your brand kit, picked during installation.
SCM_PENPOT_MCP_KEYNoPenpot MCP key for connecting to your design file; can be added after install.
SCM_INSTAGRAM_TOKENNoInstagram Insights access token; optional and read-only.
SCM_INSTAGRAM_ACCOUNT_IDNoInstagram account ID for Insights; optional.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Social Content plans, designs and renders social media posts from the user's own brand kit (a folder with brand.yaml, pillars.yaml, a logo, example posts and voice notes), builds the images in the user's Penpot, renders 20-30 s reels and keeps a log so nothing repeats.

  • Start every session with analyze_brand_kit.

  • New user, or the kit has problems: follow the setup guide (get_guide name "setup", or the "setup" prompt). It interviews the user and fills the kit in for them.

  • To make posts: follow the create_posts guide (get_guide name "create_posts", or the "create_posts" prompt).

  • To connect Instagram Insights: walk the user through the connect_instagram guide one step at a time.

  • Never invent facts about the brand; everything brand-specific comes from the kit.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_guideA

Returns a step-by-step guide to follow: "setup" (First-time setup: install, Penpot, the brand kit interview, Instagram and a first post, with what each piece does); "create_posts" (Make a batch of posts: plan, research, write, design in Penpot, render reels, log, deliver); "connect_instagram" (Connect Instagram Insights: set up a Meta app, generate an access token and add it to the extension).

init_brand_kitA

Creates the brand kit folder layout (logo/, style/, assets/, voice/, fonts/, output/) and example brand.yaml and pillars.yaml. Never overwrites existing files.

analyze_brand_kitA

Reads and validates the brand kit: brand, voice, design and reel note settings, topics, formats, backgrounds, layouts, rules, and which reference files exist. Run it first in every session.

save_brand_kitA

Validates and writes brand.yaml and/or pillars.yaml, usually at the end of the setup interview. Replacing settings the user already has needs overwrite: true (the old file is kept as .bak).

add_brand_fileA

Puts a logo, example post, photo or background, voice note or font into the brand kit: copied from a file or a whole folder on this computer, downloaded from a URL, or (voice notes) written from text. Images shared in the chat don't reach the extension, so ask the user where the files are saved. For images it returns small previews, so you can see the logo and example posts.

plan_batchB

Works out each post's topic and format from the rotation, and returns the recent history the batch has to avoid repeating plus the rules check_batch_plan enforces.

check_batch_planA

Checks planned posts against the history and the brand's repeat rules (angles, featured subjects, facts, backgrounds, layouts, reel styles). Returns every violation; an empty list means the plan is clear.

check_captionA

Checks a caption (and optionally its reel beat lines) against the brand kit: length, hashtag count, questions, emoji, dashes, curly quotes and words the brand never mentions.

log_postA

Adds a finished post to the brand kit's history.jsonl so later batches don't repeat it. Every post needs its caption's AI score from detect_ai_text (ai_score, as a fraction: 12.3% is 0.123).

query_historyC

Returns logged posts, newest first, optionally filtered.

detect_ai_textA

Scores text with the built-in AI-writing detector (desklib DeBERTa-v3 model, run on this computer): splits it into sentences, skips sentences under 5 words, and gives each an AI probability. The score is the mean over scored sentences, as a percentage; under the brand's ai_score_target is the goal. Score captions without their hashtags. The first use downloads the model once (about 1.7 GB).

ai_detector_statusA

Shows whether the built-in AI detector's model is downloaded. With download: true, starts the one-time download (about 1.7 GB) in the background.

get_insightsA

Pulls recent posts and their insights (reach, views, likes, comments, saves, shares, watch time) with the user's Instagram token, matches them to logged posts, and groups the results by post type, topic and format. Read-only. Reuses a pull from the last few days unless refresh is set; each pull is saved in the brand kit's insights/ folder.

penpot_statusA

Checks the Penpot MCP key, whether Penpot answers, which file the plugin has open, and the keeper's state.

penpot_executeB

Runs JavaScript in the Penpot plugin (objects: penpot, penpotUtils, storage) to build or change a post's board. Keep each call to one step.

penpot_upload_imageB

Uploads an image from this computer (for example a photo in the brand kit's assets/ or style/ folder) into the open Penpot file and keeps the result in the plugin's storage under storage_key, ready to use as a fill: {fillOpacity: 1, fillImage: storage[storage_key]}.

render_postB

Exports a Penpot board to PNG in the brand kit's output folder and reports its size.

render_reelA

Animates a finished post image into a 1080x1920 reel in one of 14 motion styles, ending on the brand's logo. With 3-7 beats it runs 20-30 s (each beat a close-up with a note in the brand's note style); without beats, 7.5 s. Silent audio track; add a sound in the app. Also writes check frames (3.0 s, first and last beat, end) to look at.

keeper_statusB

Shows whether the keeper (which keeps Penpot's MCP plugin connected) is running, who started it, and its last log lines.

keeper_startA

Starts the keeper if it isn't running (the extension normally starts it on its own) and waits until Penpot's MCP plugin is connected. If Penpot needs a sign-in, says so instead of waiting.

Prompts

Interactive templates invoked by user choice

NameDescription
setupFirst-time setup: install, Penpot, the brand kit interview, Instagram and a first post, with what each piece does
create_postsMake a batch of posts: plan, research, write, design in Penpot, render reels, log, deliver
connect_instagramConnect Instagram Insights: set up a Meta app, generate an access token and add it to the extension

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 20 tools

Disambiguation4/5

Most tools fall into clearly separated stages (brand kit setup, Penpot session, rendering, planning/checking, logging, insights, AI detection) with little genuine overlap. The main soft spot is penpot_status, whose description also reports the keeper's state, making it partially redundant with keeper_status; save_brand_kit vs init_brand_kit vs add_brand_file are close but distinguishable by their write semantics.

Naming Consistency4/5

Nearly everything follows snake_case verb_noun (save_brand_kit, check_caption, log_post, query_history, render_reel, get_insights), which is predictable. The few noun-first names (penpot_status, keeper_status, keeper_start, ai_detector_status) are consistent within their namespaces but are a visible deviation from the dominant pattern.

Tool Count4/5

20 tools is on the heavy side, but this server spans several real sub-domains (brand kit files, Penpot plugin control, rendering, batch planning, caption QA, AI scoring, Instagram insights), so most tools earn their place. A couple of status helpers (keeper_status vs penpot_status) could plausibly be merged to trim the surface.

Completeness4/5

The end-to-end pipeline is well covered: setup and brand-kit scaffolding, validation, planning and plan checking, caption and AI-score checks, rendering, history logging/query, and insights pull. Remaining gaps are minor: history is append/read-only with no way to correct or delete a logged post, and brand files can be added but not edited or removed.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues