when-free

v0.5.0
io.github.YauhenBichel/when-free Checked 2 days ago Published 12 days ago

Which days and times am I free?

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

free_slots

Find when the user is free. Reads the user's own calendars and returns, for each day asked about, the time ranges with no events, in the user's time zone. Use it when the user needs to offer, choose or confirm times for a meeting, call or interview. Say which days in one of three ways: `days` (explicit dates), `from` and `to` (a range), or `message` (text such as a recruiter's email, from which the days and a daily window are read). With none of them, the next working days are returned. It never guesses: if a calendar cannot be read it returns an error instead of slots, and days already past a…

ParameterTypeDescription
all_day_busybooleanTreat whole-day events as busy. Default false.
buffer_minutesintegerTime kept free before and after every event. Default: the user's setting, usually 15.
daysstringSpecific days, comma-separated. ISO dates are safest: "2026-10-05, 2026-10-06". Also understood: "Thu 1 Oct, Fri 2 Oct", "tomorrow", "next week".
fromstringFirst day of a range, YYYY-MM-DD. Default: today.
hoursstringThe part of the day to offer, HH:MM-HH:MM, for example "10:00-16:00", or "morning", "afternoon", "evening". Default: the user's configured hours.
include_busybooleanAlso return what blocks each day, with event titles. Titles are private: ask only if the user wants to see them. Default false.
messagestringText to read the proposed days and hours from, for example the email asking for availability. Explicit dates are read, and when there are none, phrases relative to today: "tomorrow", "Thursday", "next…
min_minutesintegerShortest slot to return, in minutes. Set it to the meeting length. Default: the user's setting, usually 60.
timezonestringTime zone for the answer, like "Europe/London". Default: the user's zone.
tostringLast day of a range, YYYY-MM-DD.
weekendsbooleanInclude Saturday and Sunday in a range. Default false.

status

Whether the user is free right now, until when, and their next free slot. Use it for "am I free now?", "when is my next gap?" or before interrupting the user. Returns no event titles.

ParameterTypeDescription
min_minutesintegerShortest gap that counts as the next free slot. Default: the user's setting.
timezonestringTime zone for the answer, like "Europe/London". Default: the user's zone.

check_calendars

Check that the user's calendars can be read. Returns each calendar's name, how many events it holds and how many block time in the next 14 days. Use it when free_slots fails or to confirm the setup. Returns no event details and no calendar addresses.

connected_accounts

Which services are signed in on this computer (Google, Microsoft, Slack, GitHub, Notion, Linear, HubSpot). No tokens. If one is not connected, tell the user to run whenfree connect for that service.

gmail_read

Read one Gmail message by the id gmail_search returned. Does not send or change mail.

ParameterTypeDescription
idstringThe message id.

gmail_thread

Read one Gmail thread by id. Does not send or change mail.

ParameterTypeDescription
idstringThe thread id.

gmail_labels

List Gmail labels. Does not change them.

gmail_draft

Save a Gmail draft. It does not send the message.

ParameterTypeDescription
bodystringPlain text body.
subjectstringSubject.
tostringRecipient address.

drive_read

Read one Drive file as text, by the id drive_search returned. Read only.

ParameterTypeDescription
idstringThe file id.

outlook_read

Read one Outlook message by the id outlook_search returned. Does not send mail.

ParameterTypeDescription
idstringThe message id.

outlook_draft

Save an Outlook draft. It does not send the message.

ParameterTypeDescription
bodystringPlain text body.
subjectstringSubject.
tostringRecipient address.

teams_joined

List the Teams the user has joined.

teams_channels

List channels in one Team.

ParameterTypeDescription
teamstringThe team id from teams_joined.

teams_history

Read recent messages in a Teams channel.

ParameterTypeDescription
channelstringThe channel id.
maxintegerHow many to return. Default 8, at most 20.
teamstringThe team id.

teams_post

Post a message to a Teams channel. This sends the message.

ParameterTypeDescription
channelstringThe channel id.
teamstringThe team id.
textstringThe message to post.

slack_channels

List Slack channels the bot can see.

slack_history

Read recent messages in a Slack channel.

ParameterTypeDescription
channelstringThe channel id from slack_channels.
maxintegerHow many to return. Default 8, at most 20.

slack_post

Post a message to a Slack channel as the bot. This sends the message.

ParameterTypeDescription
channelstringThe channel id.
textstringThe message to post.

github_repos

List the user's GitHub repositories. Does not push or change them.

ParameterTypeDescription
maxintegerHow many to return. Default 8, at most 20.

github_issues

List open issues on one repository. Pull requests are left out.

ParameterTypeDescription
maxintegerHow many to return. Default 8, at most 20.
ownerstringThe owner.
repostringThe repository.

github_issue

Read one GitHub issue.

ParameterTypeDescription
numberintegerThe issue number.
ownerstringThe owner.
repostringThe repository.

github_comment

Post a comment on a GitHub issue. This sends the comment. It does not push code.

ParameterTypeDescription
bodystringThe comment.
numberintegerThe issue number.
ownerstringThe owner.
repostringThe repository.

notion_read

Read the text of one Notion page or block. Read only.

ParameterTypeDescription
idstringThe id notion_search returned.

linear_issues

List recent Linear issues. Read only.

ParameterTypeDescription
maxintegerHow many to return. Default 8, at most 20.

linear_issue

Read one Linear issue. Read only.

ParameterTypeDescription
idstringThe issue identifier, such as ENG-1.

hubspot_contacts

List or search HubSpot contacts. Read only.

ParameterTypeDescription
maxintegerHow many to return. Default 8, at most 20.
querystringOptional words to search for.

hubspot_deals

List or search HubSpot deals. Read only.

ParameterTypeDescription
maxintegerHow many to return. Default 8, at most 20.
querystringOptional words to search for.