MCP Tools Reference

The Retrace MCP server exposes the following tools to AI agents.

log_entry

Log a work memory entry. The agent should call this proactively whenever something meaningful happens — milestones, decisions, bugs resolved, context switches.

Project workflow: Before logging with a project, agents must call list_projects first to find the exact name. If no matching project exists, call create_project first. Entries with unrecognized project names are rejected.

ParameterTypeRequiredDescription
contentstringRich description — the what, why, and how
categoryenumcoding, debugging, reviewing, deploying, meeting, research, planning, general
projectstringProject name (must match an existing project)
tagsstring[]Tags for the entry
peoplestring[]People involved or mentioned
refsstring[]External references — ticket IDs, PR numbers
componentstringSystem/service/component affected
sourcestringSource agent (e.g. copilot, cursor)

query_journal

Search and filter journal entries. Use this to find past work, answer "when did I do X?", or retrieve entries by date range, project, or category.

ParameterTypeRequiredDescription
fromstringStart date/time (ISO 8601)
tostringEnd date/time (ISO 8601)
timezonestringUser's IANA timezone (e.g. 'America/Denver') — always include for relative date queries
categorystringFilter by category
projectstringFilter by project name
searchstringFull-text search in content
personstringFilter by person mentioned
componentstringFilter by component
limitnumberMax entries to return (default 50)

get_summary

Get a summary of work done on a specific date. Great for standups and daily recaps.

ParameterTypeRequiredDescription
datestringDate (YYYY-MM-DD), or 'today'/'yesterday'
timezonestringUser's IANA timezone — required for correct 'today'/'yesterday' resolution

list_projects

List all projects for the user. Call this before log_entry to find the right project name, or to check if a project exists before creating one. No parameters.

create_project

Create a new project. Only call this when you've checked list_projects and no matching project exists. Don't create projects for one-off tasks.

ParameterTypeRequiredDescription
namestringShort project name (e.g. 'retrace-mcp', 'billing-service')
descriptionstringBrief description of the project

edit_entry

Edit an existing journal entry by its entry number. Only provided fields are updated; omitted fields remain unchanged.

ParameterTypeRequiredDescription
entry_numbernumberEntry number to edit (the # shown in query results)
contentstringUpdated content
categoryenumUpdated category
projectstringUpdated project name (must exist)
tagsstring[]Updated tags (replaces existing)
peoplestring[]Updated people (replaces existing)
refsstring[]Updated refs (replaces existing)
componentstringUpdated component

delete_entry

Delete a journal entry by its entry number.

ParameterTypeRequiredDescription
entry_numbernumberEntry number to delete (the # shown in query results)