Skip to main content
Glama

Validate guide

validate_guide
Read-onlyIdempotent

Check a guide before saving it: unknown [DIRECTIVES], undefined {VARIABLES}, secrets typed literally, steps that cannot execute, missing "Go to" start, length versus the 5-minute cap. Returns problems with line numbers and a corrected example for each, and an estimated video length. Costs nothing. Call get_guide_instructions before writing a guide.

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": {
      "content": "<content>",
      "kind": "<kind>"
    },
    "name": "validate_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesauth = login steps (empty for a page without a sign-in); main = the walkthrough that becomes the video.
deviceNoCheck for a phone or tablet run (a preset such as iphone or ipad): warns about hover steps and large zooms. Default: the project's device.
contentYesThe guide text to check, one step per line.
project_idNoWhen given, {VARIABLES} are checked against the project.

Output Schema

NameRequiredDescriptionDefault
helpNoWhere to read the rules, when there are problems.
passedYestrue when there are no problems; warnings alone do not fail a guide.
problemsYesMust be fixed before put_guide.
warningsYesWorth fixing; the guide still records.
action_stepsYesSteps the browser performs (directive-only lines excluded).
estimated_lengthYesRough video length, e.g. "2:10".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / kind / description
      Previous value: -"auth = login steps; main = the walkthrough that becomes the video."New value: +"auth = login steps (empty for a page without a sign-in); main = the walkthrough that becomes the video."
  2. Changed3 schema fields changed
    • addedOutput schema / properties / help
      Added value: +{
      +  "description": "Where to read the rules, when there are problems.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / problems / items / properties / fix
      Added value: +{
      +  "description": "A corrected example, when one applies.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / problems / items / properties / message / description
      Added value: +"The rule this line breaks."
  3. Changed2 schema fields changed
    • changedInput schema / properties / project_id / description
      Previous value: -"When given, {VARIABLES} are checked against the project and a credit estimate is returned."New value: +"When given, {VARIABLES} are checked against the project."
    • removedOutput schema / properties / estimated_credits
      Removed value: -{
      -  "description": "Present for main guides when project_id is given.",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description still adds genuinely new context: it costs nothing (relevant given get_credits and top_up exist), and it discloses the shape of the output (problems with line numbers, a corrected example per problem, an estimated video length).

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

Conciseness5/5

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

Front-loads the core action, then uses a compact clause list for the check categories, followed by return behavior, cost, and prerequisite in that order of importance. Dense but every clause carries information; nothing is padding.

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 an output schema present and rich annotations plus full parameter documentation, the description only needs to add workflow and cost context, which it does. Cost, prerequisite ordering, check semantics, and output shape are all covered, leaving nothing an agent needs to call this 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 100%, so kind, device, content, and project_id are all already documented in the input schema, which sets the baseline at 3. The description reinforces what the checks mean but adds no per-parameter syntax, format, or constraint detail beyond what the schema already supplies.

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 ("Check a guide before saving it") and then enumerates exactly what is checked: unknown [DIRECTIVES], undefined {VARIABLES}, literal secrets, non-executable steps, missing "Go to" start, and the 5-minute cap. That level of specificity distinguishes it cleanly from siblings like put_guide (which saves) and get_guide (which fetches).

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 workflow position ("before saving it") and an explicit prerequisite ("Call get_guide_instructions before writing a guide"), so the agent knows when to reach for it and what to do first. It does not state an explicit when-not condition, so it falls just short of the top band.

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.