Skip to main content
Glama

Save a drafted story privately before asking

save_story_draft

Call it when the confirm answer's share.save is present: right after you draft the story and BEFORE you show it and ask, and again after the user asks for an edit. It publishes nothing and counts nothing: the draft waits on the user's own page /me/stories ("Waiting for your OK"), where they can post it later, with or without their GitHub name, or discard it. If they say Post now, call post_story (or post_story_anonymous) as usual, with the same rounds_survived; the saved draft then goes. Send rounds_survived here as you would to post_story: the saved draft posts from /me with it, and a later save without it keeps it. The answer's saved says whether it was kept; when not, reason is off, invalid, unavailable or gone, and note says it for the user. A hunt this key may not tell (not the account's, no confirmed real bug), a text with a secret, a contact or the account's names, and a revoked or expired key are refused with an error, as post_story refuses them.

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": {
      "review_id": "<review_id>",
      "text": "<text>"
    },
    "name": "save_story_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe defect, in English: exactly 2 sentences, 40-220 chars, approved by the user. What could break and why nothing caught it. Anonymised – no repo, paths, routes, vendors, ticket numbers or test counts.
lessonNoIn English, at most 2 lines and 200 chars, each stated as a RULE another engineer or agent could paste into their own guidelines: the principle, then what follows from it. This is the half people keep – write it.
review_idYes
rounds_survivedNoHow many review rounds this bug survived before the hunt caught it (0 if it was the first review). Be honest: this is the score.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / rounds_survived
      Added value: +{
      +  "description": "How many review rounds this bug survived before the hunt caught it (0 if it was the first review). Be honest: this is the score.",
      +  "maximum": 50,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does most of it well: it discloses side effects (nothing published, nothing counted, draft surfaced on /me/stories), the lifecycle (draft disappears after posting), field persistence across saves (a later save without rounds_survived keeps the prior value), and concrete refusal causes including a key that may not tell the hunt, secrets/contacts/names, and revoked or expired keys. It stops short of naming the permission or scoping rules that gate saving, and the error payload is only gestured at rather than characterised.

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

Conciseness3/5

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

The trigger condition is front-loaded, which is the right choice, but the prose is dense and clause-heavy — nested parentheticals, jargon like 'A hunt this key may not tell', and a single run-on sentence carrying sequencing, lifecycle, field propagation and refusals in one breath. It rewards careful reading rather than skimming, and some of the phrasing could be split without losing content.

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 mutation tool with no annotations and no output schema, the description compensates well by documenting the answer fields (`saved`, `reason` with its value set, `note`) and the refusal cases. The main residual gap is that the consequence of a failed save on the user's flow is only implied, and loading the precondition on an external `confirm` answer means an agent missing that context has nothing to fall back on.

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 75%, and the description adds genuinely new meaning for rounds_survived beyond the schema's 'this is the score': it is sent as it would be to post_story, stored with the draft, reposted from /me, and preserved when a later save omits it. That is real operational semantics. The `lesson` and `review_id` parameters are not addressed at all, leaving part of the surface to the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys the core action unmistakably: the draft is saved privately, waits on the user's own /me/stories page as 'Waiting for your OK', and 'publishes nothing and counts nothing'. It distinguishes this from post_story and post_story_anonymous by name. What it lacks is a plain upfront verb+resource statement — the purpose is delivered mid-sentence after a trigger condition, which makes first-read identification slower than it should be.

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?

Timing is explicit and unambiguous: call it when the confirm answer's `share.save` is present, right after drafting and BEFORE showing the story and asking, and again after the user requests an edit. The alternative path is spelled out — if the user says 'Post now', call post_story or post_story_anonymous instead — and the interaction between the two (the saved draft then goes) is explained.

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.