Skip to content

Commit 65ab18b

Browse files
committed
glama: add parameter descriptions to content and variants in post.publish and post.schedule
1 parent 1049ebe commit 65ab18b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export function createServer() {
141141
title: "Publish variants to one or more channels immediately",
142142
description: "Publish one or more channel variants immediately. Side effects: makes external HTTP requests to each channel platform; writes publish state to the local YAML backend; requires valid credentials in the named profile. Idempotent on (content.id, channel) — re-running with the same IDs returns cached state without re-posting. Use post.publish for immediate-only delivery; use post.schedule when any variant needs a future schedule_at; use post.drain to flush a previously built queue.",
143143
inputSchema: {
144-
content: ContentSchema,
145-
variants: z.array(VariantSchema),
144+
content: ContentSchema.describe("Content piece to publish: stable id (idempotency key), title, body_md, tags, and optional cover_image / canonical_url / cta_block / author fields. The id + channel pair is the deduplication key — the same id will not be re-posted."),
145+
variants: z.array(VariantSchema).describe("One or more channel-specific publish targets. Each entry specifies the channel slug (e.g. 'devto:main', 'reddit:ClaudeAI'), the adapted title and body, optional schedule_at for future delivery, and channel extras such as flair. Use channel.hints to check per-channel constraints before composing."),
146146
profile_name: z.string().describe("Name of the distribution profile (credentials store). Use profile.list to discover available names."),
147147
},
148148
outputSchema: publishOutputShape,
@@ -168,8 +168,8 @@ export function createServer() {
168168
title: "Schedule variants for future publishing",
169169
description: "Enqueue channel variants with schedule_at for future publishing; variants without schedule_at are published immediately. Side effects: writes entries to the local YAML schedule store; makes external HTTP requests for any immediately-published variants; requires credentials in the named profile. Idempotent on (content.id, channel). Use post.schedule when any variant needs a future publish time; use post.publish for all-immediate delivery; use post.drain to process the scheduled queue later.",
170170
inputSchema: {
171-
content: ContentSchema,
172-
variants: z.array(VariantSchema),
171+
content: ContentSchema.describe("Content piece to publish: stable id (idempotency key), title, body_md, tags, and optional cover_image / canonical_url / cta_block / author fields. The id + channel pair is the deduplication key — the same id will not be re-posted."),
172+
variants: z.array(VariantSchema).describe("One or more channel-specific publish targets. Each entry specifies the channel slug, the adapted title and body, and optionally schedule_at (ISO-8601 with timezone) for future delivery. Variants without schedule_at are published immediately; variants with schedule_at are queued for post.drain. Use channel.hints to check per-channel constraints."),
173173
profile_name: z.string().describe("Name of the distribution profile (credentials store). Use profile.list to discover available names."),
174174
},
175175
outputSchema: scheduleOutputShape,

0 commit comments

Comments
 (0)