Skip to main content
Glama

Set an Account's Sending Window

li_set_office_hours

The hours during which this account does its own outgoing work. THREE things are gated by it: the invite drip, the scheduled Day-1/3/7/14 message drip (since 2026-09-08 — a canned follow-up landing in a live conversation at 3am is a worse signal than an overnight invite, not a better one), and the daily invite cleanup sweep. NOT gated, because a person pressing send at 23:40 means it: an ad-hoc message, a bulk send, and a reply sent from the inbox. So an invite or a scheduled follow-up due at 18:02 outside the window waits for the next opening, while a reply you send by hand goes immediately. Per account rather than global, so accounts in different geos behave correctly. end is EXCLUSIVE: 20 permits 19:59 and refuses 20:00. An end at or before the start is coerced to start+1 rather than stored, because hour >= start && hour < end is false for EVERY hour when end <= start, which would pause the account forever with nothing in the logs to say why. Read the current window with li_list_accounts.

PROSPECT-LOCAL WINDOWS (opt-in, per account): sendWindowMode account (default) is exactly the behaviour above. prospect gates the invite drip and scheduled steps by each CONTACT's timezone instead — invites inside prospectWindow.inviteStart–inviteEnd, steps inside messageStart–messageEnd, both local to the prospect, end exclusive, end <= start coerced the same way. both requires the account window AND the prospect window. A contact with no known timezone uses the account window in every mode, the daily cleanup always uses the account window, and ad-hoc/bulk/inbox sends stay ungated. An invite held longer than maxDeferHours (default 72) falls back to the account window so nobody waits for ever. Caps, pacing and every send check are unchanged. Recommended start: prospect mode, invites 8–11, messages 8–18, weekdaysOnly false. The reply carries a warning when both leaves many queued contacts with no overlapping hour.

Input Schema

NameRequiredDescriptionDefault
endNoLocal end hour, EXCLUSIVE
startNoLocal start hour, inclusive
enabledNoTurn the window on or off
timezoneNoIANA zone, e.g. Asia/Kolkata. Null/omitted falls back to the account timezone.
sessionIdNoAccount id from li_list_accounts. Needed (or sessionLabel) when you have more than one account; never guessed.
sessionLabelNoAccount by label, LinkedIn name, profile slug or member id (li_list_accounts). Needed (or sessionId) when you have more than one account; never guessed.
prospectWindowNoProspect-local hours used by the prospect and both modes; omitted fields keep their stored values
sendWindowModeNoaccount (default): the account window gates everything; prospect: each contact's local window gates invites and scheduled steps; both: both must be open

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / prospectWindow / description
      Added value: +"Prospect-local hours used by the prospect and both modes; omitted fields keep their stored values"
    • addedInput schema / properties / prospectWindow / properties / inviteEnd / description
      Added value: +"Prospect's local hour invites stop, EXCLUSIVE"
    • addedInput schema / properties / prospectWindow / properties / inviteStart / description
      Added value: +"Prospect's local hour invites may start, inclusive"
    • addedInput schema / properties / prospectWindow / properties / maxDeferHours / description
      Added value: +"Hours an invite may wait for the prospect window before the account window applies (default 72)"
    • addedInput schema / properties / prospectWindow / properties / messageEnd / description
      Added value: +"Prospect's local hour scheduled steps stop, EXCLUSIVE"
    • addedInput schema / properties / prospectWindow / properties / messageStart / description
      Added value: +"Prospect's local hour scheduled steps may start, inclusive"
    • addedInput schema / properties / prospectWindow / properties / weekdaysOnly / description
      Added value: +"true = never on the prospect's Saturday or Sunday"
    • addedInput schema / properties / sendWindowMode / description
      Added value: +"account (default): the account window gates everything; prospect: each contact's local window gates invites and scheduled steps; both: both must be open"
    • addedInput schema / properties / sessionId / description
      Added value: +"Account id from li_list_accounts. Needed (or sessionLabel) when you have more than one account; never guessed."
    • addedInput schema / properties / sessionLabel / description
      Added value: +"Account by label, LinkedIn name, profile slug or member id (li_list_accounts). Needed (or sessionId) when you have more than one account; never guessed."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With only readOnlyHint=false, destructiveHint=false and openWorldHint=false available, the description carries the full behavioral burden and does so richly: it discloses the exclusivity rule, the silent-failure guard for end <= start (and why it exists), the maxDeferHours fallback, and the `warning` field returned when `both` mode strands contacts. This is exactly the mutation-safety context an agent needs.

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?

The definition is long but justified by an 8-parameter nested tool, and it is structured with a clear gating model first, then the prospect-local windows section with explicit defaults and a recommendation. A few clauses editorialize (the 3am-follow-up aside), which is charming but not strictly load-bearing; still, almost every sentence conveys a rule or default.

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 write tool with a nested object, an enum, and no output schema, the description covers the full behavioral contract, provides defaults for every prospectWindow field, states the read path (li_list_accounts), and notes the returned warning. Nothing an agent needs to invoke it correctly appears to be missing.

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 the baseline is 3, and the description genuinely adds meaning: it explains that `end` is exclusive with a worked example (20 permits 19:59, refuses 20:00), and that end <= start is coerced to start+1 rather than stored. It also elaborates on how `sendWindowMode` values interact and how `maxDeferHours`/no-timezone contacts fall back, going beyond the schema's terse per-field text.

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 definition names a specific resource (the account's sending window) and precisely scopes what it controls, but it opens by defining the resource rather than stating the action ('set/update the window'), so the verb is inferred from the title and parameters. An agent can still tell this apart from siblings like li_hold_sending or li_pause_account, which affect sending state rather than the hours during which sends are permitted.

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?

It gives clear operational context — which queues are gated (invite drip, scheduled drips, cleanup sweep) and which are not (ad-hoc, bulk, inbox replies) — and even offers a concrete recommended configuration for prospect mode. It stops short of explicit when-to-use/when-not routing against alternative tools, but the conditions that select each mode are spelled out.

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