BriefGate

v0.10.7
io.github.sekera-radim/briefgate Checked 3 days ago Published 2 months ago

Client intake: files, copy and logins from clients, from the browser or your AI agent.

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

define_intake Create client intake

Create a new client intake request — a branded portal where the client submits logos, copy, files, credentials, and other assets. BriefGate sends the invite email and chases the client automatically until all items are collected. Call this once at the start of a project, after you know what assets you need. Returns { intake_id, portal_url, status, follow_up }. Save intake_id — you need it for all follow-up calls. The server cannot notify this conversation when the client finishes (MCP is request/response), so the returned follow_up block describes how completion will be learned: - follo…

get_intake_status Check intake progress

Check the completion status of a client intake — which items are submitted, pending, or need revision; the history of automated chase emails sent; and when the client last opened the portal. Use this to decide whether to send a manual reminder (send_chase), request a revision (request_revision), or fetch results (get_intake_results). Returns per-item status and chase history. This is also the call a scheduled check should make when no webhook is registered — see follow_up in the define_intake response for the cadence. When status becomes "completed", fetch the results with get_intake_res…

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake (e.g. "in_8f3k").

get_intake_results Collect intake results

Retrieve the typed submitted values from a client intake. Files are returned as signed download URLs that expire after 24 hours. Secrets (type=secret, e.g. passwords, API keys) are decrypted and included only in the first retrieval. Later calls return first_reveal: false in meta and omit the value, so the user should be ready to receive a secret before this tool is called on an intake that contains one. Use only_new=true to get only items submitted since the last call (useful in webhook-driven workflows). Use include_pending=true to also return partially filled items. Returns { results: {…

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake.
include_pendingbooleanInclude items not yet submitted (useful for partial progress checks). Default: false.
only_newbooleanReturn only items submitted or updated since the previous get_intake_results call. Default: false.

request_revision Request a revision

Ask the client to resubmit a specific item with a note explaining what is wrong. Use this after reviewing get_intake_results and finding an item that does not meet requirements — for example a blurry logo, copy that is too long, or a broken URL. The client is notified automatically and the item status moves to needs_revision. Returns { status: "revision_requested", item_key }.

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake.
item_key *stringThe key of the item to revise (e.g. "logo", "hero_copy").
note *stringPlain-language explanation shown to the client (e.g. "Logo is blurry — we need at least 512 px wide in SVG or PNG with a transparent background").

send_chase Send a reminder

Send a manual reminder to the client outside the automatic schedule. Use when a deadline is approaching and the client has not responded to automatic reminders, or when you want to send an SMS after email attempts have failed. The automatic chase schedule continues after this call — this is an extra nudge, not a replacement. Returns { sent: true }.

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake.
channelstringDelivery channel. Email is the only one offered.

list_intakes List intakes

List all intakes in your account, optionally filtered by status, client email, folder, or a text search. Use this to get an overview of active projects, find a specific intake by the client's email when you have lost the intake_id, check how many intakes are currently in progress, or see what's in a folder from list_folders. Returns { intakes: [...], total } where each intake includes intake_id, project_name, status, created_at, due_date, folder_id, and portal_url.

ParameterTypeDescription
client_emailstringFilter by client email address.
folder_idstringFilter by folder, using an id from list_folders. Pass the literal string "none" to see only intakes that are not in any folder.
limitnumberMaximum number of results (1–100). Default: 20.
offsetnumberPagination offset. Default: 0.
qstringFree-text search: matches a substring of project name, client name, or client email.
statusstringFilter by intake status. Omit to return all.

add_items Add items to an intake

Add new items to an already-sent intake — for example, when you realise mid-project that you also need a favicon, social media assets, or additional credentials. The client is notified about the new items. Existing items and their submitted values are not affected. Returns the updated intake object. Items must follow the same key/type/label rules as define_intake (snake_case keys, type-specific constraints).

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake.
items *arrayNew items to add. Same schema as define_intake items.

update_item Edit an item

Change one item on an intake that is already with the client — its type, label, hint, whether it is required, and which file formats it accepts. Reach for this when the field turns out to be the wrong shape: you asked for an image and the client only has their logo as a PDF, or what you asked for as a line of text is really a file. Widening the accepted formats or switching the type unblocks them without adding a duplicate item and waiving the original. The item key cannot be changed — results come back under it, so renaming would break whatever reads them. Add a new item instead. If th…

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake.
item_key *stringKey of the item to change.
constraintsobject | nullSame shape as define_intake, e.g. { "formats": ["svg","png","pdf"] }. null clears all constraints.
discard_submitted_valuebooleanGo ahead even though it throws away what the client already sent. Only set this after the call has failed once for that reason.
helpstring | nullHint under the label. null clears it.
labelstringHuman-readable label shown to the client.
optionsarray | null
patternstring | null
requiredboolean
typestring

update_intake Edit intake settings

Change settings on an intake that has already been sent — project name, due date, reminder cadence, quiet hours, which folder it's in, the client brief, or the client's name, phone, language, and timezone. Use this instead of deleting and recreating the intake when a deadline moves or the chase cadence needs to change. If any of chase_schedule, chase_interval, chase_interval_unit, chase_at_time, max_reminders, respect_quiet_hours, due_date, or client.timezone is included, every pending reminder is cancelled and the schedule is re-planned from now — reminders already sent still count towar…

ParameterTypeDescription
intake_id *stringIntake ID returned by define_intake.
chase_at_timestring | nullAnchor reminders to this 24-hour local time in the client's timezone (e.g. "07:00"), overriding quiet hours. null clears it.
chase_intervalnumberHow often to remind, only meaningful with chase_schedule="custom". Pair with chase_interval_unit.
chase_interval_unitstringUnit for chase_interval.
chase_schedulestringAutomated reminder cadence. default=T+2d,T+5d,T+9d,weekly. gentle=T+3d,T+8d,biweekly. aggressive=T+1d,T+3d,T+5d,every-other-day. custom=every chase_interval chase_interval_unit. off=no auto reminders.
clientobjectClient fields to change. Email cannot be changed here — use manage_recipients.
client_briefstring | nullFree-text brief shown to the client at the top of the portal, above the requested items — information from you to them: an offer, instructions, or context. Up to 5000 characters. null clears it. Doc…
due_datestring | nullDeadline in YYYY-MM-DD format. null clears it.
folder_idstring | nullMove this intake to a different folder, using an id from list_folders. null removes it from any folder.
max_remindersnumber | stringCap on reminder attempts (1-1000), or "unlimited". Raising this above the number already sent reactivates a stalled intake.
owner_notestring | nullPrivate note, never shown to the client. null clears it.
project_namestringHuman-readable project name shown to the client.
respect_quiet_hoursbooleanWhether reminders pause outside 08:00-19:00 in the client's timezone.

manage_recipients Manage intake recipients

Add, remove, or reinstate a person who receives an intake's invite and reminders, alongside or instead of the primary client. action="add" invites another address the same way also_notify does at define_intake time — its own message, its own bounce state; pass name to address it by name. action="remove" stops future reminders to that address. action="reinstate" is for a bounce that was wrong — the person did get the e-mail — and clears the bounce flag so reminders resume; if that address was the only one still being chased, the schedule is re-planned from now. Fails if the address is n…

ParameterTypeDescription
action *stringWhat to do with the address.
email *stringThe recipient's e-mail address.
intake_id *stringIntake ID returned by define_intake.
namestringTheir name, used to address their copy. Only used with action="add".

manage_webhook Manage webhook endpoints

Register, list, or remove a webhook endpoint: a public HTTPS URL on the user's own service that BriefGate POSTs intake events to, as an alternative to polling get_intake_status. Webhook reference: https://briefgate.dev/docs/webhooks The endpoint must be reachable from the internet over HTTPS. A URL that cannot receive (for example a process that runs only in a local terminal) produces failing deliveries while the intake looks watched, so without such a service polling get_intake_status is the working option. action="create" returns a signing "secret" exactly once. The receiving service needs…

ParameterTypeDescription
action *stringWhat to do. "list" needs no other argument.
eventsarrayEvents to receive. Required for action="create". For "tell me when the client is done", this is ["intake.completed"].
formatstringPayload shape. "raw" (default) is the signed BriefGate envelope; "slack" and "discord" post a message those services render directly.
urlstringHTTPS endpoint to deliver to. Required for action="create".
webhook_idstringEndpoint to remove. Required for action="delete".

list_folders List folders

List the folders in your account, used to group intakes by client or project. Call this before create_folder or before setting folder_id on define_intake, update_intake, or list_intakes — reuse an existing folder for a returning client instead of creating a duplicate. Returns { folders: [{ id, name, sort_order, intake_count, created_at }] }.

create_folder Create a folder

Create a new folder to group intakes, e.g. one per client. Call list_folders first and reuse a matching folder — only create one when none of the existing folders fits. Fails with folder_exists if a folder with this name already exists; use list_folders to find it instead. Returns the created folder { id, name, sort_order, intake_count, created_at }.

ParameterTypeDescription
name *stringFolder name, e.g. the client's or project's name. Must be unique in your account.

login Sign in to BriefGate

Sign in without pasting an API key, the same way `snyk_auth` works: this opens a browser page where a human approves this device, then stores the issued key locally. Call this whenever a tool reports "Not signed in" or that the stored key was revoked or expired. This is a TWO-PHASE tool because approval can take minutes — longer than a single tool call should block for: 1. The first call starts the sign-in and returns immediately with a URL and a short code (e.g. "WDJB-MJHT"). Tell the user to open the URL and confirm the code; a browser is also opened automatically when possible. 2. Call…

logout Sign out of BriefGate

Remove the API key `login` stored locally for this BriefGate server, and best-effort revoke it on the server too (a `DELETE /v1/keys/current` call using that same key). If the revoke call fails — no network, the API is unreachable — the local copy is still removed; the response says so and points at the BriefGate dashboard to revoke it there instead. Not available when this server is running as the shared hosted endpoint.