Skip to main content
Glama

Generate prompts

generate_prompts
Idempotent

Run CiteLadder's prompt generator for the project, as the Prompt Builder's Generate step does, once the user agreed to the run. The suggestions are staged for review and never tracked: only the user's Accept in CiteLadder's Prompts review (review_url) activates them. Spends AI credits, so call it once per agreed run: choose a new run_key for each agreed run and resend the same run_key on a retry, which returns the staged result instead of running again. distribution sets the branded and competitor-alternative shares, intent mix and personas; seed_source and seed_query_ids come from read_seed_queries; run_context is a note for this run only. A shortfall is reported with its reasons, never filled.

Input Schema

NameRequiredDescriptionDefault
countNoHow many suggestions to stage; omit for the default.
run_keyYesA key you choose once for this agreed run, such as a new random UUID. Resend it unchanged on a retry; a new run needs a new key.
topic_idsNoTopic ids from confirm_topics or read_prompt_portfolio to cover; omit for every topic.
project_idYesA project id that list_projects returned.
run_contextNoA short note for this run only, such as a season or offering to focus on; never saved as a business fact.
seed_sourceNoThe search data that may steer wording: search_console, search_intelligence or none; omit to read every source.
distributionNoShares of the run (0–1): branded_share names the brand, comparison_share asks for alternatives to a competitor, the rest is unbranded. intent_mix weights informational, commercial and transactional questions; personas are buyers to balance across. Omit for an unbranded run.
prompt_set_idNoA prompt set id from read_prompt_portfolio; omit when the project has only one prompt set.
seed_query_idsNoThe read_seed_queries ids the user kept for that source; omit for all of them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that suggestions are only staged and "never tracked" until the user Accepts via review_url, that the call consumes AI credits, and that the shortfall is reported but never filled. The run_key idempotency contract is spelled out in operational terms (same key on retry returns the staged result), which complements rather than repeats idempotentHint.

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

Conciseness4/5

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

Purpose and the agreed-run precondition are front-loaded, and most sentences carry operational weight (credit spend, retry, staging, shortfall). The distribution sentence duplicates what the schema already says about branded/comparison/intent shares, making it the one line that could be trimmed.

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?

For a 9-parameter, credit-consuming, non-destructive mutation with no output schema, the description covers what an agent needs: consent gate, cost, staging/activation lifecycle, retry semantics, and the fact that shortfalls surface as reported reasons. Return behavior is described qualitatively (staged result, review_url), which compensates for the absent output schema.

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 coverage is 100%, so a 3 is the baseline; the description adds genuine value by explaining the provenance of parameters — seed_source/seed_query_ids from read_seed_queries, topic_ids from confirm_topics or read_prompt_portfolio, prompt_set_id from read_prompt_portfolio — and clarifying that run_context is a one-off note never saved as a business fact. The distribution explanation largely restates the schema text, which is why it isn't a 5.

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?

States a specific verb + resource ("Run CiteLadder's prompt generator for the project") and anchors it to the UI equivalent ("the Prompt Builder's Generate step"), which clearly separates it from siblings like prepare_add_prompts, update_prompt_text, and read_prompt_portfolio. An agent knows this generates suggestions rather than mutating prompts directly.

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?

Gives a clear precondition ("once the user agreed to the run") plus a rate/usage rule ("call it once per agreed run") and retry guidance (resend the same run_key). It also routes the agent to the correct upstream sources for parameter values (read_seed_queries, confirm_topics, read_prompt_portfolio). It stops short of explicitly contrasting with the manual alternatives such as prepare_add_prompts.

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