Skip to main content
Glama

Write screenshot headings

screenshots_write_headings

Generates one-line, verb-first screenshot headings with a clear benefit and strict character limits using AI. Skips existing headings unless overwrite is set or a specific slide is targeted.

Instructions

Have the AI write the one-line heading printed on each screenshot slide, in the main locale (verb first, one benefit, at most 34 characters; 40 for scripts without case). Slides that already have a heading are kept unless overwrite is true or slideId names one slide. When the AI can see images it looks at each slide's screenshot. Background job; then read get_screenshots.

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": {
      "projectId": "<projectId>"
    },
    "name": "screenshots_write_headings"
  }
}

Input Schema

NameRequiredDescriptionDefault
aiNoAI provider used by the app for generation (see get_ai_status).
slideIdNoOnly rewrite this slide.
overwriteNoRewrite slides that already have a heading.
projectIdYesProject id (from get_overview).
directionsNoOptional creative direction for the AI, e.g. "emphasise offline use".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.7

TDQS

A4.2/5.0
Behavior4/5

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

Adds real context beyond the annotations: it is a background job whose output must be read via get_screenshots, existing content is preserved unless overwrite/slideId says otherwise (consistent with destructiveHint=false), and image visibility changes the generation behavior. It leaves unstated what happens on failure or when a project has no screenshots.

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?

Two dense sentences plus a terse follow-up note; the action and length constraint are front-loaded, the overwrite rule second, and the async read path last. No filler sentences.

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?

With no output schema, the description correctly tells the agent this is async and where to read results, and it explains the preservation semantics of a non-destructive write. Minor gaps remain around error conditions and what 'main locale' resolves to, but the essentials for calling it correctly are present.

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 description coverage is 100%, so the baseline is 3. The description does add one genuinely new rule not in the schema: naming a slideId implicitly rewrites that slide even when overwrite is false. The character-limit guidance is about the generated output rather than about input parameters.

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 with a clear owner: 'Have the AI write the one-line heading printed on each screenshot slide, in the main locale.' The 'main locale' scoping plus the follow-up pointer to get_screenshots distinguishes it from translation/manual-edit siblings.

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 clear conditional usage: existing headings are kept unless overwrite is true or slideId targets a single slide, so an agent knows which parameter combination to reach for. It does not explicitly say when to prefer a sibling such as screenshots_edit_slide or screenshots_translate instead, so no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools