ClickTime MCP by usefulapi

v1.10.1
io.usefulapi/clicktime Checked 2 days ago Published 1 day ago

Read jobs, timesheets and reports; log time, update entries and submit timesheets in ClickTime.

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

clicktime_get_me Get my user

The ClickTime user this API token belongs to: id, name, email, security level (Standard, Manager, Admin), division, default task, approvers and timesheet preferences. The API token itself is never returned. GET /Me.

clicktime_get_company Get company settings

Company configuration: name, currency, week start, timesheet model, how the company names jobs/clients/tasks, restriction methods, and which optional modules are on (Expenses, TimeOffAccruals, SubJob phases). Call this first before using expense, time-off-request or phase tools. GET /Company.

clicktime_list_jobs List jobs (projects)

List the jobs (projects) the token's user can log time to, by name, with job number, client, dates and active state. Use the ids to log time or filter entries. GET /Me/Jobs.

ParameterTypeDescription
client_idstringOnly jobs of this client id (see clicktime_list_clients).
is_activebooleantrue = active jobs only, false = inactive only (default: both).
job_numberstringOnly the job with this job number.
limitintegerResults per page, 1-1000 (default 50).
my_jobsbooleantrue = only jobs assigned to the user (company job-list controls).
namestringOnly jobs with exactly this name.
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
verbosebooleanAlso return the related Job/Client/Task/User objects and billable flags (slower, larger).

clicktime_get_job Get job

One job (project) by id: name, number, client, start/end dates, active state. GET /Me/Jobs/{jobID}.

ParameterTypeDescription
job_id *stringClickTime job id.
verbosebooleanAlso return the related Job/Client/Task/User objects and billable flags (slower, larger).

clicktime_list_clients List clients

List the clients the token's user can see, with client number, short name and active state. GET /Me/Clients.

ParameterTypeDescription
client_numberstringOnly the client with this client number.
is_activebooleantrue = active only, false = inactive only (default: both).
limitintegerResults per page, 1-1000 (default 50).
namestringOnly clients with exactly this name.
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
short_namestringOnly the client with this short name.

clicktime_list_tasks List tasks

List the tasks (work categories) the token's user can log time against, with task code and active state. When the company restricts tasks per job, use clicktime_list_job_task_controls instead. GET /Me/Tasks.

ParameterTypeDescription
is_activebooleantrue = active only, false = inactive only (default: both).
limitintegerResults per page, 1-1000 (default 50).
my_tasksbooleantrue = only tasks assigned to the user.
namestringOnly tasks with exactly this name.
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
task_codestringOnly the task with this task code.

clicktime_list_job_task_controls List valid job and task pairs

The (job, task) combinations the user may log time on. Only valid when the company's TaskRestrictionMethod is 'byjob' (see clicktime_get_company); otherwise ClickTime answers 403. Active rows only unless filtered. GET /Me/Jobs/TaskControls.

ParameterTypeDescription
job_idstringOnly pairs for this job id.
limitintegerResults per page, 1-1000 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
task_idstringOnly pairs for this task id.

clicktime_list_job_phases List job phases

The phases (sub-jobs, level 1) defined on a job. Needs the company's SubJob/phases module (see clicktime_get_company). Use the phase id when logging time on a phased job. GET /Me/Jobs/{jobID}/JobPhase.

ParameterTypeDescription
job_id *stringClickTime job id.
limitintegerResults per page, 1-1000 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.

clicktime_list_time_entries List my time entries

List the token user's time entries, newest first: date, hours, job, task, comment, start/end time. Filter by one day (entry_date), a date range (start_date + end_date), job or task. Only days with logged time appear. Add verbose to get job/client names and the billable flag. GET /Me/TimeEntries.

ParameterTypeDescription
end_datestringLast day of a date range, included (yyyy-mm-dd).
entry_datearraySpecific days (yyyy-mm-dd), up to 31.
job_idstringOnly entries on this job id.
limitintegerResults per page, 1-100 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
start_datestringFirst day of a date range (yyyy-mm-dd); use with end_date.
task_idstringOnly entries on this task id.
verbosebooleanAlso return the related Job/Client/Task/User objects and billable flags (slower, larger).

clicktime_get_time_entry Get time entry

One of the user's time entries by id, with hours, comment, date, job, task, phase and custom fields. GET /Me/TimeEntries/{timeEntryID}.

ParameterTypeDescription
time_entry_id *stringClickTime time entry id.
verbosebooleanAlso return the related Job/Client/Task/User objects and billable flags (slower, larger).

clicktime_list_timesheets List my timesheets

List the user's timesheets (pay periods), newest first, with period dates, status (Open, Waiting, Approved, Rejected, Locked...), total hours and who submitted or approved. GET /Me/Timesheets.

ParameterTypeDescription
from_datestringOnly timesheets ending on or after this date (yyyy-mm-dd).
limitintegerResults per page, 1-1000 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
statusarrayOnly timesheets in these states (Waiting = submitted and awaiting approval; submitted is the vendor's own alias).
to_datestringOnly timesheets starting on or before this date (yyyy-mm-dd).

clicktime_get_timesheet_by_date Get timesheet covering a date

The user's timesheet whose period contains a given day: period dates, status, day totals and the general actions (Submit, UndoSubmit...). GET /Me/Timesheets/{date}.

ParameterTypeDescription
date *stringAny day inside the timesheet period.

clicktime_list_timesheet_actions List actions available on my timesheet

The status actions the user can take right now on the timesheet covering a date (Submit, UndoSubmit...). Check this before clicktime_submit_timesheet. GET /Me/Timesheets/{date}/Actions.

ParameterTypeDescription
date *stringAny day inside the timesheet period.

clicktime_list_time_off_types List time off types and balances

The time off types the user can take (vacation, sick...) with CurrentBalance, accrual and whether approval is required. Use for balance questions. GET /Me/TimeOffTypes.

ParameterTypeDescription
is_activebooleantrue = active types only (the only ones that can be booked).
limitintegerResults per page, 1-1000 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
requires_approvalbooleanFilter by approval-required types.

clicktime_list_time_off List my time off

Time off the user has taken or booked, newest first: date, hours, type, notes. Not requests or balances. GET /Me/TimeOff.

ParameterTypeDescription
from_datestringOnly entries on or after this date (yyyy-mm-dd).
limitintegerResults per page, 1-500 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
time_off_type_idstringOnly this time off type id.
to_datestringOnly entries on or before this date (yyyy-mm-dd).

clicktime_list_time_off_requests List my time off requests

The user's time off requests with status and dates. Needs the company's TimeOffAccruals module (see clicktime_get_company). GET /Me/TimeOffRequests.

ParameterTypeDescription
from_datestringOnly requests on or after this date (yyyy-mm-dd).
limitintegerResults per page, 1-1000 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
statusarrayOnly requests in these statuses (Submitted = awaiting approval).
to_datestringOnly requests on or before this date (yyyy-mm-dd).

clicktime_list_expense_sheets List my expense sheets

The user's expense sheets with status, total and reimbursable amount, paid flag. Needs the company's Expenses module (see clicktime_get_company). GET /Me/ExpenseSheets.

ParameterTypeDescription
from_datestringOnly sheets dated on or after this day (yyyy-mm-dd).
limitintegerResults per page, 1-100 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
paidbooleantrue = paid sheets only, false = unpaid only.
statusarrayOnly sheets in these statuses (waiting = submitted for approval).
to_datestringOnly sheets dated on or before this day (yyyy-mm-dd).

clicktime_list_expense_items List my expense items

The user's expense items: date, type, amount, description, job, billable flag, sheet. Receipt images are not fetched. Needs the Expenses module. GET /Me/ExpenseItems.

ParameterTypeDescription
expense_sheet_idstringOnly items on this expense sheet id.
from_datestringOnly items dated on or after this day (yyyy-mm-dd).
job_idstringOnly items charged to this job id.
limitintegerResults per page, 1-500 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
to_datestringOnly items dated on or before this day (yyyy-mm-dd).

clicktime_list_users List users

List people in the company with name, email, security level, division, approvers and active state. Needs a Manager or Admin token (others get 403). Cost and billing rates are included for Admins. GET /Users.

ParameterTypeDescription
division_idstringOnly users in this division id.
emailstringOnly the user with this email.
is_activebooleantrue = active only, false = inactive only (default: both).
limitintegerResults per page, 1-1000 (default 50).
namestringOnly the user with exactly this name.
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.

clicktime_time_report Time report (company-wide)

Company-wide time entries (what the Time report shows): date, user, job, client, task, hours, billable flag, rates. Filter by date range, user, job, client, task, division or billable. Needs an Admin, or a Manager allowed to run company reports. Up to 2500 rows per page. GET /Reports/Time.

ParameterTypeDescription
client_idstringOnly this client id.
division_idstringOnly this division id.
end_datestringLast day, included (yyyy-mm-dd).
is_billablebooleantrue = billable time only, false = non-billable only.
job_idstringOnly this job id.
limitintegerResults per page, 1-2500 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
start_datestringFirst day (yyyy-mm-dd).
task_idstringOnly this task id.
user_idstringOnly this user id (see clicktime_list_users).

clicktime_time_summary Time summary (grouped)

Hours, billable hours, billings and cost totals grouped by Job, Task, User, Month, Date or WorkType (several groupings combine, for example Job + User). Needs a Manager or Admin token. ClickTime requires at least one of job_id, user_id or task_id as a filter. GET /Reports/TimeSummary.

ParameterTypeDescription
group_by *arrayWhat to group the totals by: one of Job, Task, User, Month, Date, WorkType, or one of the pairs Task+User, Job+Task, Job+User, Job+Month.
end_datestringLast day, included (yyyy-mm-dd).
job_idstringOnly this job id.
job_is_activebooleantrue = active jobs only.
limitintegerResults per page, 1-2500 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset.
start_datestringFirst day (yyyy-mm-dd).
task_idstringOnly this task id.
user_idstringOnly this user id.

clicktime_create_time_entry Log time

WRITE: log a time entry on the token user's own timesheet. Needs job_id and hours; task_id falls back to the user's default task; date defaults to today. Creates a NEW entry each call (not idempotent) and fails on a locked or submitted timesheet. Confirm date, hours, job, task and comment with the user first. POST /Me/TimeEntries.

ParameterTypeDescription
hours *numberHours worked, 0-24 (two decimals are kept).
job_id *stringJob id (see clicktime_list_jobs).
break_timenumberBreak hours.
commentstringComment, up to 2000 characters (some companies require one).
datestringDay worked, yyyy-mm-dd (default: today).
dcaa_explanationstringExplanation required by DCAA-enabled companies when changing a past date.
end_timestringTime of day, HH:MM (24-hour).
phase_idstringPhase id, on companies with phases.
start_timestringTime of day, HH:MM (24-hour).
sub_phase_idstringSub-phase id, on companies with two phase levels.
task_idstringTask id; omitted = the user's default task. Under per-job task restrictions it must be valid for the job.

clicktime_update_time_entry Update time entry

WRITE: change one of the user's own time entries (hours, comment, job, task, start/end time, break). Only the fields you pass change; the date cannot be changed. Overwrites the previous values; a locked timesheet rejects it. Show the current and new values to the user first. PATCH /Me/TimeEntries/{timeEntryID}.

ParameterTypeDescription
time_entry_id *stringTime entry id (see clicktime_list_time_entries).
break_timenumberBreak hours.
commentstringNew comment (up to 2000 characters).
dcaa_explanationstringExplanation required by DCAA-enabled companies when changing a past date.
end_timestringTime of day, HH:MM (24-hour).
hoursnumberHours worked, 0-24 (two decimals are kept).
job_idstringMove the entry to this job id.
phase_idstringPhase id.
start_timestringTime of day, HH:MM (24-hour).
sub_phase_idstringSub-phase id.
task_idstringMove the entry to this task id.

clicktime_submit_timesheet Submit or recall my timesheet

WRITE: submit the user's timesheet covering a date for approval (action Submit), or recall it (UndoSubmit). Submitting locks the entries and notifies the approver; confirm with the user first. Check the available actions with clicktime_list_timesheet_actions first. POST /Me/Timesheets/{date}/Actions.

ParameterTypeDescription
action *stringSubmit = send for approval; UndoSubmit = recall a submitted timesheet.
date *stringAny day inside the timesheet period.
commentstringOptional comment for the approver (up to 2000 characters).
has_attestationbooleantrue when the company requires attesting the timesheet is accurate and the user agrees.

clicktime_create_client Create client

WRITE: create a client. Needs an Admin, or a Manager allowed to add clients. Creates a NEW client each call (not idempotent); check clicktime_list_clients first to avoid duplicates. POST /Clients.

ParameterTypeDescription
name *stringClient name (up to 50 characters).
short_name *stringShort name (required by ClickTime).
client_numberstringClient number (up to 50 characters).
is_activebooleanActive (default true).
notesstringNotes.

clicktime_create_job Create job

WRITE: create a job (project) under a client. Needs an Admin, or a Manager allowed to add jobs. Creates a NEW job each call (not idempotent); check clicktime_list_jobs first to avoid duplicates. POST /Jobs.

ParameterTypeDescription
client_id *stringClient id (see clicktime_list_clients).
job_number *stringJob number, unique within the company (up to 50 characters).
name *stringJob name (up to 50 characters).
end_datestringEnd date (yyyy-mm-dd).
is_activebooleanActive (default true).
is_billablebooleanBillable (only when the company sets billability per job).
notesstringNotes.
start_datestringStart date (yyyy-mm-dd).

clicktime_create_time_off Log time off

WRITE: book time off for the token user (vacation, sick...) on one day. The type must be active and must not need approval; the tool checks this first (GET /Me/TimeOffTypes/{id}) and refuses other types. Creates a NEW entry each call (not idempotent); check clicktime_list_time_off for that day first. Confirm the type, date, hours and notes with the user first. POST /Me/TimeOff.

ParameterTypeDescription
date *stringDay off, yyyy-mm-dd.
hours *numberHours worked, 0-24 (two decimals are kept).
time_off_type_id *stringTime off type id (see clicktime_list_time_off_types).
dcaa_explanationstringExplanation required by DCAA-enabled companies for a past date.
notesstringNotes, up to 2000 characters.

clicktime_create_time_off_for_user Log time off for a user

WRITE: book time off for ANOTHER user on one day (not the token user; use clicktime_create_time_off for your own). Needs an Admin, or a Manager with the Override timesheets permission. The type must be active and must not need approval. Creates a NEW entry each call (not idempotent); check that user's time off in ClickTime first. Ask the user before calling it. POST /TimeOff.

ParameterTypeDescription
date *stringDay off, yyyy-mm-dd.
hours *numberHours worked, 0-24 (two decimals are kept).
time_off_type_id *stringTime off type id of the company (must not need approval).
user_id *stringClickTime user id of the person (see clicktime_list_users).
dcaa_explanationstringExplanation required by DCAA-enabled companies for a past date.
notesstringNotes, up to 2000 characters.