Skip to main content
Glama

Sergio by Serviche

Re-read a lead source's past emails

reread_lead_source_backlog
Idempotent

Re-reads a lead-source sender's past emails so each becomes a lead, as saving a sender as New leads does. One bounded pass per call: pass next_before from the response back as before until it comes back null. Changes nothing that was already read (the run's state is the database). domain is the sender's own email domain or number; before is the cursor from the previous pass. Pass the same idempotency_key when retrying.

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": {
      "domain": "<domain>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "reread_lead_source_backlog"
  }
}

Input Schema

NameRequiredDescriptionDefault
beforeNo
domainYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false; the description adds context the annotations cannot, namely that prior already-read data is untouched ('the run's state is the database') and that each call is a bounded pass rather than a full sweep. That resolves the main worry an agent would have about a non-read-only ingestion tool.

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?

Four dense sentences, each carrying distinct information (purpose, paging loop, safety, parameter meanings, retry hygiene), with the outcome front-loaded. Slightly overloaded for its length but no filler.

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?

There is no output schema, yet the description supplies the one return field the agent needs to continue — next_before — and the termination condition (null). Combined with the idempotency retry rule and the state guarantee, this is enough to invoke correctly; what is missing is any sense of scope, volume, or what 'becoming a lead' produces downstream.

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 only 33% (only idempotency_key is documented in the schema), so the description must compensate — and it does, defining domain as 'the sender's own email domain or number' and before as 'the cursor from the previous pass'. That covers all three parameters meaningfully, though it does not constrain the accepted domain/number formats beyond maxLength.

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 gives a specific verb and resource ('Re-reads a lead-source sender's past emails') plus the resulting effect ('each becomes a lead, as saving a sender as New leads does'), so the agent knows exactly what the tool does. It does not name or differentiate itself from any sibling tool, which keeps it short of a 5.

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 gives a concrete invocation protocol — 'One bounded pass per call: pass next_before from the response back as before until it comes back null' — which tells the agent how to drive the pagination loop. It offers no guidance on when to choose this over alternatives such as track_conversation_as_lead or read, and no preconditions beyond that loop.

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.

Resources