Skip to main content
Glama

generate_questions

Write the questions a passage answers (MIST-QG-1.1, passages in 324 languages).

Useful for FAQs, study cards and search or RAG training data. passage: up to 100,000 characters (long ones are
split into ~2,000-character chunks and the questions spread over them). n: 1 to 100 (at most 5 per 2,000
characters), or "auto" to write as many as the passage supports. language: the passage's language (detected when
left out). question_language: write the questions in another language: English or French for any passage, or one
of 30 widely spoken languages (Spanish, Hindi, Chinese, Swahili, Yoruba, Amharic...) for an English or French
passage or one in those 30.

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": {
      "passage": "<passage>"
    },
    "name": "generate_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
passageYes
languageNo
question_languageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / n / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / n / type
      Removed value: -"integer"
    • addedInput schema / properties / question_language
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Question Language"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses that long passages are split into ~2,000-character chunks with questions spread across them, that language is auto-detected when omitted, and that question_language has asymmetric support rules. It does not say what the response looks like (list of questions? pairs with answers?) or whether generation is deterministic, which are the remaining behavioral gaps.

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 and use cases, then organized parameter-by-parameter, so the reader can skim. The enumerated language lists are slightly verbose but justified because the constraints are non-obvious.

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?

For a 4-parameter generative tool with no annotations and no output schema, the definition covers inputs thoroughly and flags the chunking behavior that affects results. The only omission is the shape of the returned data, which an agent might need to know before calling.

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

Parameters5/5

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

Schema coverage is 0%, so the description must fully document the four parameters, and it does: passage length limit and chunking, n's 1–100 range plus the per-chunk cap of 5 and the 'auto' option, language's auto-detection, and question_language's supported language tiers. It adds meaning that the bare anyOf/string schema could never convey.

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?

The description opens with a specific verb+resource: 'Write the questions a passage answers', plus a named model (MIST-QG-1.1) and coverage claim (324 languages). This clearly separates it from siblings like extract_document or detect_language, which produce different artifacts.

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 names downstream applications (FAQs, study cards, search/RAG training data) which implies when to use it, but it never states exclusions, prerequisites, or which sibling to choose when the goal is extraction rather than question generation. Usage is inferred rather than directed.

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.