MCP App Store
by KeenEthics
USLege icon

USLege MCP Server for Claude and ChatGPT

By USLege

Overview

USLege connects Claude to the USLege legislative intelligence platform, giving you real-time access to legislative data across U.S. state legislatures. Search and read bills, votes, committee activity, statutes, executive orders, and the state register directly from Claude. Look up legislators, lobbyists and their clients, hearing witnesses, and testimony. Pull bill documents, vote records, and committee calendars without leaving the conversation. Turn that data into action: create and manage tracks to follow bills, set up bill and video radar rules that surface new matches automatically, and organize insights into dashboards and shareable portals. Set positions, impact, and leads on bills, assign tasks, and tag legislation for your team. Work with legislative video too—search hearings, read and export transcripts, create clips, and see which bills were discussed and when. Fine-tune notifications and alerts so you and your team stay on top of the bills, committees, and calendars that matter most. Requires a paid USLege account. Access is scoped to your organization's authorized states.

How to connect

  1. Claude: Open the USLege listing in the Claude connectors directory and choose Connect. Claude listing USLege exposes 132 tools here.
  2. ChatGPT: Open the USLege listing in the ChatGPT app directory and choose Connect. ChatGPT listing USLege exposes 212 tools here.

Tools

add-bill-tag

ChatGPT
Add an organization tag to a tracked bill for categorization. Requires the tracked bill ID from get-track-bills output and the organization tag ID (from list-organization-tags or create-organization-tag). Only tags whose appliesTo includes Bills can be added. A tag the user names that exists without Bills cannot be added: tell the user instead of creating a duplicate. Before adding, confirm the tag with the user.

add-bill-to-track

ChatGPT
Add a bill to a track by providing the track ID and bill ID. Call list-tracks first to find the track ID. The bill ID comes from bill search tools or get-track-bills output. If the bill is already tracked, it returns the existing tracked bill (idempotent). Only tracks you have access to can be modified — you cannot access another user's private tracks, even if they are in your organization. Before adding, confirm with the user which track and bill to add.

add-custom-portal-org

ChatGPT
Add an organization to the custom-portal allowlist (custom_portal_orgs). Super-admin tool. Once an org is listed, every portal owned by one of its members gets the customer-facing "Edit styling" flow (custom stylesheet, white-label toggle, header-section visibility) with no per-portal super-admin provisioning. Removing the org from the table later revokes styling for all of its portals at once — this tool intentionally does NOT set the per-portal allowCustomStyle flag, which would survive such a revocation. Takes a Clerk organization id — resolve a human-readable org name with search-orgs first. The org must already exist in our database (synced from Clerk); unknown ids throw. Idempotent: adding an org that is already listed succeeds and reports alreadyAllowlisted: true. Confirm with the user before calling — name the exact organization being granted portal-styling access.

add-widget-to-dashboard

ChatGPT
Add a new widget to a dashboard the caller can edit. Mirrors the "Add widget" UI flow. The widget is placed automatically: directly to the right of the last widget if the row has room, otherwise on a new row at the bottom. Before adding, always confirm the dashboard, widget type, and filter intent with the user. Bills / Calendar / Videos / Tasks filter payloads are validated against the matching widget filter schema before write — invalid filter JSON is rejected with a clear error. Caller must be Owner or Editor on the dashboard. Viewers are rejected. CRITICAL: "my X" intent → use sentinel flags, NEVER bake a userId. When the user asks for "my tasks", "tasks assigned to me", "my bills", "my calendar", "my videos", or any variant scoped to the caller, set the matching sentinel flag in filters instead of looking up and pasting the caller's userId. The server resolves these against auth.userId at query time so the widget travels with whoever views the dashboard: - Tasks widgets: set filters.assigneeIsCurrentUser = true (takes precedence over assigneeId / noAssignee). - Bills widgets: set filters.assignedToCurrentUser = true (instead of leadUserIds / memberUserIds). - Calendar widgets: set filters.assignedToCurrentUser = true. - Videos widgets: set filters.assignedToCurrentUser = true. Without the sentinel, the widget defaults to the whole org and "my X" returns everyone's data — the canonical bug (ENG-6549). If the user explicitly asks for a different user's data, baking that userId is fine; only "my X" / "assigned to me" / "tasks I own" map to the sentinels.

approve-triage-fix

ChatGPT
The video-fix-qa verifier's TERMINAL action: stamp a QA verdict onto an existing VideoTriageAttempt after an independent, adversarial re-verification of a proposed fix. Call it ONLY from the video-fix-qa agent, once per fix, after that verification — never to self-approve a fix you also proposed. An Approved verdict UNLOCKS the mutating remediation tools (rerun-video-job, update-video-source-url) for exactly the fix identified by qaFixFingerprint, and only briefly: approvals expire after 30 minutes and are single-use (consumed by the first mutation that runs). A Rejected verdict blocks the fix and needs only reasons. The qaFixFingerprint must equal the fingerprint of the exact fix being unlocked (for a source-URL fix, the md5 of the new URL; for a rerun, the fingerprint the rerun path derives). An Approved verdict MUST carry a self-consistent checks payload — a non-2xx urlStatus, isDuplicate, or matchesBaseline:false is contradictory and will be refused. This tool runs headless in the QA routine, so it does not pause for confirmation — the stamp is an append-only authorization record of an already-completed verification, not itself a destructive action.

bulk-add-guest-collaborators

ChatGPT
Add people outside the caller's organization (outside counsel, clients, consultants) as guest collaborators of the organization, so they can be picked later when sharing a bill or portal, assigning a task or mentioning someone. Use it when an admin has a list of people to add up front. Guests added here have nothing shared with them: no account is made and no email is sent until a bill or portal is first shared with them. Before calling, show the user the full list of people and confirm it with them. Only an admin of the organization can call this, and only for their own organization. Each row is handled on its own, so a bad row is reported in its result and never stops the others. Rows are handled in order, so an email repeated in the list is reported as already a guest the second time.

bulk-import-bill-comments

ChatGPT
Post many bill comments in a single call, one comment per bill. All comments are created with Organization visibility (shared with your whole organization) and owned by you. Rows referencing a bill ID that doesn't exist are skipped rather than failing the whole batch — check the "skipped" list in the response for any rows that didn't import and why. Before running, confirm the number of comments and a sample of their content with the user. This creates real, org-visible comments and cannot be bulk-undone (each would need to be deleted individually via delete-bill-comment).

compare-agency-rule-versions

ChatGPT
Show what changed between two stored versions of one agency rule, as a server-side line diff of their text. Pass the id of the rule you are working with, then name each side as one entry of get-agency-rule's "documents" list (newest publication first, current flagged): by its documentId, or — for an entry whose documentId is null — by its "id" as fromRuleId / toRuleId. Give exactly one selector per side. Put the OLDER version on the "from" side and the NEWER on "to"; omit both "to" selectors to compare against the rule's current text. Versions contributed by linked source records are resolved for you: unlike get-agency-rule-full-text, you do NOT need to pick the reading rule id. Use this instead of reading both versions yourself: it is exact, and long rule texts will not fit side by side. HTML, plain-text, and PDF versions are all compared as text (PDF text is extracted, first 150 pages; layout may be flattened, so ignore line-wrapping noise). The diff is sentence-level, so an HTML version and a PDF version of the same wording compare as identical. Hunks come back in document order with a couple of unchanged lines of context; markup is stripped first so formatting noise does not register as a change. "diff" is null only when a version is genuinely unreadable (a scanned-image PDF, or storage briefly unavailable) — say so rather than guessing at the change. When "truncated" is true the hunks stop at a character budget; report how many of "totalHunks" you covered. A missing rule, a document not linked to the rule, and a rule outside your organization's jurisdictions all fail identically — treat the failure as "no such version".

create-bill-comment

ChatGPT
Post a single comment on a bill's comment thread. For posting many comments at once, use bulk-import-bill-comments instead. Requires the bill's database ID — call search-bills or get-bill-data first to find it. accessLevel controls who can see the comment: Personal (only you), Track (members of a track — also provide trackId from list-tracks), Organization (your whole organization — the default), or Portal (a shared portal — also provide portalId from list-portals). The comment owner and organization are always set from your authenticated identity, never from input. Before posting, confirm the bill and comment content with the user.

create-bill-radar-rule

ChatGPT
Create a new bill radar rule (saved bill search) owned by the calling user. The returned shape excludes shared-user emails. After creating, call list-bill-radar-rules with ids: [<newRuleId>] if you need to surface resolved shared users to the user. Before creating, confirm the rule name, states, filters, and sharing settings with the user.

create-calendar-alert-rule

ChatGPT
Create a calendar alert rule that notifies recipients when calendar events match the configured locations. Calendar alert rules filter by location (state legislatures + institutions) ONLY — there is NO keyword / text filter. Do not invent a keywords input. Recipient resolution: Owner notifies only the caller, SharedUsers notifies the emails listed in selectedEmails (must already belong to the caller's organization — others are dropped), Organization notifies every member of the caller's org. Confirm the rule details with the user before calling.

create-dashboard

ChatGPT
Create a new dashboard owned by the calling user, scoped to their organization. The caller becomes the sole owner; for shared dashboards they must invite members in a follow-up step via share-dashboard. Before creating, always confirm the dashboard name and access type with the user. The caller cannot set ownerId or organizationId — those are derived from auth. accessType defaults to 'Owner' (private) if not provided.

create-legislator-comment

ChatGPT
Leave a comment about one or more legislators, either about them alone or on a bill and tagged with them. It lists under every legislator it names, exactly as one left in the app does, and a bill comment also shows on the bill's thread. Call search-legislators first for the legislatorIds, and search-bills or get-bill-data for a billId. Track visibility is only for a comment on a bill (call list-tracks for the trackId); a comment about legislators alone is Organization or Personal. The comment owner and organization are always set from your authenticated identity. Before posting, confirm the legislators, the bill (if any), who can see it, and the content with the user.

create-organization-tag

ChatGPT
Create a new organization-wide tag, visible to everyone in the user's organization. Call list-organization-tags first. If an Organization-access tag with the same name already exists, use it instead of creating a new one. If the same-named tag is Owner or Group access, it is not visible to the whole organization: tell the user, and ask whether to use it as is or create an org-wide tag under a different name (names are unique per organization). If creation fails because the name is taken but the tag is not in list-organization-tags, it is a colleague's private tag: ask the user for a different name. Create the tag for Bills unless the user asks for a tag for tasks (or for both). The returned tag ID can be passed straight to add-bill-tag as organizationTagId when the tag applies to Bills. Before creating, confirm the tag name, color, description and what it applies to with the user.

create-portal

ChatGPT
Create a new portal owned by the calling user. Caller must have access to every track id provided; the call is rejected if any track is inaccessible. New portals are created with accessType: 'Owner' (only the creator can see them) — call share-portal afterward to expand access to a Group or to the whole organization. Asset uploads (logos, banners, attachments) are NOT supported via MCP — direct users to the UI for that step. Before creating, always confirm the portal name, track list, and visibility flags with the user.

create-portal-update

ChatGPT
Post a portal-level update (announcement) on a portal. Requires paid access to the portal. Attachments (images, PDFs, etc.) are NOT supported via MCP — direct users to the UI to add files to an update. Before creating, confirm the portal, content, and date with the user.

create-team

ChatGPT
Start a team in the caller's organization. Anyone with a seat can. A caller who isn't an org admin is always put on the team they start; an admin can start one without being on it. Only people with a seat can be on a team, never guests: find their user IDs with list-users or from list-teams. Before creating, confirm the team's name, description and members with the user.

create-track

ChatGPT
Create a track: either a client the user represents (trackType 'Client') or a subject they watch (trackType 'Policy' or 'Other'). A track is a named collection of bills that the user wants to follow. Call list-tracks first and check for a track of the same name, so running a setup conversation twice does not create every client again. Status, size and the deal fields describe a client and should be left out for a policy area. Set them here rather than calling update-track afterwards, so a client is never left half-created. When trackAccessType is 'Group', provide groupMemberEmails with the email addresses of users to share with. Emails will be resolved to user IDs automatically. Before creating, confirm the track name and settings with the user.

create-video-radar-rule

ChatGPT
Create a new video radar rule owned by the calling user. Video radar rules are saved natural-language queries that monitor legislative video transcripts for matches. They are persisted as AiMonitorQueries rows (with AiMonitorQueriesByInstitution for targeting and AiMonitorSharedUsers for the recipient list) — there is no separate "RadarVideoRule" table. Targeting accepts either individual institution ids (organizationIds), state-level "all institutions of type X" selections (allSelections), or both — at least one must be provided. State / institution access is enforced by the existing tRPC guard; unauthorized targets are rejected. alertRecipients is required: Owner (only the creator), CustomList (resolves selectedEmails against the caller's org), or OwnerOrganization (every user in the caller's org). Before creating, always confirm the rule definition, targeted institutions / "all" selections, alert recipients, and notification cadence with the user.

delete-bill-comment

ChatGPT
Delete a comment you previously posted on a bill, along with any of its attachments. Only the comment's own author can delete it — call list-bill-comments first to find the comment ID and confirm isMine is true. This action cannot be undone. Before deleting, always confirm with the user by showing the comment's content.

delete-bill-radar-rule

ChatGPT
Permanently delete a bill radar rule. Deletion cascades to the rule's stored bill matches and notification records via the underlying foreign-key constraints — there is no undo. Before deleting, always confirm with the user by showing the rule name and any pending shared users.

delete-calendar-alert-rule

ChatGPT
Delete a calendar alert rule. Only the rule owner may delete. Removes the rule, its location associations, and every shared-user row. Confirm with the user before calling — this is irreversible.

delete-client

ChatGPT
Delete a client from the calling user's organization. This cannot be undone. Requires the client id — call list-clients first to find it. Before deleting, always confirm with the user by showing the client's name.

delete-clip

ChatGPT
Permanently delete a video clip. This action is irreversible. Deletion removes the DB record, cascades to all track-clip and bill-clip associations, and cleans up processed clip files from S3 (both original and watermarked variants). You can only delete clips you own. Always confirm with the user before deleting — show the clip title and any active associations. Use list-clips (detail mode) to check current associations before proceeding.

delete-dashboard

ChatGPT
Delete a dashboard. Owner-only. Cascades to every widget on the dashboard, every member entry, and every per-user view order — all permanently lost. Before deleting, ALWAYS confirm with the user. Call get-dashboard first and show them the dashboard name, widget count, and access type so they can identify what's about to disappear. The operation cannot be undone.

delete-legislator-comment

ChatGPT
Delete a comment about legislators, along with any of its attachments. It disappears from every legislator it names and, when it was left on a bill, from the bill's thread too. Only the comment's own author can delete it — call list-legislator-comments first to find the comment ID and confirm isMine is true. This action cannot be undone. Before deleting, always confirm with the user by showing the comment's content and the legislators it names.

delete-portal

ChatGPT
Permanently delete a portal. Owner-only — non-owner callers receive a permission error. Cascades cleanup of: portal-track associations, portal access entries, free email-access entries, portal-level updates, and uploaded assets (logos / banners / attachments in Supabase storage). This is irreversible. Underlying tracked bills and source tracks are NOT deleted — only the portal wrapper. Before deleting, always confirm with the user by showing the portal name and (if possible) the track count + recent update count obtained via get-portal.

delete-portal-update

ChatGPT
Permanently delete a portal-level update. Cleans up any file attachments stored in Supabase, then deletes the update row. Irreversible. Requires paid access to the parent portal. Before deleting, confirm with the user — show the update title (or first line of content) and updateDate from list-portal-updates.

delete-team

ChatGPT
Delete a team. Its memberships go with it; the people and any tracks stay. Only org admins, USLege super admins, or the person who started the team while still on it can delete it (see canDelete from list-teams). This cannot be undone. Requires the team ID: call list-teams first. Before deleting, always confirm with the user by showing the team's name and how many people are on it.

delete-track

ChatGPT
Delete a bill track and remove all associated data. This permanently removes the track along with its tracked bills, digests, video clips, and access records. The user must have access to the track to delete it. This action cannot be undone. Requires the track ID. Call listTracks first to find the ID of the track to delete. Before deleting, always confirm with the user by showing the track name and bill count.

delete-video-radar-rule

ChatGPT
Permanently delete a video radar rule. Video radar rules are persisted as AiMonitorQueries rows — there is no separate "RadarVideoRule" table. Deletion is restricted to the rule's owner; sharing with the caller is not enough. Associated AiMonitorQueriesByInstitution rows are removed, while historical AiMonitorMatches rows are kept for audit. This action cannot be undone. Always confirm the rule id and intent with the user before calling.

delete-widget

ChatGPT
Delete a single widget from a dashboard. Permanent and cannot be undone. Before deleting, ALWAYS confirm with the user. Show the widget name and type (call get-dashboard to retrieve them if you don't already have them). Caller must be Owner or Editor on the dashboard; Viewers are rejected. After deleting, consider calling reorder-widgets to backfill the gap if the user wants a tidy grid — let the user choose; some prefer the gap as a placeholder.

deprovision-organization

ChatGPT
Deprovision a Clerk organization: remove EVERY member while keeping the org and all of its data (tracks, dashboards, settings, Salesforce/JustPaid links, states) so a returning client can be reactivated later. Super-admin tool. This is the MANUAL path for churned or overdue paying customers — trials deprovision automatically when they expire, so this tool is normally not needed for them. Two-step flow, and the first step is mandatory: 1. Call with just the org id (no confirmationToken). NO changes are made — the tool returns status "confirmation_required" with the org name, every member who will lose access (names/emails/roles), trial + billing status, the org's Salesforce/JustPaid links, and a confirmationToken. Show ALL of this to the operator and get their explicit approval. 2. Only after the operator approves, call again with the same org id plus the returned confirmationToken to execute. If they decline, make no further calls. The token is bound to everything the preview showed — the org's membership set plus its trial/billing status and Salesforce/JustPaid links. If any of that changes between the two calls the token stops matching and the tool errors — re-run step 1 and re-review. Never invent or guess a token. Requires the Clerk org id (org_...). Call search-orgs first to find it. Already-deprovisioned orgs error clearly instead of no-opping. Removal is resumable: if a member removal fails partway, the error reports progress and re-running step 1 then step 2 removes the rest (the deprovision stamp is only written once every member is removed). The removed roster is captured first, so this is reversible: reactivate-organization re-seats everyone and clears the stamp in one call.

dev-videos-triage-deleted-recheck

ChatGPT
Lists recent triage deletions that a re-post could bring back, for the deleted-video re-check. A placeholder or dead-source deletion runs after 48 hours, but some hosts post the real meeting later at the same URL; this re-check catches that. For each row, run check-source.ts --json on sourceFileUrl and look at sourceViewUrl. If the fresh probe differs from sourceProbe, or the page now links a real recording, call requeue-reposted-deleted-video with the fresh probe. Otherwise leave the row alone; it drops off the list once its window ends. Duplicate deletions, rows already requeued, and rows with no surviving extractor record are left off. Read-only.

dev-videos-triage-duplicate-candidates

ChatGPT
The mandatory duplicate check for a failed video: returns other videos sharing the SAME institution + committee + recordedOn as the target. Use this before recommending deletion — a target may only be marked for deletion when a fully-processed duplicate exists AND the target itself has no usable content. Get the videoId from dev-videos-triage-failed. isFullyProcessed flags a candidate whose latest jobs include a Completed PostprocessTranscription (a real, processed duplicate). Different durations/rooms usually mean separate recordings, not duplicates — verify before concluding. A same-day sibling from a different sourceViewUrl may be a true duplicate (a livestream archive superseded by a full re-upload), one segment of a meeting the extractor split across uploads (a livestream that dropped and resumed, an executive-session return), or a different meeting the same body held that day. Only call it a duplicate with positive evidence of the same recording: the same meeting per the titles, the same start time per the two source pages, and seconds covering the target's source-reported duration. A part on either side, or a candidate far shorter than the target's source duration, marks a split meeting whose failed segment is the only copy of that part of the meeting — retry or defer it, never delete it. When the evidence is incomplete, defer rather than delete. Errors if the video does not exist.

dev-videos-triage-failed

ChatGPT
The entry point for failure triage: returns the current stack of failed videos to work through (max 15), then investigate a chosen videoId with dev-videos-triage-jobs and dev-videos-triage-source-urls. Covers every latest-failed pipeline job across all retry states (TagBills/DeleteVideo excluded). Videos already triaged in the last 24h (failure-mode) are filtered out. The stack is ordered by bucket — auto_quarantined, then active (auto-retries exhausted), then in_auto_retry — and oldest-first within each bucket, so the top of the stack is the most urgent, longest-waiting failure. bucketCounts and totalFailedVideos describe the full failed set behind the capped stack.

dev-videos-triage-history

ChatGPT
Reviews recorded triage attempts (what the routine has already investigated and concluded), newest first, with grouped counts for spotting systemic patterns en masse. Use it to audit findings, see what was decided for a video/institution, or check whether a root cause has already been filed. All filters are optional and narrow the same query (combine freely). byGroupingKey and byRecommendation summarize the returned page so recurring root causes and the mix of recommendations are visible at a glance. Each row carries the full rootCause + evidence so a finding can be understood and spot-verified without re-investigating.

dev-videos-triage-jobs

ChatGPT
The spine of a single-video failure investigation: returns one video with its institution, committee, and FULL job-queue history (every attempt, error category, and error metadata), newest job first. Get the videoId from dev-videos-triage-failed. Use the latest failing job's errorCategory + errorMetadata to identify the failure, then dev-videos-triage-source-urls to fetch the URLs for a live source check. Errors if the video does not exist.

dev-videos-triage-mark-triaged

ChatGPT
Records ONE completed triage attempt in the system of record (append-only). Call it ONLY as the terminal step of a videos-triage investigation run via the other dev-videos-triage-* tools — once per finding — so the run is attributable and future runs can dedupe by groupingKey. Do not use it to log arbitrary notes or from any unrelated workflow. Subject rules (enforced): for mode source_health, set institutionId (committeeId optional) and do NOT set videoId; for every other mode, set videoId and do NOT set institutionId/committeeId. Set prUrl only when a draft PR was opened for this finding. This tool runs headless in the scheduled triage routine, so it does not pause for confirmation — the write is a safe, append-only record of an already-completed read-only investigation, never a destructive action.

dev-videos-triage-recent-successful

ChatGPT
Returns the most recent successfully-processed videos for a failed video's institution — the known-good baseline to diff the broken video against. A different source URL scheme or host on the working videos is strong evidence of a platform change or a stale-URL data error. Get the videoId from dev-videos-triage-failed. "Successful" means the video has a Completed, latest PostprocessTranscription job. Results are newest-recorded first and exclude the target. Errors if the video does not exist.

dev-videos-triage-s3-artifacts

ChatGPT
Returns metadata for a video's stored S3 artifacts (our downloaded video + audio): whether a key is recorded, whether an S3 HEAD verified the object, its byte size, and a short-lived presigned GET URL. Use it to compare our download against the source — a tiny audio object (<100KB) signals a broken download; a duration mismatch signals truncation. When headVerified is false but keyRecorded is true, the HEAD was denied or the object is missing — fetch presignedGetUrl to check directly. This tool does NOT probe media itself (the server has no ffmpeg). Instead, fetch the presignedGetUrl in the sandbox and run ffprobe there for duration/audio-level (silence) checks. URLs expire after presignedUrlExpiresInSeconds — re-call the tool if they lapse. Raw storage keys are never returned. Errors if the video does not exist.

dev-videos-triage-source-health-candidates

ChatGPT
The entry point for source-health triage: the capped, most-severe-first worklist of video sources that have a problem. Pick a source, then call dev-videos-triage-source-health-data on its institutionId for the full cadence + extractor-run detail. Two problem classes, ranked in this order: extractor_not_running (the extractor USED to run but has stopped entirely — a dead/unscheduled source, most urgent) comes before drought (the extractor still runs but we've stopped ingesting new videos). Drought is judged per-source: daysSinceLastVideo greater than max(3x the median recording-day gap, 14 days), or greater than 30 days when there aren't enough recording days for a reliable median. Within each class, longest-since-activity first. Sources triaged (source_health) in the last 7 days are filtered out so successive runs work through the backlog instead of re-surfacing the same sources — so record an attempt with dev-videos-triage-mark-triaged for each source you investigate. totalDrought/totalExtractorNotRunning report the full counts behind the cap (droughts only — healthy sources are NOT counted in totalDrought); excludedRecentlyTriaged is how many were skipped for a recent triage. Set includeHealthy to also return still-running non-drought sources, ranked last and labelled outcome "healthy" (a full sweep).

dev-videos-triage-source-health-data

ChatGPT
The full source-health payload for one resolved video source: cadence math, the recent videos we ingested (for URL-pattern diffs), the recent extractor runs (did the extractor even run, and what did it see?), and the distinct listing URLs it scraped. Feed extractorSourceUrls to the sandbox check-source-listing.ts to decide between "genuinely quiet", "extractor bug", "platform migration", and "awaiting". Resolve the source by institutionId (from dev-videos-triage-source-health-candidates), by institutionName (fuzzy short/long-name match), or by committeeId to narrow to a single committee (its institution is derived). Provide at least one. Errors if the source cannot be resolved.

dev-videos-triage-source-urls

ChatGPT
Returns the source URLs and identity for one video — the argument feed for the sandbox source-check scripts (check-source.ts / check-source-listing.ts). Fetch sourceViewUrl (the immutable page URL) and sourceFileUrl (the resolved media URL) to verify whether the source is still live, has moved, or is a placeholder. Get the videoId from dev-videos-triage-failed or dev-videos-triage-jobs. Storage keys are intentionally not exposed — hasStoredVideo/hasStoredAudio are DB flags telling you only whether a key is recorded (not whether the S3 object is actually present); verify that with dev-videos-triage-s3-artifacts. Errors if the video does not exist.

dev-videos-triage-unresolved

ChatGPT
Discover open (unresolved) VideoTriageAttempts to reconcile, split into the two close-out passes the routine runs. Read-only — call it at the start of a reconciliation run, then close out each returned attempt with resolve-triage-attempt. - videoCompletedCandidates: failure-mode attempts whose video has since gotten a Completed PostprocessTranscription job. Each carries jobCompletedAt — pass it as resolvedAt to resolve-triage-attempt so resolution is backdated to when the pipeline actually succeeded. - sourceHealthPrCandidates: source-health attempts that opened a fix PR. Check each prUrl's merge status; if merged, resolve-triage-attempt (omit resolvedAt) to close it out as of now. Terminal-outcome attempts (NoAction / MarkForDeletion) are resolved at record time and never appear here.

duplicate-track

ChatGPT
Duplicate a track into a new track the user owns, with the same type, description, sharing, bills, laws and (when the user can track them) interim topics. Call list-tracks first to find the source track ID. Before duplicating, ask the user about each optional part to copy rather than guessing, then confirm the new track's name and those choices with the user before calling. Bills from states the user is not entitled to are left out. Copied comments are new comments that keep their original authors; mentions are not copied and nobody is notified. Portal, client, radar rules, priorities, tasks and notification settings are never copied.

edit-org

ChatGPT
Edit mutable Clerk attributes of an organization — the display name, the authorized state list, the data categories switched off for it (voting records, campaign finance), and (for trial orgs) the trial end date. Super-admin tool. Only changed fields are written: metadata changes are merge-patched, and unchanged fields are not touched. Before calling, always confirm every requested change with the user (new name, states to add, states to remove, data categories to switch off or on, new trial end date). The output includes beforeName / afterName, beforeStates / afterStates, and beforeTrialEndsAt / afterTrialEndsAt so you can show the user the resulting record and detect no-op requests. Switching a data category off (disableData) hides it everywhere for the org's members — app pages, exports, the in-app assistant and the MCP — within about a minute; legislative offices are contractually barred from votes and campaignFinance. Output beforeDisabledData / afterDisabledData show the result. trialEndsAt is rejected unless the org is a live trial: a non-trial org has no expiry to move, and a deprovisioned trial must be reactivated first (reactivate-organization) — moving the date alone restores no members. The daily trial-expiry sweep picks up the new date automatically. Resolve orgIds with search-orgs first. If the org's current publicMetadata.states is the "all" sentinel, this tool expands it to a concrete state list before applying the state diff — the org's effective state access does not change unless the requested add/remove actually adds or removes a state from that expanded list. When the resulting state list covers every supported state, the value written back to Clerk collapses to the "all" sentinel instead of a materialized State[], so the org keeps "every state we support" semantics across future state additions. The sentinelCollapsed flag in the output is true when this collapse happened; sentinelMaterialized is true for the opposite transition.

export-transcript

ChatGPT
Exports a video's full transcript as a downloadable file. Defaults to a DOCX file. Pass format: "json" or "md" only when the user explicitly asks for that file format — otherwise leave it unset so the user receives a DOCX. When format is "json", the downloaded file is UTF-8 JSON with this shape: { "videoId": number, "title": string | null, "institutionName": string, "recordedOn": "YYYY-MM-DD", "paragraphs": [{ "startSeconds": number, "endSeconds": number, "text": string }] } When format is "md", the downloaded file is a UTF-8 Markdown document with an institution-name heading, a title heading, a recorded-on line, and one paragraph of transcript text per line — no timestamps or speaker labels. Returns a presigned download URL (valid for 1 hour) along with video metadata and a suggested filename. The AI client should surface the downloadUrl to the user as a link or download action — there is no inline file content to decode. Requires a video ID. Use the search-videos tool first to find the video ID. To read the transcript text directly (e.g., to summarize or quote it), use get-video-transcript instead — that tool returns the paragraphs inline.

get-agency-rule

ChatGPT
Fetch one agency rule in full: its fused lifecycle timeline, the code sections it affects, and the documents attached to it. Requires a rule id — call search-agency-rules first to find one. Everything here is fused across the source records that describe the same regulation, so the timeline can contain events from several upstream systems and the milestone dates are the outermost observed values (earliest proposal, latest effective). "linkedSourceRecords" is empty when the rule stands alone. Returns the text of nothing: "documents" lists the stored versions, newest publication first, with the current one flagged. A fused regulation can include versions contributed by its linked source records, and a document is only readable through the record it is linked to — so to read a version, call get-agency-rule-full-text with id = THAT VERSION'S "id" (not necessarily the id you passed here) and documentId = its documentId; omit documentId for the current text. To see what changed between two versions, call compare-agency-rule-versions with the id you passed here and the two documentIds — it resolves the linked records itself. A rule that does not exist and a rule in a jurisdiction your organization cannot access both fail the same way, deliberately. Treat the failure as "no such rule" and do not probe other ids.

get-agency-rule-full-text

ChatGPT
Read the ingested text of one agency rule document. Requires a rule id from search-agency-rules, search-agency-rule-document, or get-agency-rule. By default it reads the rule's own current text; pass "documentId" (from get-agency-rule's "documents" list, or a search-agency-rule-document excerpt) to read a specific stored document instead — pair it with "offset" near an excerpt's charStart to jump straight to the matching passage rather than paging from zero. A document is only readable through the rule it is linked to, so when reading a version from get-agency-rule's list pass that entry's own "id" as id (a fused regulation's versions can belong to linked records). The text comes back inline in "fullTextHtml": HTML artifacts sanitized, plain-text artifacts pre-wrapped, and PDFs with their text extracted ("textSource" says which). PDF extraction reads at most the first 150 pages — when "pdfPagesExtracted" is below "pdfPageCount", say the read covers only that many pages. Only when a PDF yields no text (a scanned image) or storage is briefly unavailable is "fullTextHtml" null; that is not a permission problem, and the rule's sourceUrl remains the fallback. "fullTextDownloadUrl" (a presigned link valid for an hour) is returned only to external MCP clients; the in-app assistant receives null because users there already have a Download button beside the document. THE TEXT IS PAGED, NOT TRUNCATED. Each call returns up to 50,000 characters starting at "offset". When "hasMore" is true, call again with offset="nextOffset" to continue; repeat until it is false. Read only as far as the question needs — for "what does this rule do", the opening page is usually enough, and the preamble of a federal rule often answers it. But do not describe a partial read as the whole document: either keep paging, or say which part you covered ("the first N of M characters"). Pages are cut on character count, so a page can begin or end mid-sentence or inside an HTML tag. Stitch adjacent pages together before quoting across a boundary. Missing rules and rules outside your organization's jurisdictions fail identically — treat the failure as "no such rule".

get-bill-assignment-notification-settings

ChatGPT
Fetch the authenticated user's notification settings for bill-assignment events (when a teammate assigns them as the lead or a member on a bill). Returns the per-channel toggles. When no settings row exists yet for the user, the response is the system default — both channels ON.

get-bill-data

ChatGPT
Get detailed data for a single bill by its database ID — authors, sponsors, legislative action history, documents, videos, and related bills. Use this after identifying a bill via search-bills, which returns bill IDs you can pass directly here. search-bills already provides summary/caption — use this tool for the deeper data: authors, sponsors, full action history, documents, videos, and related bills.

get-bill-document-chunks

ChatGPT
Reads a contiguous run of a bill's embedded text chunks by position, stitched into one passage, so you can pull the context around a search-bill-document hit. Use it when a search chunk clips mid-provision: each search result carries chunkOrder + totalChunks, so ask for the orders around the hit (e.g. hit at chunkOrder 12 → fromOrder 11, toOrder 13) to read the complete surrounding text. The overlap the embedding adds between chunks is removed, so the returned content reads continuously. Prefer this over paging get-bill-document-text when you already have a chunk's position — it addresses text by ordinal, not character offset. For the complete document top-to-bottom, use get-bill-document-text instead. The span is capped, so a very wide range is clamped. content is null when no chunks in the range exist — e.g. the orders are past totalChunks, or the bill has no embedded text.

get-bill-document-text

ChatGPT
Retrieves the text content of a specific bill document by its document ID. Returns the cleaned HTML when available, otherwise falls back to raw HTML, markdown, or PDF text extraction. Use this after calling get-bill-data with the "documents" section, which returns document IDs and metadata. Pass a documentId from that response to retrieve the full text content. Returns paginated text content. By default, returns the first 10,000 characters. Use startCharacter and limit to fetch subsequent pages. The response includes totalCharacters and lastCharacterReturned so you can determine if more content is available. The fileType and isCleaned fields indicate which source file was used for the text content. When the user wants to download the PDF, use the pdfDownloadUrl field (if available) to provide a direct link.

get-bill-notification-settings

ChatGPT
Fetch the organization-level notification settings for a single bill and (when applicable) its current subscriber list. Call list-bill-subscriptions or search-bills first to discover the bill id. Returns settings: null when the caller's organization has no notification settings configured for the bill. The subscribers array is only populated when the bill's access type is Group — for Owner / Track / Organization access types it is empty by design, since per-user subscriptions are not tracked on those rows.

get-calendar-alert-rule

ChatGPT
Fetch a single calendar alert rule by id. Call list-calendar-alert-rules first to discover the rule id. Returns rule: null when the rule does not exist or the caller has no access — the two cases are intentionally indistinguishable.

get-calendar-event-details

ChatGPT
Get full details for a specific legislative calendar event, including metadata and scheduled bills. Takes an eventId (and optional source hint) returned by the search-calendar-events tool. Auto-detects the data source (CalendarEvent, LegislativeEvent, or Legacy TX/CA) if source is not provided. Returns event metadata (name, date, location, participants, agenda items) plus a list of bills scheduled for that event with their authors, last action, and tracking status. Two separate document fields come back, and they are not interchangeable: - "documents" — documents the source links to the event record itself (legislative events only). - "materials" — documents stored for the meeting: handouts, witness lists, minutes, presentations. These are the ones a hearing actually hands out. "materials" carries metadata only. To read a document, pass its "fileId" to get-calendar-event-document, which returns a short-lived signed download URL.

get-calendar-event-document

ChatGPT
Get a downloadable link for one document stored against a legislative calendar event — handouts, witness lists, minutes, presentations and the like. Call get-calendar-event-details first and take a fileId from its "materials" array; this tool takes no other way of naming a document. Returns a presigned download URL (valid for 1 hour, with an expiresAt ISO timestamp) alongside the document's type and label. Surface it to the user as a download link, or fetch it yourself to parse the contents — there is no inline file content to decode. A document in a state you cannot see reports the same error as one that does not exist.

get-client

ChatGPT
Fetch one client of the calling user's organization by id. Requires the client id — call list-clients first to find it. A client belonging to another organization reports the same "not found" as one that does not exist, so this cannot be used to discover whether an id is real. The tracks linked to a client, and the bills and video clips across them, are not returned yet: that relationship does not exist in the data model at this point.

get-comment-mention-notification-settings

ChatGPT
Fetch the authenticated user's notification settings for comment-mention events (when a teammate @-mentions them in a bill comment or note). Returns the per-channel toggles. When no settings row exists yet for the user, the response is the system default — both channels ON. The underlying read tolerates environments where the CommentMention enum value has not been migrated yet: on enum failures it returns defaults rather than erroring, so the panel keeps rendering.

get-committee

ChatGPT
Get a committee's full detail plus its seated members, staff roster, parent committee, and direct subcommittees (one level deep only). Returns ONLY this committee's own membership (chair, vice chair, ranking minority chair, members of this committee). It does NOT return the full chamber/legislature roster — for that, use list-legislators. For per-meeting attendance, use a calendar event tool instead. Legislators are sorted Chair → ViceChair → RankingMinorityChair → Member, then alphabetical. Staff is sorted alphabetical by name; a staffer with multiple roles surfaces once with all StafferPositionType values aggregated into positions[]. staff[] is the committee's own professional staff. For the members' personal-office staff (e.g. each member's Legislative Director or Chief of Staff), call list-staff with this committeeId and a title filter instead of calling list-staff per member.

get-committee-calendar

ChatGPT
Get a committee's calendar of past and upcoming meetings/hearings, including agenda bills, participants, hearing notice links, and attached files. Fields not present in the underlying data (room, structured participants, isHost) are returned as null/empty. If a state does not have the "calendars" product enabled, returns an empty events list with an explanatory message rather than an error. If the committee does not exist OR the user is not authorized for the committee's state, returns { events: [], totalCount: 0, error: "not_found" } with the same shape — these cases are intentionally indistinguishable to prevent committee-ID enumeration.

get-core-smart-action-notification-settings

ChatGPT
Fetch the authenticated user's notification settings for core smart-action bill events (e.g. introduced, passed chamber, signed by governor). Returns the per-channel toggles. When no settings row exists yet for the user, the response is the system default — in-app ON, email OFF. Distinct from get-bill-notification-settings, which returns the bill-scoped notification settings for a specific bill; this tool is user-scoped and applies across every bill the user is tracking.

get-dashboard

ChatGPT
Get one dashboard's full layout: metadata, the calling user's role on it, the member list (user id + role), and every widget on the grid with its name, type, display type, stored filters JSON, and grid position. Useful for understanding what a user is currently tracking before suggesting changes or fetching rendered data. Requires the dashboard id, which the user must provide directly. Member user ids returned here are internal Clerk user ids scoped to the caller's organization.

get-dashboard-widget-data

ChatGPT
Fetch the rendered data for a single dashboard widget, the same way the UI renders it. Polymorphic on the widget's stored type ("Bills", "Calendar", "Videos", "Notepad", "Tasks"); the response always contains widgetType plus one type-specific field. Use this after get-dashboard to read what a user is currently tracking, before suggesting changes or composing follow-up tool calls. The widget's stored filters drive the query; pass optional globalFilters to layer on dashboard-level state / legislative-session filters (intersected with the widget's own). Pagination applies only to Bills, Calendar, and Videos. Tasks widgets are not yet exposed via this tool: the response includes the widget's stored filters as a hint, with a note flagging the limitation.

get-entity

ChatGPT
Consolidated profile for a single campaign-finance donor (entity), assembled in one call: identity header, lifetime giving stats, the top recipients they've funded, and per-section row counts. This is the donor detail view. First call search-campaign-finance to resolve a name to an entity id (results where kind='entity'); pass that id here. If the donor is itself a registered filer, the header's resolvedFilerId points to the filer-side record — use the filer tools for that view. Money amounts are integer cents. topRecipients.rollup buckets ALL of the donor's giving by recipient type (candidates / committees / party / other), while topRecipients.recipients is only the five largest recipients by dollars. sectionCounts reports how many rows exist per detail section so you can tell what's worth drilling into. Campaign finance is only available for states where the "elections" product is enabled. A state your org isn't authorized for returns state_access_denied; an authorized state without campaign-finance data returns state_not_supported along with the currently-supported states. An unknown entity id (or one from another state) returns not_found.

get-entity-activity

ChatGPT
One page of a single donor's (entity's) transaction history for one section, the drill-down behind get-entity's sectionCounts. Resolve a donor id with search-campaign-finance (results where kind='entity'), call get-entity to see which sections have rows, then page the section you want here. Each row's counterparty is the filer on the other side; pass its filerId to the filer tools. Rows are newest-first by transaction date (id-tiebroken). Paginate with pagination.offset: add limit to offset for the next page and stop once offset + rows.length >= totalCount. An unknown or wrong-state donor id simply returns zero rows (never an error). Campaign finance is only available for states where the "elections" product is enabled. A state your org isn't authorized for returns state_access_denied; an authorized state without campaign-finance data returns state_not_supported with the currently-supported states.

get-executive-order

ChatGPT
Fetch a single executive order by database ID, including the full body, scraper- supplied summary, source URL, and PDF link. Federal EOs carry state='US' with the president in the 'governor' field. Use after identifying an EO via search-executive-orders.

get-filer

ChatGPT
Consolidated profile for a single campaign-finance filer (candidate, officeholder, or PAC/committee) in one call: identity header, summary-card aggregates, headline money-in/money-out totals, officers, legislator links, and per-section row counts. Use this as the follow-up to search-campaign-finance once you have a filer id — it replaces six separate lookups. Discover the filer id first with search-campaign-finance (a result where kind='filer', or the resolvedFilerId on a donor). sectionCounts tells you which detail sections have rows so you can decide which paginated follow-up tools to call next. moneyTotals is the only period-aware section: pass dateFrom / dateTo to scope it, or omit both for all-time; the other sections are always all-time. header is null when no filer matches the id in the given state. Campaign finance is only available for states where the "elections" product is enabled. A state your org isn't authorized for returns state_access_denied; an authorized state without campaign-finance data returns state_not_supported along with the currently-supported states.

get-filer-activity

ChatGPT
One paginated activity section for a single campaign-finance filer, selected by type. Use it after get-filer once you have a filerId and its sectionCounts tell you which sections have rows — this is the drill-down that returns the actual transaction rows behind those counts. Discover the filerId first with search-campaign-finance (a result where kind='filer', or the resolvedFilerId on a donor). Call once per section you want; the response populates only the field named by type (e.g. type='contributions' fills contributions), and echoes type back. Pagination: contributions, expenditures, reports, pledges, loans, spacPositions, and travel are server-paginated — use limit/offset and page against totalCount. topContributors and spendByCategory are aggregates that ignore limit/offset: topContributors returns only the top 5 donors by total (a fixed cap — totalCount is at most 5 and does NOT reflect the true number of distinct contributors), while spendByCategory returns every category and its totalCount is the full category count. Period bounds: dateFrom/dateTo scope only the money sections contributions, expenditures, topContributors, and spendByCategory (on transaction date). The all-time sections reports, pledges, loans, spacPositions, and travel ignore them. Campaign finance is only available for states where the "elections" product is enabled. A state your org isn't authorized for returns state_access_denied; an authorized state without campaign-finance data returns state_not_supported along with the currently-supported states.

get-interim-topic

ChatGPT
Get a single interim topic's full detail: the topic text, its assigned committee, the source document it was extracted from, bills referenced in the topic text, and committee-report documents responding to it. Requires the interim topic ID. Call search-interim-topics first to find IDs. Use the returned committeeId with get-committee and billId values with get-bill-data to drill further. Interim topics are a per-state product. If the topic belongs to a state the caller is not subscribed to, or a state without interim topics enabled, a structured error (state_access_denied or state_not_supported) is returned instead of the topic.

get-live-stream

ChatGPT
Looks up a single live stream (hearing broadcast) by its ID — the primary "show me this hearing" lookup. Live stream IDs come from prior tool calls or from app links of the form /live/{id}. When status is "Completed" and archivedVideoId is non-null, the finalized recording exists as a regular video — prefer the recorded-video tools (get-video-transcript, get-video-bill-tagging, search-videos) with archivedVideoId for the final record. Fails with a not-found error for unknown IDs and an authorization error when the stream belongs to a state outside the caller's authorized states.

get-live-stream-transcript

ChatGPT
Retrieves transcript fragments for a live video stream (an in-progress or completed hearing). Use it to answer questions like "summarize what's been said so far" or "did they mention HB 1234 yet" against a running stream. The transcript grows in real time while the stream status is InProgress. To tail a live stream, poll in a loop: call once with no cursor to get the latest fragments, then call again with sinceId set to the newestFragmentId from the previous response — each poll returns only the fragments that arrived since. To read older history, page backward with beforeId set to the oldestFragmentId while hasMoreBefore is true. Fragments are always returned in ascending id order. Live transcripts can be very long — page through them rather than requesting the maximum limit repeatedly, and only backfill as far as the question requires. A "not found" error means the stream does not exist OR the caller's organization is not authorized for its state — the two cases are intentionally indistinguishable.

get-lobbyist-clients

ChatGPT
List Texas lobbyist clients/principals. Either filter to a specific lobbyist's clients (lobbyistId) or list all clients in TX (optionally scoped to a year). Returns per row: id (LobbyistClient.id), name (unique client name), lobbyistCount (distinct lobbyists hired in scope), and totalCompMin/totalCompMax (aggregate min/max across all matching compensation rows in scope). Lobbyist data is currently TX-only — non-TX-authorized callers receive a structured access-denied error. Use the returned ids with get-lobbyist-compensation for per-year detail.

get-lobbyist-compensation

ChatGPT
Get per-year lobbyist <-> client compensation rows for Texas. Filterable by lobbyistId, clientId, year, and compensationMethod (Earned / Paid / Prospect). Sorted by year desc, then lobbyist name asc. Each row returns the lobbyist + client refs (with names), reporting interval, compensation method, minAmount/maxAmount in USD, the original compensationCode, and compensatedFrom/compensatedTo windows (ISO 8601). Lobbyist data is currently TX-only — non-TX-authorized callers receive a structured access-denied error.

get-lobbyist-details

ChatGPT
Get a Texas lobbyist's full profile by id. Returns: - contact info (full name, firm, address, phone) - subject matters lobbied on, with the year each was reported - per-client compensation history (minAmount/maxAmount in USD, compensationCode original code, method, reporting interval, compensated-from/to dates) - political fund reimbursements (fund name + address + reporting interval per year) Lobbyist data is currently TX-only — non-TX-authorized callers receive a structured access-denied error. Returns { found: false } when no lobbyist exists for the supplied id.

get-lobbyists

ChatGPT
Search Texas lobbyists with paginated results. Lobbyist data in this server is currently TX-only — callers must have TX in their authorized states list, otherwise a structured access-denied error is returned. Filter by: - query (optional free-text — searches first/middle/last/full name and firm; whitespace-separated tokens are AND'd) - clientName (case-insensitive substring on the lobbyist's client/principal name) - subjectMatterId (database ID of a LobbyistSubjectMatter — use the lobbyists.subjectMatters.all tRPC route to discover IDs) - year (reporting year — also scopes the embedded subject-matter and compensation rows) - limit (default 20, max 100) / offset Each row returns: id, fullName, firm, contact info (city/state/zip), counts of matching subject matters and clients (post-yearFilter), and a flat compRange { min, max } summarising compensation for the requested year (or all years when year is omitted). Use the returned ids with get-lobbyist-details (full profile) or get-lobbyist-compensation.

get-organization-coverage

ChatGPT
Read what the calling user's organization has said it tracks: where it works, which levels of government, and which kinds of information. Call this before changing any of it. An empty array means that question has not been answered yet, so asking it again is right; a non-empty one is a settled answer, so do not ask it again. Each answer is the organization's whole answer to its question, not a sample. Changing one means sending the complete new list, so read the current one first and build on it.

get-organization-details

ChatGPT
Read what the calling user's organization has said about itself: its name, what kind of organization it is, and whether it organizes its work around clients. Call this before asking the user any of those three questions, and ask only about the ones that come back null. Re-asking something the organization has already answered is the main thing this tool exists to prevent. Every answer can be null, which means the question has not been answered — that is not the same as "no". Only an explicit yes to the clients question turns the Clients section on for that organization, so treat null as unanswered and say so rather than reporting it as a no. A null name means the organization has never set one of its own, not that it is nameless on screen.

get-portal

ChatGPT
Fetch a single portal by id with its tracks, paid-access users, and (if the caller is owner / paid) the email-access list. Call list-portals first to discover the portal id. Returns portal: null when the caller has no access. The paidAccessUsers array is empty for read-only viewers. The emailAccess array is populated only for callers with paid/owner access (it is owner-managed data) — for everyone else it is null.

get-portal-bills

ChatGPT
List bills appearing on a portal, with FilterBar-equivalent filters and sort. Use list-portals first to discover the portal id. Pagination is offset-based via cursor. The response includes nextCursor — pass it as the next cursor to load the following page. nextCursor: null means no more results. Counts and ordering match what the portal's web UI shows. Per-bill detail (full action history, drafts, AI summary) is not included here — call get-bill-data / portal AI-summary endpoints for that.

get-portal-video-clips

ChatGPT
Return video clips across all non-archived tracks on a portal, newest first. Use list-portals first to discover the portal id. Capped at limit clips (default + max 500). Portals with more clips return only the newest limit; older clips are truncated. Returns an empty array when the caller has no access, the portal has no tracks, or no clips have been created on any portal track.

get-press-release

ChatGPT
Fetch a single press release by database ID, including the full body (HTML) and source URL. Releases with no state (federal / unknown jurisdiction) carry state=null. Use after identifying a release via search-press-releases.

get-social-post

ChatGPT
Fetch a single social media post by its internal id, including its full text, the account that surfaced it, and the bills it references. On a Repost the text is the original author's words, not the account holder's — read originalAuthor to attribute the argument correctly rather than crediting the reposter. Find the id via search-social-posts. Returns "not found" for an id that doesn't exist or belongs to a state the caller cannot access; the two are indistinguishable on purpose.

get-state-register-issue-inventory

ChatGPT
Return the COMPLETE contents of one state register issue (edition) in a single call: every section grouped by section type (Proposed Rule, Adopted Rule, In Addition, ...) and then by agency, with each rule's sectionId ready for get-state-register-section-content. Call this FIRST for any question that needs the whole edition — "summarize this issue", "what did every agency propose", "list all adopted rules", "duplicate last week's report". It is not paginated: when "complete" is true you are holding the entire issue and must not call search-state-register-sections to look for more. Use search-state-register-sections only for keyword lookups across MANY issues; use list-state-register-issues to find an issueId. Rule text is NOT included — this is the table of contents with ids. Read bodies with get-state-register-section-content, which accepts up to 10 sectionIds per call, so summarizing an agency's rules is one or two calls, not one per rule. Agency names are the register's own spelling and usually include a division suffix; quote them as given. Sections with a null agency are unaffiliated notices. Errors: error="issue_not_found" if the issueId does not exist, error="state_access_denied" if your organization is not authorized for the issue's state.

get-state-register-section-content

ChatGPT
Fetch the full file body (HTML or text) for state register sections — the same content the in-app RegisterViewer shows when you click a section in the tree. Get sectionIds from get-state-register-issue-inventory (whole issue) or search-state-register-sections (keyword). Two modes: - sectionId (optionally fileId): one section, full body, top-level fields populated. - sectionIds (up to 10): several sections in one call, returned in items in the order requested, each with its default (first) file. Use this when summarizing an agency's or an edition's rules — ten rules is one call, not ten. Bodies are capped at 15000 characters each by default (truncated=true when cut); raise maxCharsPerSection if you need more of a specific rule, or re-fetch it alone. Any per-section failure (missing section, no files, state not authorized, or a transient storage/database fault reported as error="fetch_failed") is reported inline on that item and does not fail the others; retry just the failed sectionIds. A section may have one or more attached files. Every item includes a files array listing every file's id/name/type, so a single call gives you full visibility into what's attached. For TEXT-LIKE files (HTML/HTM/TXT/MD/JSON), the item includes the decoded body as content. For BINARY files (PDF/DOC/DOCX), content is null and the item instead includes downloadUrl — a presigned S3 URL (valid 1 hour, with expiresAt ISO timestamp) you can surface to the user as a download link or fetch yourself to parse the file contents. By default selectedFile is the first attached file. To read a different file, call again in single mode with that file's id from the files array as the fileId input. Errors (top-level in single mode, per item in batch mode): - error="section_not_found" if a sectionId doesn't exist - error="no_files_found" if the section has no attached files - error="file_not_attached" if fileId is provided but isn't attached to this section - error="state_access_denied" if your org isn't authorized for the section's state - error="fetch_failed" (batch mode only) if that one section could not be read right now

get-statute-document

ChatGPT
Read the statute content for a single node. Pass a statuteNodeId from search-statutes or list-statute-metadata navigation; the tool decides between two response shapes based on what kind of node it is: - kind="section" — the node is a leaf with its own text (typically a Section). Returns one stripped HTML body in section.html. May be null if no statute version is published for the resolved legislative session. - kind="document" — the node is a parent (Chapter, Title, Subchapter, ...). Returns an ordered document.items list with structural headings interspersed with sections. Each section item carries its own HTML body. Paginate with startItem / limit — call again with startItem = document.lastItemReturned + 1 while document.lastItemReturned + 1 < document.totalItems. Responses are bounded by a server-side byte budget (~200KB of HTML), so a single page may return fewer items than limit — lastItemReturned reports the true last index returned. No content is ever dropped; items past the byte budget are returned on the next page. Both shapes include the focal node, its collection summary, a parentChain array ordered root → immediate parent (for breadcrumb context), and the resolved legislativeSessionId. If your organization isn't authorized for the node's state, returns error="state_access_denied" with your authorized states. If the node doesn't exist, returns error="node_not_found". If statute data hasn't been launched for the node's state, returns error="state_not_supported".

get-task-notification-preferences

ChatGPT
Fetch the authenticated user's task notification preferences for their current organization. Six per-event-channel toggles are returned ({email|inApp}On{Assigned|InProgress|Completed}). This is a pure read: if no preference row exists yet for the (user, organization) pair, all-true defaults are returned without creating a row. A row is only created the first time update-task-notification-preferences is called. Requires the caller to be a member of an organization; rejects with BAD_REQUEST otherwise.

get-team

ChatGPT
Get one team in the caller's organization and who is on it. Anyone with a seat can see any team. The team's tracks are returned for USLege super admins only; for everyone else the tracks field is absent. A team of another organization reads as not found.

get-track-bills

ChatGPT
Get bills in a specific track. Returns bill details including bill type, number, summary, last action, author, state, session, impact, stance, assigned lead, members, and tags. Provide either the track ID or the track name — the name will be resolved automatically. Only returns tracks you have access to — your own tracks, tracks shared with you, or organization-wide tracks. If a track is not found, the user may not have access to it. Supports filtering by state and searching by bill number or keyword.

get-track-notification-settings

ChatGPT
Fetch the notification settings for a single track and the current recipients list. Call list-tracks or list-track-subscriptions first to discover the track id. Errors with "Track has no notifications configured yet" when the track exists but has no TrackNotificationSettings row yet. The recipients.subscriberUserIds array reflects the users who currently receive notifications; recipients.accessUsers lists every user who has access to the track (the candidate pool for update-track-notification-settings.recipientUserIds).

get-user-bill-notification-defaults

ChatGPT
Fetch the authenticated user's default bill notification cadence — the frequency applied when subscribing to a brand-new bill. Returns defaultFrequency: null when the user has never set a default (downstream code falls back to the service-side DAILY default). UserBillNotificationDefaults does not store channel toggles, so this tool returns frequency only.

get-user-daily-digest-setting

ChatGPT
Fetch the authenticated user's active newly-filed-bills digest cadence. Returns the single active cadence (Daily or Weekly) or null when the user has no active digest subscription. The digest is mutually exclusive — at most one row is active at a time. Pair with update-user-daily-digest-setting to change it.

get-user-notification-settings

ChatGPT
Fetch the authenticated user's per-event bill activity notification toggles. Returns one row per event type the user has explicitly configured (e.g. NewVersion, Vote, Withdrawn). Events the user has never toggled are absent — downstream UIs fall back to channel defaults when no row exists for an event. Read-only. Pair with update-user-notification-settings to change a single row.

get-video-bill-tagging

ChatGPT
Gathers bills tagging a given video. This should be used when the user wants to know precisely which bills were discussed during a video.

get-video-transcript

ChatGPT
Retrieves transcript text for a specific video on the USLege platform. Typically used with the videoId returned by the searchVideos tool. Returns paginated paragraphs with start and end timestamps in seconds. By default, returns the first 500 paragraphs. Use startParagraph and limit to fetch subsequent pages. The response includes totalParagraphs and lastParagraphReturned so you can determine if more content is available. Keep paging until lastParagraphReturned + 1 >= totalParagraphs before summarizing a whole meeting. When the user is looking for specific text, provide links to the clip creation page using the paragraph timestamps. The link opens a page where the user can preview, title, and save the clip. URL format: https://app.uslege.ai/videos/clip?videoId=VIDEO_ID&startTime=START_SECONDS&endTime=END_SECONDS&from=video Example: https://app.uslege.ai/videos/clip?videoId=12345&startTime=120&endTime=180&from=video

get-vote-record

ChatGPT
Get one vote record with every member's vote, sorted by last name. Call search-votes first to find vote record IDs. To see a single member's vote across many records, pass legislatorId to search-votes instead of calling this per record. An empty legislatorVotes with non-zero counts means the source published only the tallies for this vote (common for Texas Senate committee votes); the counts are still accurate. Fewer legislatorVotes than the counts' total means the source named only some members (some Texas Senate journal entries name only the Nay votes); members not listed are not recorded, so do not infer they voted Yay.

get-witness

ChatGPT
Fetch the full testimony history for a single witness by UUID. Returns a rich profile (bio, avatar, socials, employment history) plus panel-based testimonies with summary, pull quote, representation basis, reception, effectiveness, lead quality, referenced bills, policy areas, and individual extracted points with verbatim transcript sources. Pass the witnessId returned by search-testimony verbatim. The witness profile itself is global — the caller's 'witnesses-v2' product access restricts which testimony rows are returned.

list-action-labels

ChatGPT
List one state's own action wording (the raw source action labels) in a legislative session, most frequent first. Call this before using the exact-action bill filter: that filter matches only these raw labels, verbatim, and every state words its actions differently. Pass label (not displayLabel) to the filter. eventGroup narrows to labels whose most common classified event falls in that group; it ranks only the state's 200 most frequent labels, so pair it with search to reach rarer wording. With no sessionId it reads the state's current session when it has labels; otherwise it reads the most recent session with labels, so an upcoming session with no actions yet doesn't come back empty. An empty list means the state has no labelled session or no label matches.

list-agency-rule-agencies

ChatGPT
List the agencies that have issued at least one rule you can see, so you can turn an agency name into the id search-agency-rules needs. Call this before filtering that tool by agency — it takes ids, and a guessed id returns nothing rather than an error. Scope with "states" to narrow the list the same way you intend to narrow the search; omit it to see every agency across your authorized jurisdictions plus federal. Agencies with no rules never appear, so an empty result means the jurisdiction has no ingested rulemaking yet — check list-agency-rule-jurisdictions. THE LIST IS CAPPED AT 500 AGENCIES. When "truncated" is true you did not receive all of them, so do not answer "how many agencies are there" from "totalCount" — scope with "states" to get a complete list for one jurisdiction instead.

list-agency-rule-code-divisions

ChatGPT
List the (codeSystem, codeDivision) pairs that appear on rules you can see — the vocabulary search-agency-rules' "codeDivisions" filter expects. Call this before using that filter: each jurisdiction names its code differently (CCR titles in California, NYCRR in New York, CFR federally), and an invented pair matches nothing instead of erroring. Scope with "states" to get one jurisdiction's vocabulary rather than all of them. Only divisions attached to at least one visible rule are listed, so anything here is guaranteed to return results. To narrow within a division, pass "codeSection" to search-agency-rules — that one is a free-text probe and needs no lookup.

list-agency-rule-jurisdictions

ChatGPT
List the jurisdictions that actually have agency rules ingested and visible to you. Takes no input — it is always your full scope. Call this first when a question spans states, or before telling someone we have no rules for a state: authorization and coverage are different things, and this reflects coverage. A state your organization is authorized for but that has no ingested rulemaking will not appear here, and "US" appears for federal rules whenever any are visible.

list-bill-comments

ChatGPT
List comments on a bill that are visible to you: your own Personal comments, Track comments for tracks you have access to, your organization's Organization comments, and Portal comments for portals you can access. This mirrors what you'd see on the bill's comment thread in the app — comments belonging to other users, tracks, organizations, or portals you can't access are omitted. Requires the bill's database ID — call search-bills or get-bill-data first to find it. Use the returned comment IDs with update-bill-comment or delete-bill-comment (only comments where isMine is true can be updated or deleted).

list-bill-radar-rules

ChatGPT
List the authenticated user's bill radar rules — saved bill searches that monitor for new matching bills. Returns rules the user owns, rules explicitly shared with the user (CustomList), and rules shared with the user's organization (OwnerOrganization). Each rule includes its name, description, configured states, full bill search filter definition, AI filter prompt, notification target and cadence, and sharing details. Supports filtering by specific rule ids, by active status, by configured states, and case-insensitive partial-match search across rule name and description. To fetch a single rule by id, pass that id in ids (e.g. ids: [42]) — an empty rules array means the rule does not exist or is not accessible to the caller. Use this when the user asks "what bill radar rules do I have?", to find a rule by topic before editing it, or to inspect how a rule is configured.

list-bill-subscriptions

ChatGPT
List the authenticated user's bill notification subscriptions. Use as the entry point for "what bills am I subscribed to?" and to discover bill ids before calling get-bill-notification-settings, unsubscribe-from-bill, or update-bill-notification-settings. Only returns subscriptions on bills whose organization-level notification config has access type Group — that is the only access mode where per-user subscriptions are tracked. Owner-/Track-/Organization-scoped notifications are inspected through get-bill-notification-settings instead. Filters and pagination are applied server-side against the caller-org settings row. Results are returned newest-first by subscription creation time. subscribers is only populated for bills the caller owns the notification settings for. For other bills it is intentionally null — preventing user-id enumeration via shared bills.

list-calendar-alert-rules

ChatGPT
List calendar alert rules the caller can access (owns, is shared on, or is reached by an Organization-scoped rule). Use as the entry point for "what calendar alerts am I subscribed to?" and to discover ruleId values before chaining into get-calendar-alert-rule, update-calendar-alert-rule, delete-calendar-alert-rule, or update-my-calendar-alert-channels. Results are newest-first by creation time.

list-clients

ChatGPT
List the clients that the calling user's own organization has entered — the customers it represents — each with where it sits in that organization's sales pipeline and how big the client is. This is a firm's private client list. It is not the public lobby-filing data: for registered lobbyists and the principals they file for, use get-lobbyist-clients instead. Start here to find a client's id, then pass that id to get-client, update-client or delete-client. Only the caller's own organization's clients are ever returned. Filters combine: a search term and a status filter together return clients matching both. The per-status counts apply every filter except the status filter itself, so each count describes what picking that status would return against the rest of the current view. Deal size is worked out from the client's deal terms rather than stored, so filtering and sorting on it happen after the rows are read. A client with no deal, or one whose terms cannot be valued, has a null deal size and sorts last whichever direction is asked for.

list-clips

ChatGPT
List the authenticated user's video clips, or get full details for a single clip. List mode (no clipId): Returns a paginated list of clips you own, with processing status. Supports filtering by videoId and text search on clip titles. Detail mode (clipId provided): Returns full details for a single clip including: - Clip metadata (title, description, timestamps, transcript setting) - Track associations with track names - Bill tags per track (bill type, number, summary) - Processing status (pending, processing, ready) - Watermarking status (inProgress, completed, progress, error) Both modes include 'imageUrl': a stable public URL to the clip's thumbnail JPG, suitable for embedding in newsletters or downstream surfaces that may render the image months later. Null when the thumbnail job hasn't completed yet, the source was audio-only, or the clip predates thumbnail extraction. Use search-videos to find videos first, then list-clips to see your clips from those videos. Clips can be shared via link: https://app.uslege.ai/share/{clipId}?from=clips

list-dashboards

ChatGPT
List all dashboards the authenticated user can access in their organization. Returns three flavors: dashboards owned by the caller, Group dashboards the caller is a member of, and Organization-wide dashboards in the caller's org. You will never see another user's private dashboards, even within the same organization. Each result includes the dashboard id, name, description, access type, whether the calling user owns it, widget count, and timestamps. Use the returned dashboard ids with other dashboard tools (e.g. get-dashboard) to retrieve full widget layouts or rendered data.

list-interim-topic-reports

ChatGPT
List interim-topic committee-report documents — the report PDFs committees publish in response to their interim topics — with linkage back to the originating topics each report responds to. When documentType is omitted, all report kinds are returned (standing-committee, investigative, and select-committee reports). Topic-issuance documents are never returned; those are reachable through get-interim-topic's sourceDocument. Interim topics are a per-state product. A state that does not have it enabled returns a state_not_supported error listing the states that do. When state is omitted it defaults to the caller's only enabled state, or errors if they have more than one. Sorted newest issuedOn first (undated documents last). Use the returned interimTopicId values with get-interim-topic to drill into a topic. Committee reports respond to a PRIOR session's topics, so an empty result (totalCount 0) with no filters usually means reports for the current interim have not been published or ingested yet — report that to the user rather than retrying. When filters were supplied, an empty result may instead mean the filters were too narrow; consider relaxing them.

list-legislator-comments

ChatGPT
Read every comment about one legislator that you can see, wherever it was left (on a bill, a video, or about the legislator alone), newest first — the same list their profile shows. Call search-legislators first to get the legislatorId. Visibility matches the app: a Personal comment comes back only to its author, a Track comment only to members of that track, an Organization comment to your organization. A legislator outside your organization's states comes back as not found. To change one of your own comments (isMine true), pass its id to update-legislator-comment or delete-legislator-comment.

list-legislator-tasks

ChatGPT
Read every task about one legislator in your organization — what the team has done with them, logged conversations included — grouped To do, In progress, Completed and Cancelled, the same groups their profile shows. Call search-legislators first to get the legislatorId. Empty groups are left out. To do and In progress run soonest due first, Completed latest done first, Cancelled latest cancelled first. A legislator outside your organization's states comes back as not found. To change a task, pass its id to manage-bill-tasks as billTaskId.

list-legislators

ChatGPT
List legislators (elected officials) for a given US state and legislative session. Always uses the current legislature and session for the given state (no historical legislature input). Use committeeId to narrow to a specific committee's members, but note that committee membership details (role, etc.) are NOT included in the output — call get-committee for that. Use search-committees first to discover a committeeId. To find chamber leadership (Speaker, Majority/Minority Leader, President Pro Tempore, Lt. Governor, etc.), use the leadershipRole filter rather than search — the free-text search does not match leadership titles.

list-logos

ChatGPT
List the organization's available logos for watermarking video clips. Returns all named logos uploaded for your organization. Use the logo id from the results as the logoId parameter in manage-clip to apply a watermark to a clip. Logos are managed at the organization level — all members of the organization share the same set of logos. Each logo includes a publicUrl that links directly to the logo image. When showing logos to the user, use a clickable markdown link with the logo name as the text (e.g., [Wulf Snek](publicUrl)) rather than displaying the raw URL.

list-notification-delivery-preferences

ChatGPT
Get the authenticated user's single notification delivery-hour preference, applied to all batched daily/weekly digests. Returns null when the user has never saved a preference (the radar producer then leaves digests on immediate delivery). Sub-daily cadences (hourly / every-four-hours) always send immediately and are unaffected by this preference. Pair with set-notification-delivery-preference to upsert the hour or remove-notification-delivery-preference to clear it.

list-org-memberships

ChatGPT
List every organization membership across the whole Clerk instance as one flat, paginated stream. This is the BULK counterpart to search-orgs. Choose between the two: - Use search-orgs (with query/userId/email + includeMembers) for the TARGETED case: the members of one org or a small filtered set, grouped per org with an accurate per-org member count. - Use list-org-memberships for the BULK case: every membership across all orgs, flat and paginated efficiently. It avoids the N+1 Clerk calls and heavy nested output that an unfiltered search-orgs + includeMembers sweep would produce. Pagination is by membership, not by org: offset walks the full instance-wide set, pages are disjoint, and totalCount is the total number of memberships in the instance. A user in N orgs appears as N rows. Page size is capped at Clerk's max of 100, so a full sweep means repeated calls advancing offset until it reaches totalCount.

list-organization-tags

ChatGPT
List all organization tags accessible to the authenticated user. Returns tag IDs and names for use with add-bill-tag, which only accepts tags that apply to Bills. To remove a tag, use the assignmentTagId from get-track-bills output (not the organization tag ID from this tool). Includes organization-wide tags, personal tags, and group tags shared with you.

list-portal-updates

ChatGPT
Fetch portal-level updates posted on a portal, newest first. Use list-portals first to find the portal id. Returns an empty array when the caller has no portal access. (The underlying portal data is visible on the web to paid, email-access, and public viewers, but this MCP tool itself is super-admin gated.) Attachments are not returned by this tool — they are fetched separately in the UI.

list-portals

ChatGPT
List every portal the caller can access — owned, group-shared, organization-wide, or shared with the caller's email. Use as the entry point to discover portal ids. Pass the returned id to get-portal, get-portal-bills, get-portal-video-clips, or any portal mutation tool. Owner details (ownerId, ownerName) and the per-portal tracks list are only populated for callers with paid/edit access. Read-only (public + email-access) viewers see those fields as null/empty. Results are ordered newest-first by portal creation time.

list-radar-bill-results

ChatGPT
List bills that matched the user's radar bill rules ("radar results" for bills) — the same data shown on the radar bill matches page in the UI. Each result is one bill with all rules that matched it nested under matchedRules. Bills that matched multiple rules collapse into a single row. Results that failed AI relevance filtering (aiFilterStatus = "failed") are excluded. Filtering: - "states" narrows by the bill's legislative session state. - "ruleId" narrows to a single rule. Find rule IDs via list-bill-radar-rules. Omit to see matches across all rules accessible to you. - "relevance" narrows by AI relevance bucket (high / medium / low / noMatch). - "reviewed" narrows to reviewed (true) or unreviewed (false) matches. - "sinceDays" returns bills introduced in the last N days. Ignored if "from" is set. - "from" / "to" set explicit ISO date bounds (YYYY-MM-DD) on the bill's introduction date. The "to" date is inclusive of the full UTC day. Pagination uses limit + offset and operates at the bill level. Default limit 25, max 100. Access: only matches for rules you own, are shared on, or are an org-member viewer of are returned.

list-radar-video-results

ChatGPT
List videos that matched the user's radar video rules ("radar results" for videos) — the same data shown on the radar video matches page in the UI. Returns one summarized row per (video, rule). Each rule's sensitivity controls which match confidences surface (low → high only, medium → high + medium, high → all three); the row's confidence is the strongest sensitivity-allowed bucket with a precomputed summary. Access: only matches for radar video rules you own, are shared on, or are an org-member viewer of are returned.

list-staff

ChatGPT
List legislative staff members for a given US state, including which legislator or agency they work for. Use legislatorId from list-legislators output to narrow to staff working for a specific legislator.

list-state-register-issues

ChatGPT
Explore state register publication issues (the periodic editions in which agency rules are published). Two modes: - Call WITHOUT issueId to list issues for a given state. Each result includes an issueId you can use to drill in. Returns: { issues: [...], totalCount }. Date-range and pagination inputs are honored. DEFAULT SCOPE IS THE CURRENT CALENDAR YEAR: with no issuedFrom/issuedTo the list covers only this year's issues and the response sets appliedIssuedFrom — tell the user that is the scope. Pass allTime=true (or an explicit date range) when the user asks about earlier years. - Call WITH issueId to list the agencies that published in that issue (state is inferred from the issue). Returns: { issueId, state, agencies: [...], bySection: [...] }. "agencies" is the flat deduplicated list; "bySection" groups the same agencies under each section name with a section count, so ONE call answers "which agencies proposed rules and which adopted rules in this edition" — do not page through search-state-register-sections to build that list. Pass sectionName to keep only one kind of section (e.g. "Proposed" or "Adopted"); without it the list also includes agencies that only posted "In Addition" notices. State register coverage is currently limited. If you call without issueId for a state with no register data ingested, the tool returns error="state_not_supported" with the list of supported states. If your organization isn't authorized for the requested state (or the state inferred from issueId), it returns error="state_access_denied" with your authorized states. If issueId doesn't exist, returns error="issue_not_found". Issues returned with: issueId, state, issuedOn (publication date), volume/issue numbering, source URL. Agencies returned alphabetically. Agency names are the register's own spelling, which often includes a division suffix — use them verbatim (or a distinctive fragment) as the "agency" filter of search-state-register-sections.

list-statute-metadata

ChatGPT
List the statute corpora (codes, constitution, session laws, ...) and the legislative sessions with statute content ingested for a given state. The top-level discovery call agents make before drilling into a specific collection via search-statutes or get-statute-document. Returns: - collections: each top-level statute corpus available — { collectionId, name, type, publishedAt }. Pass collectionId into search-statutes (optional scoping) or use it to navigate. - sessions: legislative sessions with statute content — { legislativeSessionId, legislature, sessionType, startYear, endYear }. Pass legislativeSessionId into get-statute-document to pin a specific session's text; if omitted, downstream tools default to the most recent session. If your organization isn't authorized for the requested state, returns error="state_access_denied" with your authorized states. If statute data hasn't been launched for the requested state yet, returns error="state_not_supported" with a brief message — no listing of which other states are available.

list-teams

ChatGPT
List every team in the caller's organization, alphabetically, with who is on each. Anyone with a seat in the organization can see every team. Use it to find a team's ID for get-team, update-team, delete-team or manage-team-members, and use canEdit / canDelete to know what the caller may do. Being on a team gives no access to any track.

list-track-subscriptions

ChatGPT
List the authenticated user's track bill notification subscriptions. Use as the entry point for "which tracks am I subscribed to?" and to discover track ids before calling get-track-notification-settings, unsubscribe-from-track, or update-track-notification-settings. Only returns tracks the caller has access to. Filters and pagination apply against the joined TrackNotificationSettings row. Results are returned newest-first by subscription creation time.

list-tracks

ChatGPT
List the authenticated user's tracks with bill counts. Clients and policy areas are both tracks; filter on trackTypes to get one or the other. Only returns tracks you have access to — your own tracks, tracks shared with you, or organization-wide tracks. You cannot see another user's private tracks, even if they are in your organization. Run this before create-track to check whether a name already exists, so a setup conversation run twice does not create the same client again. Read the whole list once and compare names against it rather than calling this per name, which spends your tool-call budget on lookups. Omitting pagination returns every track you can see; pass pagination only when you want a page. Omit archived to get active and archived tracks together, which is what you want when looking for a track by name or checking for duplicates. Each result's archived field says which it is. Pass archived false or true only to narrow to one side. The name filter is a case-insensitive substring match, so a search for one name can return others that contain it. Compare the names you get back rather than treating any result as a match. Archiving a client keeps whatever status it already had, so an archived client can be Former, DidntSign or anything else; only policy areas are moved to Archived. Filtering by status alone is therefore not a reliable way to find every client. Supports sorting by track name or number of bills.

list-users

ChatGPT
List users in the authenticated user's organization. Returns user IDs, emails, and names. Use this to resolve user emails or names to IDs when sharing tracks with specific members via Group access. Supports searching by email, first name, or last name.

list-video-radar-rules

ChatGPT
List the authenticated user's video radar rules — saved natural-language queries that monitor legislative video transcripts for matching content. Returns rules the user owns, rules explicitly shared with the user, and rules shared with the user's organization. Each rule includes its title, the rule definition (the natural-language query against transcripts), sensitivity, the institutions and per-state "all of type" selections it monitors, notification target and cadence, sharing details, and the current user's per-rule notification preference (when shared). Supports filtering by specific rule ids, by active status, by configured states (matched via institution state or location-level "all" selections), by institution IDs, and case-insensitive partial-match search across the rule's title and rule definition. To fetch a single rule by id, pass that id in ids (e.g. ids: [42]) — an empty rules array means the rule does not exist or is not accessible to the caller. Supports pagination (default offset=0, limit=25). Use this when the user asks "what video radar rules do I have?", to find a rule by topic before editing it, or to inspect how a rule is configured.

manage-bill-tasks

ChatGPT
Manage bill tasks — list, create, update, or delete. Actions: - "list": List tasks for a bill (provide billId) or all tasks assigned to you (omit billId). Filter by status. - "create": Create a new task linked to a bill. Requires title and billId. - "update": Update a task's fields. Requires billTaskId. Only provided fields are changed. - "delete": Delete a task. Requires billTaskId. Confirm with user first — cannot be undone. For create/update: assignee user IDs come from list-users, track IDs from list-tracks, bill IDs from get-track-bills.

manage-clip

ChatGPT
Create or update a video clip from a legislative video recording. Create (omit clipId): Creates a new clip from the specified video. Requires videoId, title, startTimeSeconds, and endTimeSeconds. By default, the clip is saved but NOT processed for download — set processClip to true to trigger processing. Update (provide clipId): Updates an existing clip you own. Only provided fields are changed. If start/end times change and processClip is true, clip processing is re-triggered. Do NOT process the clip for download unless the user explicitly asks. Processing creates a downloadable video file from the source video — it takes a few minutes and costs resources. Leave processClip unset (defaults to false) unless the user says they want it processed. Logos default to none. Before creating a clip, ask the user if they want a logo watermark applied. If yes, call list-logos first to show available options and let them choose. Pass the chosen logoId and optional logoPlacement. Before creating or updating, confirm the clip details with the user — especially the video, timestamps, and title. Requires the video ID. Call search-videos first to find the video. Use get-video-transcript or search-transcript to identify the right start/end timestamps; capture all the relevant discussion the user asked for and err on the side of slightly too long over too short. After creating a clip, you can provide the user a shareable link: https://app.uslege.ai/share/{clipId}?from=clips

manage-clip-associations

ChatGPT
Manage a video clip's associations with tracks and bills. Actions: - add-to-track: Associate a clip with a track. Idempotent — succeeds if already associated. - remove-from-track: Remove a clip from a track. Also deletes any bill tags on that clip-track pair. Confirm with the user before removing. - add-bill: Tag a bill on a clip within a track. If the clip is not yet on the track, the track association is automatically created. Idempotent. - remove-bill: Remove a bill tag from a clip on a track. Use list-tracks to find the track ID, list-clips (detail mode) for clip IDs and current associations, and get-track-bills or search-bills for bill IDs. Only tracks you have access to can be modified — you cannot access another user's private tracks.

manage-org-membership

ChatGPT
Add, remove, or change the role of an EXISTING Clerk user in an EXISTING Clerk organization. Does not create users or orgs and does not send invitations. Both orgId and userId must already exist in Clerk — call search-orgs first to resolve the target org ID and the target user's ID (search-orgs with email returns the userId). Before executing, always confirm the action with the user by showing the resolved org name, the user's email, and the role change. Every org must have at least one admin. Three operations are rejected because they would leave an org's remaining members with no admin: add-ing a member to an org that has no admin, updateRole-ing the org's only admin down to member, and remove-ing the org's only admin while other members remain. In each case promote or add an admin first. (Removing the last member entirely — emptying the org — is allowed.) add-ing a user to a DEPROVISIONED org reactivates it: the deprovision stamp is cleared (Clerk metadata + database) the moment someone is seated, and the org's retained data is live again. Trial metadata is deliberately left as-is — bare reseating does not convert a trial; use create-new-organization's clerkOrgId path for a trial → full conversion. (A deprovisioned org is empty, so the first user added must be an admin.)

move-user-to-org

ChatGPT
Move an EXISTING Clerk account (the "target user") out of their current organization and into a destination org in one confirmed call. Convenience wrapper over manage-org-membership that handles the remove + add ordering and partial-failure recovery, so the two calls don't have to be chained by hand. Both userId and destinationOrgId must already exist in Clerk — call search-orgs first to resolve the destination org ID and (with email) the target user's ID. Source resolution: omit sourceOrgId to auto-pick the target user's single other org. If the target user belongs to two or more other orgs, the tool refuses and lists them — pass sourceOrgId explicitly to choose. If the target user is in no other org, this is an add-only move. Refuses (no-op) if the target user is already in the destination org with the requested role. The remove happens before the add; if the add then fails the target user is left in no org — the thrown error spells out the recovery steps. Before executing, always confirm with the requester (the person you are assisting) by showing the target user's email, the source and destination org names, and the role. Every org must have at least one admin. The move is rejected up front (nothing is changed) if it would leave either end admin-less: moving the user into the destination as a member when that org has no other admin, or moving the user out of a source org where they are the only admin while other members remain. Move them as admin, or promote another admin in the affected org first. Moving a user into a DEPROVISIONED destination org reactivates it: the deprovision stamp is cleared (Clerk metadata + database) once the membership lands, and the org's retained data is live again. Trial metadata is deliberately left as-is — bare reseating does not convert a trial; use create-new-organization's clerkOrgId path for a trial → full conversion.

reactivate-organization

ChatGPT
Roll back a deprovision: re-seat every member captured when the organization was deprovisioned, then clear its deprovision stamp so the org reads as active again. Super-admin tool. This is the one-shot undo for deprovision-organization. Two-step flow, and the first step is mandatory: 1. Call with just the org id (no confirmationToken). NO changes are made — the tool returns status "confirmation_required" with the org name, when and why it was deprovisioned, and the per-member plan: exactly who will be re-seated and who will be skipped (with the reason). Show ALL of this to the operator and get their explicit approval. 2. Only after the operator approves, call again with the same org id plus the returned confirmationToken to execute. If they decline, make no further calls. The token is bound to the restore plan, so if a captured member is deleted, moved to another org, or re-seated between the two calls the token stops matching and the tool errors — re-run step 1 and re-review. Never invent or guess a token. Only works for orgs deprovisioned AFTER deprovision episodes started being recorded; an older org has no captured roster and the tool errors telling you to re-seat members individually with manage-org-membership. Requires the Clerk org id (org_...) — call search-orgs with status "deprovisioned" to find it. Restoring is resumable: members are stamped as they are re-seated, so if some fail the deprovision stamp is deliberately left in place and re-running step 1 then step 2 retries only the outstanding members. It also works on an org that already reads as active but whose roster is incomplete (someone was seated manually, or an earlier restore was interrupted) — the preview flags that with alreadyReactivated. Once every captured member is back, the tool errors instead of no-opping.

refine-bill-radar-rule

ChatGPT
Use this tool to turn what the user wants to watch for into a bill radar rule's criteria, before creating or changing one. It saves nothing. Show the user the summary and ask whether it is right. If the user wants a change, call this tool again with the same description and history plus one new item per round of feedback. Offer the suggestedStatutePicks to the user. Pass only the picks the user accepts as statutePicks on create or update. When the user is happy, call create-bill-radar-rule (or update-bill-radar-rule) with the same description and history. It refines again, so the saved rule can differ slightly from the preview.

remove-bill-from-track

ChatGPT
Remove a bill from a track by providing the tracked bill ID. Call get-track-bills first to find the tracked bill ID for the bill you want to remove. Only tracks you have access to can be modified — you cannot access another user's private tracks, even if they are in your organization. Before removing, always confirm with the user by showing the bill and track name. This action cannot be undone.

remove-bill-tag

ChatGPT
Remove an organization tag from a tracked bill. Requires the tracked bill ID and the assignment tag ID (assignmentTagId from get-track-bills output, NOT the organization tag ID from list-organization-tags). Before removing, confirm with the user which tag to remove. This action cannot be undone.

remove-notification-delivery-preference

ChatGPT
Clear the authenticated user's notification delivery-hour preference. Idempotent — calling when no preference is saved returns deleted: false rather than erroring. After removal, the radar producer leaves daily/weekly digests on immediate delivery. Before mutating, confirm with the user that they want to clear their delivery hour.

reorder-widgets

ChatGPT
Reorder widgets on a dashboard by setting new grid positions in one atomic operation. Mirrors the drag-and-drop bulk endpoint the UI uses, so the entire layout swaps in a single transaction — no temporary overlap mid-shift. Typical use: after delete-widget leaves a hole, call this with new positions to backfill the grid. Or rearrange any time the user wants a different layout. Before reordering, always confirm the new layout with the user (e.g. "moving Bills List from row 0 to row 4 and shifting Calendar up"). Caller must be Owner or Editor on the dashboard. Submit positions for EVERY widget on the dashboard — partial layouts are rejected by the service. Use get-dashboard first to fetch the current layout, then mutate only the widgets you want to move and pass the rest through unchanged.

resend-welcome-email

ChatGPT
Reset an EXISTING Clerk user's password and resend the welcome email from support@uslege.ai with the new credentials. Super-admin tool. Use it when a user lost or never received the welcome email from create-user, or forgot their password. To create a new user, use create-user instead. Only call this when the requester explicitly asks to resend the welcome email or reset the password for this user. Resolve userId with search-users first, then confirm the user's name and email with the requester and warn them that the current password will stop working and the user will be signed out everywhere. The new password is never returned; it is delivered only by the email. If emailDelivered is false, the password was already changed, so the user cannot log in until the tool is run again successfully.

resolve-triage-attempt

ChatGPT
Close out one open VideoTriageAttempt by stamping its resolvedAt — the reconciliation's per-run action. Call it once the underlying issue is confirmed fixed, discovered via dev-videos-triage-unresolved: - Failure-mode attempt whose video completed: pass resolvedAt = that video's completed-job jobCompletedAt (from dev-videos-triage-unresolved) so resolution is backdated to when the pipeline actually succeeded. - Source-health attempt whose fix PR merged: omit resolvedAt so it defaults to now. Terminal-outcome attempts (NoAction / MarkForDeletion) are already resolved at record time and won't appear as unresolved — do not re-resolve them. Before resolving, confirm with the user which attempt is being closed out and why (video completed vs PR merged).

schedule-video-deletion

ChatGPT
Schedules a video for deletion: enqueues a DeleteVideo job (run by the daily deletion cron) and records the reason on the deleted-video ledger. Use it only for a video that holds no meeting content — a placeholder/slate/promo confirmed by the placeholder detector, a duplicate of an already-processed video, a cancelled meeting, or a source that is permanently gone. Never use it for a video that is only partly a placeholder; that video still holds the meeting. QA-gated: video-fix-qa must first stamp a fresh Approved verdict with fixKind "delete" on this video's triage attempt (approve-triage-fix), for the same deletionBasis and duplicateOfVideoId passed here — a different basis or target finds no approval. The approval expires after 30 minutes and is consumed by this call, even if scheduling then fails — in that case get a new approval before retrying. The deletion can be undone from the admin Deleted tab (Requeue) until the cron runs. Before executing, confirm the videoId and the reason with the user.

search-agency-rule-document

ChatGPT
Find agency rules by what their BODY TEXT says — hybrid keyword + semantic search over the ingested rule documents. Use this for topic questions ("find all rules covering hospital staffing"): a rule regulating a topic often never names it in the title, so search-agency-rules (title/summary/agency-name substring match) would miss it. Results are relevance-ordered regulation cards, not paged — there is no stable page 2; raise "limit" instead of paging. Each card carries a "documentMatch" with the excerpts that matched. TRUST AN EXCERPT'S ATTRIBUTION BY ITS "scope". "section" means the excerpt is that rule's own located span — an exact fact about the rule. "artifact" means the excerpt sits somewhere in a document the rule merely shares with "coveredRuleCount" others (a register issue can back hundreds of rules), so it is evidence, not proof, that THIS rule covers the topic. Pass "maxCoveredRules" (e.g. 5) to drop the weakest shared-document hits, and never quote an artifact-scoped excerpt as this specific rule's text without verifying via get-agency-rule-full-text. To read around an excerpt, call get-agency-rule-full-text with the card's rule id, the excerpt's documentId, and offset near charStart. Offsets index the artifact's extracted text; the served HTML can differ slightly after serve-time sanitization, so treat them as a jump target, not an exact anchor. COVERAGE IS PARTIAL while the index backfills: only documents the embedding pipeline has processed are searchable, so an empty result means "nothing found in the indexed corpus", not "no such rule exists". Say so when reporting exhaustive-sounding answers.

search-agency-rules

ChatGPT
Find agency rules (state administrative rulemaking and the federal register) by keyword and/or structured filters. This is the entry point for anything about regulations, rulemaking, comment periods, or code sections — bills and statutes are separate tools. Omit "q" to browse a filtered slice rather than keyword-match; every filter works with or without it. "q" MATCHES METADATA ONLY — title, summary, and issuing agency name, as a literal substring. For topic questions about what rules actually SAY ("find all rules covering hospital staffing"), use search-agency-rule-document, which searches the rule body text itself; a rule regulating a topic often never names it in the title. RESULTS ARE ONE ITEM PER REGULATION, NOT PER SOURCE RECORD. A regulation observed by several upstream sources (a proposal notice and the filed final rule, say) is fused into a single item: "stages" is its whole observed lifecycle, "currentStage" is where it stands now, and "linkedSourceCount" says how many source records were merged. Do not report the item count as a count of notices published. Set groupLinked=false only when you specifically need raw per-source rows. TO FILTER BY AGENCY OR CODE DIVISION, RESOLVE THE VALUE FIRST: call list-agency-rule-agencies for "agencyIds", and list-agency-rule-code-divisions for "codeDivisions" — both take ids/vocabulary this tool cannot guess, and a wrong value returns zero rows rather than an error. list-agency-rule-jurisdictions tells you which jurisdictions actually have data. Then call get-agency-rule with an item's id for the full lifecycle timeline and affected code sections, and get-agency-rule-full-text for the rule's text. DEFAULT SCOPE IS THE CURRENT CALENDAR YEAR. With no dateFrom, dateTo, or latestCycle, only rules proposed this year are returned and the response sets appliedDateFrom — say so when you answer. Pass allTime=true (or an explicit range) when the user asks about earlier years or "ever". Sorted by proposedDate (fused: the earliest across merged sources), newest first by default.

search-bill-document

ChatGPT
Semantically searches WITHIN a single bill's text for the passages most relevant to a query, using the bill's pre-embedded text chunks. Use this for targeted questions about what a specific bill says about a topic (e.g. "appropriations for data centers") when blindly paging the full document would be wasteful — it returns ranked relevant excerpts, not the whole document. Resolve the documentId first via get-bill-data (its documents section). The documentId identifies the bill to search; the search spans that bill's embedded text (the version the pipeline indexed, given by each chunk's version field), which may differ from the exact document version requested. Results are ranked excerpts, NOT the complete document: when the user wants the full text, pair this with get-bill-document-text. Coverage is partial — only bills the vector-embedding pipeline has processed are searchable. isUnindexed: true means this bill has no embedded text, so the tool could not search it — this is unknown, not empty, and says nothing about the bill's contents. isUnindexed: false with empty chunks means the bill was searched and nothing matched the query; other topics may still be present.

search-bills

ChatGPT
Search for legislative bills, based on billType and billNumber, keyword, state, session, and more. Supports filtering by bill types, legislators, filing date, last action date, session, policy area, activity, tracks, review status, lead/members, tags, and statute affected. Maine bills can be found by LD number as well as by their HP/SP paper number — "LD 1036", "LD1036" and "L.D. 1036" all resolve to the same bill. By default returns minimal bill identifiers (billId, billType, billNumber, state, legislativeSessionId). Set detailed=true to include full metadata: authors, actions, policy areas, subjects, companions, summaries. Use simple mode first for discovery, then detailed mode for specific bills of interest. Results are paginated (limit defaults to 20, max 100). Two pagination strategies are exposed — the response's paginationSupported flag tells you which to use: - paginationSupported=true (bill number lookups, filter-only searches): use offset to fetch subsequent pages. - paginationSupported=false (free-text/AI keyword searches): use cursor-based pagination — pass the previous response's cursor as 'cursor', and accumulate every billId returned so far into 'previouslyFoundBills' so the next page is deduped against them. Stop paging when cursor is null. CRITICAL: "my bills" / "bills assigned to me" intent → set assignedToCurrentUser: true, NEVER look up and bake the caller's userId into leadUserFilterGroups / memberUserFilterGroups. The server resolves the flag against auth.userId at query time, so the search returns the bills the calling user is assigned to (any role) without leaking caller identity into the filter payload.

search-calendar-events

ChatGPT
Search the legislative CALENDAR — scheduled and historical events (hearings, floor sessions, committee meetings) across states. This is the authoritative source for what is happening / what is scheduled, regardless of whether a video recording exists. Includes BOTH future (upcoming/scheduled) events AND past events, matching exactly what is shown in the USLege web calendar UI. When to use this tool (prefer this for ANY schedule/agenda question): - "What meetings are scheduled today / tomorrow / on May 14?" - "Show me upcoming committee hearings in TX" - "Is the House Elections committee meeting this week?" - "What's on the legislative calendar?" - Any question about future events, agendas, or what will be / was scheduled to occur. When NOT to use this tool — use search-videos instead: - "Find the recording of yesterday's hearing" - "Search video transcripts for 'education reform'" - Any request that requires watching, reviewing, or searching the CONTENTS of recorded media. IMPORTANT: search-videos only returns past, ingested video recordings. For ANY scheduled/future meeting question, this is the correct tool — do not fall back to search-videos. Supports filtering by state, chamber, date range, and text search. When summaryOnly is true, returns per-day meeting/bill counts instead of individual events — useful for month-view overviews. Without date filters, defaults to upcoming events. States are automatically filtered to those the user has calendar access for. Each event result includes an eventId and source field. Use the get-calendar-event-details tool with these values to fetch full event details and scheduled bills.

search-campaign-finance

ChatGPT
Single search entry point across campaign-finance registered filers (candidates, officeholders, PACs/committees) AND individual donors for one state. This is the discovery tool that returns the IDs downstream campaign-finance tools consume. Each result carries a kind ("filer" or "entity") and an id: pass a filer's id to filer follow-up tools and an entity's id to donor follow-up tools. An entity that is itself a registered filer also exposes resolvedFilerId — prefer that id when you want the filer view of a donor. Results are name-ordered (filers and donors interleaved), keyset-paginated: there is no total count. To fetch the next page, pass the returned nextCursor back verbatim; stop when hasMore is false. query must be at least 3 characters (a shorter search can't use the name index); omit it to browse alphabetically. Use includeFilers/includeDonors to restrict the search to one kind. Campaign finance is currently only available for states where the "elections" product is enabled (Texas today). A state your org isn't authorized for returns state_access_denied; an authorized state without campaign-finance data returns state_not_supported.

search-committee-meetings

ChatGPT
Search committee meetings and public hearings across one or more states with paginated results. Reuses the same per-event output shape as get-committee-calendar, so results from the two tools can be combined without normalization. When state is omitted, searches across all states the caller is authorized for. Results are sorted ascending by scheduledStartTime (nulls last). Use the returned event ids together with get-calendar-event-details for the full agenda + participant breakdown when needed.

search-committees

ChatGPT
Search legislative committees with paginated results. Returns committee summaries plus a count of seated members and a count of upcoming meetings for each row. When state is omitted, searches across all states the caller is authorized for. States without the calendars product enabled return upcomingMeetingCount=0 (committees themselves remain listable for those states). Sorted by state asc, institution shortName asc, name asc. Use the returned ids with get-committee or get-committee-calendar to drill in.

search-dashboards

ChatGPT
Full-text search over dashboards the calling user can access. Matches case-insensitive substrings against dashboard name, description, and widget name / description. Results are ordered by most-recently-updated dashboard. Use this when the user mentions a dashboard by name or topic and you need to resolve it to a dashboard id before calling get-dashboard. Returns at most limit dashboards (default 10, max 50), each with up to 5 matching widgets and a ~120-char snippet around the match. The search ignores dashboards the caller does not own, is not a member of, and that are not organization-wide in the caller's org.

search-executive-orders

ChatGPT
Search executive orders by state, date range, and free-text. Federal EOs carry state='US' with the issuing president in the 'governor' field; state EOs carry the two-letter state code and the issuing governor. Returns lightweight summaries with an excerpt; use get-executive-order to fetch full body, source URL, and PDF link for a single EO. Executive orders may not be available for all states.

search-interim-topics

ChatGPT
Search interim topics — the study assignments a legislature issues to its committees between sessions — with paginated results. Each row includes counts of bills referenced in the topic text and committee reports responding to it. Interim topics are a per-state product. A state that does not have it enabled returns a state_not_supported error listing the states that do. When state is omitted it defaults to the caller's only enabled state, or errors if they have more than one. All filters combine with AND. Sorted chamber asc, then committee, then topic order within the source document. Use the returned ids with get-interim-topic to drill in, and committeeId with get-committee.

search-legislators

ChatGPT
Look up legislators by name and seat to get the legislator ID that tasks link to — the same picker the app's task dialog uses. Use it before manage-bill-tasks (legislatorIds) or list-legislator-tasks whenever the user names a legislator. The search matches the name ("Marcus Chen", "Chen") and the seat line ("Texas · Senate District 4", "Sen 4", "TX house 12"); every word has to match. Only legislators in your organization's states come back, at most 25: members seated in their state's current legislature first, then former members, since a conversation logged after someone left office is still about them. If several match, ask the user which one before acting on it.

search-live-streams

ChatGPT
Search legislative LIVE STREAMS — video feeds that are live right now, scheduled to go live, or recently ended. Answers questions like "what's live in Texas right now?" or "what's scheduled to stream in California today?". Results are a point-in-time snapshot: a stream's status can change moments after the call, so treat the answer as "as of now" rather than a durable fact. When called with no filters at all, status defaults to InProgress so the bare call answers "what's live right now?". Provide an explicit status (or any other filter) to override that default and see upcoming or ended streams. When NOT to use this tool — use search-videos instead: - Any request about past RECORDINGS with transcripts (archived media). Ended live streams here have no transcript search; the recording, once ingested, is found via search-videos. Unauthorized states return empty results rather than an error. Sorted most recent first by scheduled start time. Supports pagination via page and pageSize.

search-orgs

ChatGPT
Discover Clerk organization IDs (and optionally their members) to feed into other admin tools. Provide at most one of query (org name/slug/ID match), userId (orgs that user belongs to), or email (resolved to a userId server-side, then same as userId mode). Omit all three to list every org. Query/list-all modes return memberCount but no role. userId/email modes return the queried user's role per org. Set includeMembers to populate each org's members and totalMembers. This costs one extra Clerk call per org returned, so prefer narrowing with a filter (or a small limit) before enabling it on a list-all search. Members are capped per org at memberLimit (max 100) — when totalMembers exceeds the returned count, the org has more members than were listed. Results are sorted by created_at descending in query/list-all modes; userId/email modes follow Clerk's default membership order. Email resolution errors when no Clerk user matches that email, or when more than one user matches — fall back to passing userId directly in that case. Every org row carries its lifecycle fields: isTrial/trialEndsAt (trial orgs auto-deprovision when the end date passes) and deprovisionedAt/deprovisionedBy (a deprovisioned org has had every member removed but keeps ALL its data — tracks, dashboards, Salesforce/JustPaid links — so a returning client can be reactivated instead of getting a new org). Use status: "deprovisioned" to find those dormant orgs when a churned client comes back. The status filter is applied within each fetched page (Clerk cannot filter on metadata server-side), so a filtered page may hold fewer than limit rows and totalCount stays the unfiltered total — walk limit/offset to cover every org.

search-press-releases

ChatGPT
Search official government press releases by state, date range, and free-text. Covers organization feeds (state agencies, legislative offices, local government) and personal feeds (state legislators, members of Congress). Releases with no state — federal agencies, judicial, or unknown jurisdiction — come back with state=null and are always included when no state filter is set. Returns lightweight summaries with an excerpt; use get-press-release to fetch the full body and source URL for a single release. Coverage varies by state and publisher.

search-social-posts

ChatGPT
Search the social media posts of tracked officials — legislators and statewide executives such as governors and lieutenant governors — across platforms (X and Bluesky). Find an official's posts by passing their name to search, which also matches post text and account handles. Each result carries the account that surfaced the post; on a Repost the text is the original author's words (see originalAuthor), so do not credit that argument to the account holder — they only amplified it. Returns full post text. Deactivated accounts are excluded unless includeDeactivated is set, which surfaces an official's historical posts from accounts they no longer run. Use get-social-post to re-fetch one post by its id. Coverage depends on ingestion and on the social-media product being enabled for the state. billId narrows to the posts linked to one bill; resolve the id with search-bills first. Bill links are verified matches, so a post that argues about a bill without naming it will not appear in a billId or billTagged result, and neither will one from a state without bill linkage — check billTaggingStates before reading an empty result as "nobody posted about this". Results are paginated: a request returns at most limit posts, and answering "every post that…" means walking page while hasMore is true rather than reporting the first page as the whole.

search-state-register-sections

ChatGPT
Search the state register for agency rule sections across one or many issues. A "section" is one entry in the register's tree (e.g. "Proposed Rules" → "Texas Department of Insurance" → a specific rule), the same data the in-app State Register page browses one issue at a time. This tool generalises that view: filter by state, agency, section/rule keyword, and issue date range across every issue at once. If a state is provided that your org isn't authorized for, returns error="state_access_denied". If a state is provided that has no register data, returns error="state_not_supported". With no state, results are filtered to your authorized states intersected with states that have register data. Returns each section with: section ID (use this to fetch full content via get-state-register-section-content, when available), section/agency/rule names, and a summary of the parent issue (date, volume/issue, source URL). ZERO RESULTS WITH AN "agency" FILTER DOES NOT MEAN THE AGENCY IS ABSENT. Register agency names carry divisions and suffixes the caller rarely reproduces, so an empty result with the agency filter set is usually a naming mismatch. In that case the response carries "agencySuggestions": the closest agency names that DO appear in the same scope. Retry with one of them (or a shorter distinctive fragment) before telling the user the agency did not publish. Only when agencySuggestions is also empty may you report the agency as absent from that scope. DEFAULT SCOPE IS THE CURRENT CALENDAR YEAR. With no issueId, issuedFrom, or issuedTo, only issues published this year are searched and the response sets appliedIssuedFrom — say so when you answer. Pass allTime=true (or an explicit range) when the user asks about earlier years or "ever". For everything in ONE issue, prefer get-state-register-issue-inventory: it returns the whole edition un-paginated. This tool is for keyword lookups across many issues. Results paginated, newest issue first. Default limit 25; totalCount tells you whether to page.

search-statute-text

ChatGPT
Find statute sections ranked by how closely their text matches the given words, across one or more states. Use for keyword searches; results may not contain every word or the exact phrase. To search by a section number or heading, use search-statutes. To search by meaning or a plain-language question, use semantic-search-statutes. Pass a result's statuteNodeId to get-statute-document to read the section. Only each state's current session is searched, and only in states whose statute text has been indexed; any other state returns text_not_indexed with the states that can be searched. Results are ranked by how well the words match, one per section.

search-statutes

ChatGPT
Search a state's statutes for nodes whose identifier or name matches a free-text query, spanning every collection (codes, constitution, ...) in a single call. Pair with list-statute-metadata (to discover collectionId and legislativeSessionId inputs) and with get-statute-document (to read the content of a matched node). The returned parentChain is enough to render a breadcrumb without another fetch, and hasContent tells you up-front whether get-statute-document will have text for that node at the resolved session.

search-testimony

ChatGPT
Search witness/testimony records logged at legislative hearings across all authorized states. Testimonies are panel-based extractions: summary, pull quote, representation basis (Self/Employee/ Advocate/Unknown), reception, effectiveness, lead quality, referenced bills, and policy areas. Available for all states with the 'witnesses-v2' product. Required: at least one filter (see the input schema). For a single witness's full history, use get-witness with the witnessId returned here.

search-transcript

ChatGPT
Search the transcripts of one or more specific videos for sections relevant to a query. Use this after searchVideos or getVideoTranscript to find specific content within videos. Batch your searches: pass every (videoId, query) pair you need in a single call rather than calling this tool once per video. Each pair is searched independently and its result echoes back its videoId and query so you can map them. A pair for a missing or inaccessible video returns an error instead of failing the whole call. Each match includes contextSentences — the matched paragraphs and a window of surrounding paragraphs broken into sentences with per-sentence timestamps. For clip creation, pick start/end from contextSentences and err on the side of slightly too long. If the relevant discussion runs past the window, fetch more with getVideoTranscript. When linking to the clip creation page, use the chosen sentence timestamps as whole seconds — floor startTime, ceil endTime. URL format: https://app.uslege.ai/videos/clip?videoId=VIDEO_ID&startTime=START_SECONDS&endTime=END_SECONDS&from=video Example: https://app.uslege.ai/videos/clip?videoId=12345&startTime=120&endTime=180&from=video

search-users

ChatGPT
Search Clerk users across the entire instance (not scoped to your org). Use this to discover Clerk user IDs to feed into other admin tools, and as the canonical "does this email already have a Clerk account?" pre-check before create-user / create-org — unlike search-orgs, an unmatched email returns an empty list instead of throwing. Filters combine with AND; with no filters, returns the first page of all users. Results are sorted by created_at descending.

search-videos

ChatGPT
Search PAST legislative video RECORDINGS that have already aired and been ingested — i.e. archived media with transcripts. This tool ONLY returns videos that exist as recorded content; it does NOT return scheduled or upcoming meetings, and it does NOT return past meetings that were never recorded. When to use this tool: - "Show me the recording of yesterday's hearing" - "Find videos where HB 1234 was discussed" - "Search transcripts for 'education reform'" - Any request that implies watching, reviewing, or searching the CONTENTS of legislative video/audio. When NOT to use this tool — use search-calendar-events instead: - "What meetings are scheduled today / tomorrow / next week?" - "Show me upcoming committee hearings" - "Is the House Elections committee meeting on May 14?" - Any request about agendas, schedules, or future/scheduled events. If a future date is requested and this tool returns 0 results, do NOT report "no meetings"; the meetings likely exist as scheduled calendar events. Call search-calendar-events. Search is based on state, date range, committee, institution, and query. NOTE: State defaults to all states the user has access to, if undefined. NOTE: All fields are optional, but at least one search field is required. Provide human-readable names, not database IDs. Returns video metadata with transcript snippets showing why each video matched. Each result includes a videoId. A direct link to a video can be constructed as: https://app.uslege.ai/videos/{videoId} Supports pagination via page and pageSize parameters. Response includes totalCount, page, pageSize, and totalPages. Use page > 1 to retrieve additional results beyond the first page.

search-votes

ChatGPT
Search vote records across bills. Omit every filter to browse recent votes across your authorized states, or combine filters to narrow results. Newest first. Discover IDs first: billId from search-bills, legislatorId from list-legislators. To answer "how did member X vote" across bills, pass legislatorId: each record then carries that member's vote, so no per-record follow-up is needed. Add legislatorVote to keep only the records where they voted a particular way (e.g. every bill a member voted Nay on). For every member's vote on one record, call get-vote-record with the record's id. Skip it when legislatorVoteCount is 0: the source published only the tallies for that vote. When legislatorVoteCount is below the tallies' total, the source named only some members (some Texas Senate journal entries name only the Nay votes). On such a record a null legislatorVote means the member's vote is not recorded, not that they voted Yay. Several records can share a bill, chamber and date (e.g. second and third reading on one day). name and motion tell them apart when the source publishes them; otherwise sourceUrl still points at each vote's own journal entry. Paginate with limit (max 100) and offset; totalCount is the full match count.

search-witness-organizations

ChatGPT
Find the organization UUID for an organization name, as it appears on witness testimony. Call this first when a question names an organization (a company, association or agency) and you need its hearing registrations or testimony, such as which bills it registered FOR or AGAINST (supported or opposed): pass the returned id as organizationId to search-testimony. Matching is a case-insensitive substring on the name. If several organizations match, pick the closest name, and run search-testimony for each plausible match when unsure.

semantic-search-statutes

ChatGPT
Find statute sections by meaning, across one or more states. Takes a plain-language question or topic and returns the closest sections, even when they use different words. Use for questions like "what are the rules for drilling a new water well". For exact words, use search-statute-text; for a section number or heading, use search-statutes. Pass a result's statuteNodeId to get-statute-document to read the full section. Only each state's current session is searched, and only in states whose statute text has been indexed; any other state returns text_not_indexed with the states that can be searched. confidence is null when ranking fell back to a simpler order under load, in which case treat the order as approximate.

set-bill-impact

ChatGPT
Set the expected impact level of a tracked bill — High, Medium, or Low. Requires the tracked bill ID from get-track-bills output. Pass null to clear the impact. Before setting, confirm the impact change with the user.

set-bill-lead

ChatGPT
Set the lead team member responsible for a tracked bill. Requires the tracked bill ID from get-track-bills output and the user ID from list-users output. Pass null for leadUserId to clear the lead. Before setting, confirm the lead change with the user.

set-bill-members

ChatGPT
Set the team members assigned to a tracked bill. Replaces all current members. Requires the tracked bill ID from get-track-bills output and user IDs from list-users output. Pass an empty array to clear all members. Max 100 members. Before setting, confirm the member changes with the user.

set-bill-position

ChatGPT
Set the user's position on a tracked bill — Support, Oppose, Neutral, Monitoring, Amend, or Kill. Requires the tracked bill ID from get-track-bills output. Pass null to clear the position. Before setting, confirm the position change with the user.

set-notification-delivery-preference

ChatGPT
Set the authenticated user's single delivery-hour preference for batched notifications. The local hour-of-day and IANA timezone are persisted as-is (no UTC round-trip), so the radar producer snaps each daily/weekly digest to the next occurrence of that local hour and stays DST-correct. Sub-daily cadences (hourly / every-four-hours) always send immediately and ignore this preference. One row per user — calling again overwrites the existing hour. Before mutating, confirm the hour-of-day and timezone with the user.

share-dashboard

ChatGPT
Manage members on a dashboard: add invited users, remove existing members, and update the role of existing members. Owner-only. Before sharing, ALWAYS confirm with the user. Show the list of additions, removals, and role changes you're about to apply — these are visible immediately to the affected users. The service ignores attempts to set Owner role or remove the owner themselves; only 'Editor' and 'Viewer' roles are accepted.

share-portal

ChatGPT
Replace a portal's access scope and member lists in one call. Only the portal owner can change access or members — non-owners get a permission error. Invite notifications are NOT sent; that path is UI-only. accessType must be passed every call. If you only want to update emails, supply the portal's current accessType. Before sharing, confirm the chosen scope and the resulting userIds / emails with the user — both arrays are destructive replacements.

subscribe-to-bill

ChatGPT
Subscribe the authenticated user to per-bill notifications for a specific bill. The bill's BillNotificationSettings row is created on demand with Group access and the service-side default cadence (DAILY). The row is org-scoped — every subscriber in the org shares one cadence — so the tool only writes frequency / inAppActive / emailActive when the caller explicitly passes them. Omitting those fields keeps the existing org-level configuration untouched (no silent cadence flips when a new user joins a bill). Only Group is a valid accessType for subscribing — non-Group values are rejected up-front before any mutation. Use update-bill-notification-settings to switch access scope separately. Use list-bill-subscriptions or search-bills first to discover the bill id. Before subscribing, confirm the bill with the user.

subscribe-to-track

ChatGPT
Subscribe the authenticated user to a track's bill notifications. Before subscribing, confirm the track name with the user. Idempotent — calling on a track the user is already subscribed to refreshes the settings rather than erroring. Defaults: frequency falls back to the user's UserBillNotificationDefaults.defaultFrequency (then DAILY if no default is configured); both channels default to true; accessType is only changed when explicitly provided. Requires the track id. Call list-tracks first to find the id.

summarize-video

ChatGPT
Summarizes a meeting's ENTIRE transcript in one call, however long the meeting is. Use this for any whole-meeting question ("summarize this hearing", "what was covered?", "walk me through the testimony"). Prefer it over paging get-video-transcript for that purpose: the server reads every paragraph itself, so the summary always covers the full meeting instead of however much was read before answering. Pass "topics" to ask about specific things alongside the general summary — e.g. summarize a hearing AND report every mention of budget cuts. Each topic gets its own verdict, and because the whole transcript was read, "discussed: false" with "coverageComplete": true is a reliable answer that the topic never came up — say so plainly. When "coverageComplete" is false, part of the meeting returned no verdict for that topic: say it was not found, never that it did not happen. Do not use topics for a targeted lookup with no summary needed; search-transcript is cheaper for that. "summary" is a compact overview: it compresses a multi-hour meeting into a few paragraphs and necessarily loses most particulars. Do not treat it as the full record. "keyFacts" is the meeting's concrete specifics — dollar amounts, named people and organizations, investigations and legal matters, vote outcomes. Read it on EVERY summarize call, including when no topics were requested, and work its facts into your answer. A named individual, a figure, or a legal proceeding will often appear only here and not in "summary"; reporting from "summary" alone will read as vague and will omit what the user most needs. Never tell a user something was not discussed without checking "keyFacts" first — absence from "summary" is not evidence of absence from the meeting. NOTHING THIS TOOL RETURNS IS A QUOTATION. "summary", "keyFacts" and "findings" are all this tool's description of what was said, in its own words — including the ones phrased as "X said Y", which report a speaker's point rather than reproducing their sentence. Never wrap any of it in quotation marks and never attribute any of it to a person as their exact words. A paraphrase inside quotation marks is a statement a real person never made. Speaker names ARE reported where the transcript established them, and you should carry them into your answer — a summary that never says who testified is far less useful than one that does. Report that a person made a point; never that they said particular words. THIS TOOL ALSO RETURNS NO TIMESTAMPS, and no output here can become a clip link. When the user wants exact wording, the moment something was said, or a clip, call search-transcript for that point — it returns the real passage with per-sentence timestamps. Volunteer that follow-up when a question turns on precise wording or timing. Facts and findings carry the [HH:MM] span of the section they came from ("sectionStartsAt"/"sectionEndsAt"), which is a coarse locator for search-transcript, not the moment of the statement. Never present it as a timestamp for the fact. Reads the whole transcript, so it takes one to several minutes depending on meeting length, and longer again when many topics are passed (they are answered in batches of five, each batch a further pass over every section) — far longer than other read tools. Tell the user the summary is compiling BEFORE you call it, so the pause is expected rather than a hang. Throws when a transcript is too long to summarize faithfully; fall back to search-transcript then.

unsubscribe-from-bill

ChatGPT
Remove the authenticated user's per-bill notification subscription for a single bill. Returns the removed subscription row, or null when the user wasn't subscribed. Does NOT delete the organization-level BillNotificationSettings row — other users may still be subscribed under Group access. The underlying tRPC guard rejects unsubscribing when the bill's access type is not Group. Use list-bill-subscriptions first to confirm the bill id. Before unsubscribing, confirm the action with the user.

unsubscribe-from-track

ChatGPT
Unsubscribe the authenticated user from a track's bill notifications. Before unsubscribing, confirm the track name with the user. Errors with "User has no subscription to this track" when the caller had no subscription on the track. Removes only the caller's subscription row; track notification settings and other users' subscriptions are untouched. Requires the track id. Call list-track-subscriptions first to find the id.

update-bill-assignment-notification-settings

ChatGPT
Update the authenticated user's notification settings for bill-assignment events (when a teammate assigns them as the lead or a member on a bill). Both inApp and email are required — the underlying tRPC mutation is a full upsert of the per-user row, not a partial patch. Use get-bill-assignment-notification-settings first to read current values, then send both fields back. Confirm with the user before calling.

update-bill-comment

ChatGPT
Update the text of a comment you previously posted on a bill. Only the comment's own author can update it — call list-bill-comments first to find the comment ID and confirm isMine is true. Before updating, confirm the new content with the user.

update-bill-notification-settings

ChatGPT
Update the organization-level bill notification settings (and, when applicable, the subscriber list) in one call. Provide billId plus any of the optional fields; only present fields are dispatched. A no-op call (only billId) returns the current settings + subscribers without mutating anything. Mutations are NOT wrapped in a transaction: if a later field's permission check fails, earlier successful updates are not rolled back. Use get-bill-notification-settings first to inspect current state. Before updating, confirm the specific fields and new values with the user.

update-bill-radar-rule

ChatGPT
Update an existing bill radar rule. Only fields you pass are touched — anything left undefined is preserved. sharedUserEmails is a full-set replacement, not a delta — pass the entire desired list each call. The returned shape excludes shared-user emails. After updating, call list-bill-radar-rules with ids: [<ruleId>] if you need to surface the full post-update rule details to the user. Before updating, confirm the specific fields and new values with the user.

update-calendar-alert-rule

ChatGPT
Partial update of a calendar alert rule. Provide ruleId plus any fields to change; unspecified fields are unchanged. Calendar alert rules filter by location ONLY — there is NO keyword / text filter. Do not introduce a keywords field. Only the rule owner may set alertTarget to Owner (the tRPC service rejects the change otherwise). Updating alertTarget or selectedEmails re-syncs the recipient list. Confirm the changes with the user before calling.

update-client

ChatGPT
Change a client's name, pipeline status, size or deal terms. Requires the client id — call list-clients first to find it. Only the fields you pass are changed; everything else is left alone. Passing null to a nullable field clears it. The deal rate is the whole fee for a flat fee and the monthly fee for a retainer. The deal size is never set directly: it is worked out from the type, the rate and the dates, and comes back on the response so you can confirm what the change was worth. Before updating, confirm with the user by showing the client's current name and what each field will become.

update-comment-mention-notification-settings

ChatGPT
Update the authenticated user's notification settings for comment-mention events (when a teammate @-mentions them in a bill comment or note). Both inApp and email are required — the underlying tRPC mutation is a full upsert of the per-user row, not a partial patch. Use get-comment-mention-notification-settings first to read current values, then send both fields back. In environments where the CommentMention enum value has not been migrated yet the underlying write returns the caller's input echoed back without persisting (best-effort). The response shape is unchanged in either case. Confirm with the user before calling.

update-core-smart-action-notification-settings

ChatGPT
Update the authenticated user's notification settings for core smart-action bill events (e.g. introduced, passed chamber, signed by governor). Both inApp and email are required — the underlying tRPC mutation is a full upsert of the per-user row, not a partial patch. Use get-core-smart-action-notification-settings first to read current values, then send both fields back. The SMS channel is service-managed and not exposed here. Confirm with the user before calling.

update-dashboard

ChatGPT
Update a dashboard's name, description, or access type. Owner-only — the service rejects non-owners with a generic "not found" so callers cannot enumerate dashboards they don't own. Before updating, always confirm the changes with the user. Lowering accessType from Organization/Group to Owner does not kick existing members — they remain on the members list and still resolve through Group access if accessType is later widened. At least one of name, description, or accessType must be provided.

update-my-calendar-alert-channels

ChatGPT
Toggle the caller's own email notification preference on a calendar alert rule shared with them. Useful for "stop emailing me for rule X" without affecting other recipients or the rule's overall isActive state. Confirm the change with the user before calling.

update-my-video-radar-notifications

ChatGPT
Toggle the calling user's own per-rule notification preference for a video radar rule. Video radar rules are persisted as AiMonitorQueries rows; per-user notification opt-in lives on AiMonitorSharedUsers.notificationsEnabled — there is no separate "RadarVideoRule" table. This tool updates only the caller's row (creating it if missing) and never changes who receives notifications (alertTarget, recipient list). Use update-video-radar-rule to change the rule's recipient set. Disabling notifications only mutes outbound delivery (e.g. email) — the user can still view matches for this rule inside the app. Surface that distinction when a user asks "what happens if I turn notifications off?". Useful when a user wants to mute or unmute a rule shared with them. Returns null when the rule is not accessible to the caller. Before toggling, confirm the intended preference with the user.

update-organization-coverage

ChatGPT
Change what the calling user's organization tracks. Call get-organization-coverage first: each answer replaces the stored list rather than adding to it, so sending one state where three were stored leaves the organization with one. These answers apply to the whole account, not to the person answering. Before saving, confirm with the user what each answer is now and what it will become. The levels are org-wide switches. Turning one on does not ask which specific cities, districts or boards, and there is no way to name them here — that happens per client. States are the organization's default, the starting point for each client it sets up afterwards, and a client can override it. The other two answers have no per-client equivalent. A state the organization is not licensed for is refused; tell the user which one and move on. Only the answers you changed come back. Call get-organization-coverage if you need all three.

update-organization-details

ChatGPT
Change what the calling user's organization has said about itself: its name, what kind of organization it is, or whether it organizes its work around clients. Pass only the answer you are changing. When the user says none of the listed types fit, set organizationType to Other and send their own few words as organizationTypeOther in the same call. Confirm every change with the user before calling, showing what the value is now and what it will become. A rename needs saying out loud — the name shows up on reports, clips and portals for everyone in the organization. Only an admin of the organization can make these changes; anyone else gets an error. Answering yes to the clients question turns the Clients section on for everyone in that organization, and answering no turns it off for everyone.

update-portal

ChatGPT
Update one or more portal settings in a single call. Provide portalId plus any of the optional fields; only present fields are dispatched. Use share-portal (not this tool) to change visibility scope or member lists — those are access-aware. Asset uploads (logos / banners / attachments) are UI-only. Mutations are NOT wrapped in a transaction: if a later field's permission check fails, earlier successful updates are not rolled back. Permission rules per field are documented on each schema input. Before updating, confirm the specific fields and new values with the user.

update-portal-update

ChatGPT
Modify an existing portal-level update (announcement). Partial-field semantics — at least one changeable field must be provided; omitted fields are unchanged. Attachments are managed in the UI — this tool does not add or remove file attachments. Before updating, confirm the changes with the user.

update-task-notification-preferences

ChatGPT
Update the authenticated user's task notification preferences for their current organization. All six toggles are optional — only present fields are written; omitted fields keep their existing value. If no preference row exists yet for the (user, organization) pair, one is created with all-true defaults and then the supplied fields are applied on top. Requires the caller to be a member of an organization; rejects with BAD_REQUEST otherwise. Use get-task-notification-preferences first to read current values. Confirm with the user before calling.

update-team

ChatGPT
Change a team's name or what it covers. Only org admins, USLege super admins and people on the team can; anyone else is refused. To change who is on a team use manage-team-members. Requires the team ID: call list-teams first. Before updating, confirm the changes with the user by showing what will be modified.

update-team-collaboration-settings

ChatGPT
Atomically upsert all team-collaboration notification settings — bill assignment, comment mention, and task preferences — for the authenticated user. The bill-assignment write and the task-preferences write share a single database transaction; either both succeed or both fail. The comment-mention write runs outside the transaction (best-effort) because the CommentMention enum value may not be migrated in every environment — on failure the response echoes the caller's input back without rolling back the other two writes. There is no dedicated read counterpart; pair with get-user-notification-settings to inspect the related toggle layer before writing. Use the granular per-event-type read tools (get-bill-assignment-notification-settings, get-comment-mention-notification-settings, get-task-notification-preferences) to inspect current values for the three blocks this tool touches. Requires the caller to be a member of an organization; rejects with BAD_REQUEST otherwise. Confirm with the user before calling — this mutates three settings blocks at once.

update-track

ChatGPT
Update a track's name, description, archived status, or access type. The user must have access to the track. Only the fields provided will be updated. Changing access type to 'Owner' will remove all shared access. Changing access type to 'Organization' will clear specifically-added group members. When changing access type to 'Group', provide groupMemberEmails with the email addresses of users to share with. Emails are resolved to user IDs automatically. Requires the track ID. Call list-tracks first to find the ID of the track to update. Before updating, always confirm the changes with the user by showing what will be modified.

update-track-notification-settings

ChatGPT
Update one or more notification settings for a track in a single call. Before updating, confirm the changes with the user by showing the track name and what will change. Errors with "No fields to update" when called with only trackId and no update parameters — call get-track-notification-settings instead to read current state. Passing recipientUserIds is only valid for Group-style notification access; incompatible combinations are rejected with an error. Requires the track id. Call list-tracks or list-track-subscriptions first to find the id.

update-user-bill-notification-defaults

ChatGPT
Upsert the authenticated user's default bill notification cadence — applied when subscribing to a brand-new bill. UserBillNotificationDefaults only stores a cadence; per-channel toggles (in-app / email) live on the per-bill settings row and are NOT writeable through this tool. Channel arguments supplied by an upstream agent are intentionally rejected. Before mutating, confirm the new cadence with the user. Pair with get-user-bill-notification-defaults to inspect current state first.

update-user-daily-digest-setting

ChatGPT
Switch the authenticated user's newly-filed-bills digest cadence. The digest is mutually exclusive — calling this with Daily deactivates Weekly and vice versa. Passing null deactivates both subscription rows (no digest delivered). Monthly is rejected because the underlying digest infrastructure only fires Daily and Weekly. Before changing, confirm the desired cadence with the user. Use get-user-daily-digest-setting to inspect the current state first.

update-user-email

ChatGPT
Change the PRIMARY email address on an EXISTING Clerk user, in place. Super-admin tool. Use this for a member email rotation (e.g. moving off a work address to a personal one) — it keeps the same account, its organization membership(s), and its history intact instead of the destructive delete-and-recreate path. Resolve the target userId with search-users (by the current email) first. The change is admin-initiated, so the new address is attached already-verified and set primary in one step; our database's stored email updates automatically via Clerk's webhook. Before executing, always confirm with the requester: the target user (current email) and the exact new email, whether to keep or remove the old address, and whether to notify the user. Collision: if the new email is already in use by a DIFFERENT Clerk user, the call fails and returns a message explaining the conflict must be untangled by an engineer in the Clerk dashboard (it cannot be forced here) — surface that message and the remediation steps to the user.

update-user-notification-settings

ChatGPT
Upsert the authenticated user's in-app and email toggles for a single bill activity event type. Use get-user-notification-settings first to discover existing event toggles. Before mutating, confirm the event type and the new channel values with the user. Each call touches exactly one (userId, eventType) row — pass one event type per invocation rather than batching, so the agent can confirm each change with the user.

update-video-radar-rule

ChatGPT
Partially update a video radar rule. Video radar rules are saved natural-language queries that monitor legislative video transcripts for matches. They are persisted as AiMonitorQueries rows (with AiMonitorQueriesByInstitution for targeting and AiMonitorSharedUsers for sharing) — there is no separate "RadarVideoRule" table. Only provided fields change. When either organizationIds or allSelections is provided, the rule's targeting is replaced wholesale (omit both to leave targeting untouched). When alertRecipients or selectedEmails is provided, the shared-user set is re-synced while preserving each existing recipient's notificationsEnabled preference. Use update-my-video-radar-notifications to toggle just the caller's own opt-in instead. Returns null when no accessible rule matches the id. Before updating, always confirm the intended changes with the user.

update-video-source-url

ChatGPT
Overwrites a video's explicit source file URL. Use only when a triage investigation has found the correct source URL directly. If the institution has a secondary extractor and you want the pipeline to re-derive the URL itself, use rerun-video-job with useSecondary instead of setting a URL by hand. This does NOT re-queue any job — after updating the URL, call rerun-video-job (e.g. TransferMedia) to actually reprocess the video with the new source. The source URL is uniquely indexed: if the URL already belongs to another video the update is rejected with a hash-collision error and nothing changes. This tool mutates the video record. Before executing, confirm the videoId and the new URL with the user.

update-widget

ChatGPT
Update an existing widget on a dashboard: rename, change description, change displayType, or rewrite stored filters. The widget's widgetType is fixed at creation — to change type, delete and re-add. Grid position updates (drag-and-drop) are out of scope; the UI's bulk-layout endpoint is not exposed. Before updating, always confirm the changes with the user, especially filter rewrites (they can dramatically alter what the widget shows). filters is validated against the widget's stored type before write — invalid JSON is rejected with a clear error. Caller must be Owner or Editor on the dashboard. CRITICAL: "my X" intent → use sentinel flags, NEVER bake a userId. When the user rewrites filters to scope to themselves ("my tasks", "tasks assigned to me", "my bills", "my calendar", "my videos"), set the matching sentinel instead of pasting the caller's userId. The server resolves these against auth.userId at query time so the widget travels with whoever views the dashboard: - Tasks widgets: filters.assigneeIsCurrentUser = true (takes precedence over assigneeId / noAssignee). - Bills widgets: filters.assignedToCurrentUser = true (instead of leadUserIds / memberUserIds). - Calendar widgets: filters.assignedToCurrentUser = true. - Videos widgets: filters.assignedToCurrentUser = true. Baking a userId makes the widget show the same person's data for every viewer — usually wrong. Only set a specific userId when the user explicitly asks for that person's data.

add-bill-tag

Claude

add-bill-to-track

Claude

add-custom-portal-org

Claude

add-widget-to-dashboard

Claude

create-bill-radar-rule

Claude

create-calendar-alert-rule

Claude

create-dashboard

Claude

create-new-organization

Claude

create-org

Claude

create-portal

Claude

create-portal-update

Claude

create-track

Claude

create-user

Claude

create-video-radar-rule

Claude

delete-bill-radar-rule

Claude

delete-calendar-alert-rule

Claude

delete-clip

Claude

delete-dashboard

Claude

delete-portal

Claude

delete-portal-update

Claude

delete-track

Claude

delete-video-radar-rule

Claude

delete-widget

Claude

edit-org

Claude

export-transcript

Claude

get-bill-assignment-notification-settings

Claude

get-bill-data

Claude

get-bill-document-text

Claude

get-bill-notification-settings

Claude

get-calendar-alert-rule

Claude

get-calendar-event-details

Claude

get-comment-mention-notification-settings

Claude

get-committee

Claude

get-committee-calendar

Claude

get-core-smart-action-notification-settings

Claude

get-dashboard

Claude

get-dashboard-widget-data

Claude

get-executive-order

Claude

get-lobbyist-clients

Claude

get-lobbyist-compensation

Claude

get-lobbyist-details

Claude

get-lobbyists

Claude

get-portal

Claude

get-portal-bills

Claude

get-portal-video-clips

Claude

get-state-register-section-content

Claude

get-statute-document

Claude

get-task-notification-preferences

Claude

get-track-bills

Claude

get-track-notification-settings

Claude

get-user-bill-notification-defaults

Claude

get-user-daily-digest-setting

Claude

get-user-notification-settings

Claude

get-video-bill-tagging

Claude

get-video-transcript

Claude

get-vote-record

Claude

get-witness

Claude

list-bill-radar-rules

Claude

list-bill-subscriptions

Claude

list-calendar-alert-rules

Claude

list-clips

Claude

list-dashboards

Claude

list-legislators

Claude

list-logos

Claude

list-notification-delivery-preferences

Claude

list-org-memberships

Claude

list-organization-tags

Claude

list-portal-updates

Claude

list-portals

Claude

list-radar-bill-results

Claude

list-radar-video-results

Claude

list-staff

Claude

list-state-register-issues

Claude

list-statute-metadata

Claude

list-track-subscriptions

Claude

list-tracks

Claude

list-users

Claude

list-video-radar-rules

Claude

manage-bill-tasks

Claude

manage-clip

Claude

manage-clip-associations

Claude

manage-org-membership

Claude

move-user-to-org

Claude

remove-bill-from-track

Claude

remove-bill-tag

Claude

remove-notification-delivery-preference

Claude

reorder-widgets

Claude

search-bills

Claude

search-calendar-events

Claude

search-committee-meetings

Claude

search-committees

Claude

search-dashboards

Claude

search-executive-orders

Claude

search-orgs

Claude

search-state-register-sections

Claude

search-statutes

Claude

search-testimony

Claude

search-transcript

Claude

search-users

Claude

search-videos

Claude

search-votes

Claude

set-bill-impact

Claude

set-bill-lead

Claude

set-bill-members

Claude

set-bill-position

Claude

set-notification-delivery-preference

Claude

share-dashboard

Claude

share-portal

Claude

subscribe-to-bill

Claude

subscribe-to-track

Claude

unsubscribe-from-bill

Claude

unsubscribe-from-track

Claude

update-bill-assignment-notification-settings

Claude

update-bill-notification-settings

Claude

update-bill-radar-rule

Claude

update-calendar-alert-rule

Claude

update-comment-mention-notification-settings

Claude

update-core-smart-action-notification-settings

Claude

update-dashboard

Claude

update-my-calendar-alert-channels

Claude

update-my-video-radar-notifications

Claude

update-portal

Claude

update-portal-update

Claude

update-task-notification-preferences

Claude

update-team-collaboration-settings

Claude

update-track

Claude

update-track-notification-settings

Claude

update-user-bill-notification-defaults

Claude

update-user-daily-digest-setting

Claude

update-user-notification-settings

Claude

update-video-radar-rule

Claude

update-widget

Claude

Similar Apps

Listed on MCP App Store

Listed on MCP App Store

Add this badge to your site or README. It links to this page.

HTML

<a href="https://mcp-app-store.keenethics-labs.com/app/uslege"><img src="https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg" alt="Listed on MCP App Store" width="220" height="44"></a>

Markdown

[![Listed on MCP App Store](https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg)](https://mcp-app-store.keenethics-labs.com/app/uslege)