Skip to main content
Glama

Generate a draft script

generate_script

Draft a script from a plain-language goal. Spends the community's credits (every model call, repairs included), and returns blocks WITHOUT creating a project — pass them to create_project (script.blocks, plus scoring_enabled: true when the draft's scoring.enabled) or replace_script. Show the person author_notes before the project opens: it lists what the model was unsure of. Put anything current (dates, line-ups, odds) in facts; the model's knowledge has a cutoff.

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": {
      "intent": "<intent>"
    },
    "name": "generate_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoThe `plan` returned by plan_script, if you called it.
typeNo`poll` asks for a one-question poll. Omit to let the intent decide.
factsNoFacts the model cannot know and must use as given (dates, line-ups, results, odds).
intentYesThe goal of the conversation in plain language, e.g. 'Measure how satisfied members are with last week's event'.
answersNoAnswers to the plan's questions: question `id` -> answer.
qualityNo`quick` (fast, ~700 credits) or `deep` (stronger, ~24,000-48,000 credits). Defaults to `deep` on paid plans, `quick` otherwise.
languageNoLanguage respondents read: any language's name (`French`, `Tagalog`) or a locale code (`fr`). Defaults to a language the intent names, else the community's.
session_idNoThe `session_id` returned by plan_script.
admin_languageNoLanguage the plan and `author_notes` are written in for the person you work for. Never sets the project's language. Omitted: inferred from the intent, and `notices` say so.
question_countNoHow many questions to draft, 1-20. Omit to let the model choose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / admin_language / description
      Added value: +"Language the plan and `author_notes` are written in for the person you work for. Never sets the project's language. Omitted: inferred from the intent, and `notices` say so."
    • addedInput schema / properties / answers / description
      Added value: +"Answers to the plan's questions: question `id` -> answer."
    • addedInput schema / properties / facts / description
      Added value: +"Facts the model cannot know and must use as given (dates, line-ups, results, odds)."
    • addedInput schema / properties / intent / description
      Added value: +"The goal of the conversation in plain language, e.g. 'Measure how satisfied members are with last week's event'."
    • addedInput schema / properties / language / description
      Added value: +"Language respondents read: any language's name (`French`, `Tagalog`) or a locale code (`fr`). Defaults to a language the intent names, else the community's."
    • addedInput schema / properties / plan / description
      Added value: +"The `plan` returned by plan_script, if you called it."
    • addedInput schema / properties / quality / description
      Added value: +"`quick` (fast, ~700 credits) or `deep` (stronger, ~24,000-48,000 credits). Defaults to `deep` on paid plans, `quick` otherwise."
    • addedInput schema / properties / question_count / description
      Added value: +"How many questions to draft, 1-20. Omit to let the model choose."
    • addedInput schema / properties / session_id / description
      Added value: +"The `session_id` returned by plan_script."
    • addedInput schema / properties / type / description
      Added value: +"`poll` asks for a one-question poll. Omit to let the intent decide."
  2. Changed1 schema field changed
    • addedInput schema / properties / admin_language
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Admin Language"
      +}
  3. Changed10 schema fields changed
    • addedInput schema / properties / answers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Answers"
      +}
    • addedInput schema / properties / facts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Facts"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Language"
      +}
    • removedInput schema / properties / locale
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Locale"
      -}
    • removedInput schema / properties / max_blocks
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Max Blocks"
      -}
    • addedInput schema / properties / plan
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Plan"
      +}
    • addedInput schema / properties / quality
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "quick",
      +        "deep"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Quality"
      +}
    • addedInput schema / properties / question_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Question Count"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Session Id"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "convo",
      +        "poll"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Type"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the generic profile (not read-only, not destructive, not idempotent). The description adds the important behaviors: it spends the community's credits on every model call including repairs, and it does not persist anything — a draft only. It stops short of stating rate limits, failure modes, or what happens to credits on an error.

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 cost, then the handoff contract. Dense but every sentence carries information. The `scoring_enabled: true` clause is elliptical enough to require a second read.

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

Completeness4/5

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

A 10-parameter, multi-step draft generator with no output schema, and the description adequately covers the return shape (blocks, author_notes, scoring) and the workflow handoff. It doesn't mention other returned fields such as `notices`, which the schema references indirectly via `admin_language`, leaving a small gap.

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 the baseline is 3, but the description adds cross-field meaning the schema can't: `facts` exists because the model's knowledge has a cutoff, and `author_notes` should be surfaced to the person. It also explains the mapping between the draft's `scoring.enabled` and the `scoring_enabled` flag on create_project.

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: "Draft a script from a plain-language goal." It immediately clarifies the boundary against siblings by saying it returns blocks WITHOUT creating a project, which separates it from create_project and replace_script.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is given: pass results to create_project (with `script.blocks` and `scoring_enabled`) or replace_script. The `plan`/`session_id` params signal plan_script as an upstream step, and the instruction to show `author_notes` before the project opens is a concrete when-to-do-what.

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.