Skip to main content
Glama

Run a workflow

run_workflow

Several steps in one job, run by Puley in the background, with every result saved and emailed. workflow: trend-to-video (about: a niche; finds this week's most-watched videos on platform tiktok, instagram or youtube, works out why they work, writes an original video, records the voice-over and makes the clip), customers-and-openers (about: the kind of business, place: the town, offer: what is being sold; lists them with phones and websites and a first message for each), competitor-report (about: the competitor's name or website; its live ads and site, what it pushes and the gaps), product-ad-pack (about: the product; image or image_link: its photo; an ad picture, a video from the photo, a voice-over and music), should-i-sell (about: a product; real search demand, what advertisers pay, the trend and a verdict), copy-how-they-grew (about: a brand; its ads, creator videos, posts, news and paid searches as moves to copy), get-recommended-by-ai (about: what is sold; offer: the business; who AI recommends and a plan to get named), new-buyers (about: what is sold; new people on X asking for it, with a reply to adapt) or ugc-ad (about: the product; a talking AI presenter video; model: woman or man), research-report (about: a question; an answer with numbered sources), fill-in-my-list (details: a pasted list of businesses or websites; place: their town; adds emails, phones and social profiles), review-report (about: a business, app or website; place: its town; what customers love and complain about, with replies), local-market-scan (about: the kind of business; place; offer: the person's own business; who leads on Google Maps and what to do), seo-plan (about: a website; fixes, pages to write, links), google-ads-starter (about: what is sold; place; offer: the website; ad groups, headlines, negatives, budget), week-of-posts (about: the business; platform; seven posts with pictures), creator-shortlist (about: the niche; platform; offer; creators checked, a message for each), should-i-buy (about: a product or its link; buy now, wait or buy used), job-shortlist (about: the job; place; offer: what matters; openings with pay and an opening line), video-ideas (about: a niche or a YouTube channel; ten ideas modelled on videos that beat their channel), channel-audit (about: a YouTube channel), video-package (about: a video's topic; titles, description, tags, two thumbnails), rising-trends (about: a market; climbing searches with monthly numbers), meeting-prep (about: a company; offer: why they are meeting; a one-page brief), content-brief (about: a search to rank for; offer: the business; a brief and a first draft), clip-finder (about: a YouTube video's link; the moments worth clipping, with times) or video-script (about: the topic; platform: youtube for long, shorts for short). model: the video model (default a low-cost one). every: day or week repeats it, stop ends a repeat. The same request again returns its progress or the finished result. Each step uses reads as usual (a video about 200).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workflow": "<workflow>",
      "about": "<about>"
    },
    "name": "run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
aboutYes
everyNo
imageNo
modelNo
offerNo
placeNo
shapeNo
countryNoUS
detailsNo
platformNotiktok
workflowYes
image_linkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / details
      Added value: +{
      +  "default": "",
      +  "title": "Details",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, open-world, non-idempotent call, so the safety bar is already set. The description adds substantial behaviour beyond them: execution is asynchronous in the background, results are persisted and emailed, a resubmission returns progress instead of duplicating, and each step consumes reads ('a video about 200'). That cost and async context is exactly what an agent needs before committing; only the lack of detail on failure/timeout behaviour keeps it from 5.

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

Conciseness2/5

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

The bulk of the definition is a single run-on sentence stacking roughly 28 workflows with nested parenthetical parameter notes, followed by more clauses appended without paragraph breaks. Almost every token carries information, but the delivery is unstructured and hard to parse, with no front-loading of the critical parts (required parameters, async behaviour, polling). Readability is the failure, not length per se.

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

Completeness5/5

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

Considering a 12-parameter, 0%-schema-coverage tool with no output schema and dozens of variants, the description supplies enough to call it correctly: required fields, per-workflow parameter needs, async/email/resubmit behaviour, and cost. An agent can construct a valid call from this text alone; the unexplained 'shape'/'country' are the only notable omissions.

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

Parameters4/5

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

Schema description coverage is 0% across 12 parameters, so the description must carry the load and it largely does: it explains that 'about' is the subject, 'place' the town, 'offer' the seller's business, 'details' a pasted list, 'image'/'image_link' the product photo, 'platform' tiktok/instagram/youtube, 'model' the video model, and 'every'/'stop' the repeat. It also maps required parameters per workflow, which is high-value. However 'country' and 'shape' are never explained, which is a real hole on a 12-parameter tool.

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

Purpose3/5

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

The opening sentence gives a real verb and resource plus an outcome: 'Several steps in one job, run by Puley in the background, with every result saved and emailed.' That is more than a restated name. But the rest collapses into a 28-item enumeration of workflow names, many of which shadow sibling tools (competitor_report, channel_audit, clip_finder, content_brief, creator_shortlist), so an agent cannot tell from this text why it should call run_workflow rather than those siblings.

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?

It does say how to re-poll ('The same request again returns its progress or the finished result') and how to repeat (every: day or week, stop ends a repeat), which is genuine usage guidance. What is missing is any statement of when this tool is preferred over the individual sibling tools, or what prerequisites (account, credits, auth) the background job requires. Guidance is implied through the workflow catalog rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources