Skip to main content
Glama

Generate a content brief

generate_brief
Destructive

Generate an AI content brief for a tracked prompt (Pro plans). Returns the brief in the result ({ ok: true, queryId, brief }, Markdown) — show it from there; it is also saved for the dashboard. Each call writes a new brief that replaces the saved one and uses one generation from the account's fair-use budget (get_usage), so call it again only to regenerate. queryId is a tracked prompt of this site (list_prompts, add_prompt). Refusals name the reason: no-domain (the site has no domain yet; set it in the dashboard), pro-required, provider-not-configured, unknown-query (not a tracked prompt of this site; nothing is spent), generation-budget (with limit: burst-limit clears within a minute, daily-limit and monthly-limit are the allowance), retry-later (a short outage on our side; try again shortly) and generation-failed.

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": {
      "queryId": "<queryId>"
    },
    "name": "generate_brief"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoOptional on a connected app: the site chosen with select_site is used. If given, it must be that site. With an API key it is required: a site id from list_sites.
queryIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the call overwrites the saved brief (explaining the destructiveHint), consumes one generation from a fair-use budget, and is plan-gated to Pro. It also enumerates every refusal code with its cause and whether budget is spent, which the annotations cannot convey.

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?

Front-loaded with purpose, then return shape, then cost, then error semantics — a sound ordering. The refusal-code enumeration is long but each entry carries actionable information; minor tightening (e.g. grouping budget codes) would help.

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?

With no output schema, the description supplies the response shape ({ ok: true, queryId, brief } as Markdown) and tells the agent to render from there. Combined with plan gating, budget cost, persistence semantics and the full refusal taxonomy, an agent has everything needed to call and handle results correctly.

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 coverage is 50% and the supplied siteId description already covers the optional/required-per-auth-key behavior. The description compensates for the bare queryId parameter by defining it as a tracked prompt of this site and pointing to list_prompts/add_prompt, but adds no format or validation detail. Baseline 3 is appropriate.

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 and resource ('Generate an AI content brief for a tracked prompt') and immediately disambiguates the input ('queryId is a tracked prompt of this site'). No sibling tool generates briefs, and the description makes clear this is a per-prompt generation action rather than a listing or retrieval tool.

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 usage constraint — 'call it again only to regenerate' — and routes the agent to list_prompts/add_prompt for obtaining a queryId and get_usage for budget checking. It lacks an explicit 'do not use this when…' against a named alternative, but the relevant sibling routing is present.

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.