Skip to main content
Glama

Save where a run left off

runs_mark
DestructiveIdempotent

Saves a repeated search's place: for each mailbox, the moment this run began reading it. That moment is the mailbox's mark, and the next run under the same run name reads from ten minutes before it. It is called once the run's result is ready for the person, so that no mail the person has not seen is passed over. Pass the run name and every runMark this run's messages_list_all_mailboxes answers carried. An answer that left results out, counting them under omitted, carries no runMark. Only the answer holding a mailbox's last page can carry a runMark for it. This call reaches no mailbox, changes no mail and does not count toward the person's daily limit of actions. It overwrites the mark in Multi Mail's own record and only ever moves it to a later moment. Passing the same runMarks again changes nothing. One runMark from another run name or another person refuses the whole call, and then no mark is saved. The record keeps at most 50 run names for each person. Saving a 51st name forgets the name whose newest mark is oldest. If runs_mark is not called, the next run reads again from each mailbox's saved mark, repeating some mail but missing none. A mailbox with no saved mark is read for the last 24 hours and ten minutes. A run made less often than once a day can then miss older mail in it.

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": {
      "run": "<run>",
      "runMarks": "<runMarks>"
    },
    "name": "runs_mark"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYesThe run name, as the searches were given it.
runMarksYesEvery runMark this run's answers carried, each exactly as given.

Output Schema

NameRequiredDescriptionDefault
runYesThe run whose mark was saved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations are already rich (readOnlyHint=false, destructiveHint=true, idempotentHint=true) and the description earns them: it explains the call touches no mailbox, changes no mail, is free of the daily action limit, only moves a mark later, and is a no-op when repeated. It even explains the destructive edge case — the 50-name cap forgetting the name whose newest mark is oldest — and the all-or-nothing rejection when a runMark from another run or person is passed.

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 the core mechanic and dense with load-bearing detail (idempotency, rejection, cap, fallback read window); little is filler. It is long and some sentences are convoluted (the nested 'That moment is the mailbox's mark' construction), which costs it a point.

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?

For a two-parameter, fully-described-schema tool with an output schema, nothing an agent needs is missing: input sourcing, failure modes, retention limit, and the consequence of not calling are all covered.

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 baselining at 3 would be defensible, but the description adds real meaning: 'run' must be the name the searches were given, and 'runMarks' must be *every* mark this run's answers carried, exactly as given, with the rule that omitted-page answers and non-final-page answers supply none. Only the opaque token format itself is left to the schema.

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?

Uses a specific verb and resource: it saves a repeated search's read position, one mark per mailbox, tied to a run name. It also names the producer of the input ('every runMark this run's messages_list_all_mailboxes answers carried'), so an agent can tell it apart from the listing and sweep siblings without inspecting schemas.

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?

States precisely when to call it ('once the run's result is ready for the person, so that no mail the person has not seen is passed over') and what to pass. It also gives the negative case: answers that omitted results carry no runMark, and only the answer holding a mailbox's last page carries one, plus the consequence of skipping the call entirely.

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.