Create Entry
create_entryCreates a structured markdown journal entry with type, tags, and impact/trust/validation scores to preserve project context and enable session handoff.
Instructions
Create a new journal entry. Content must be well-structured markdown using ## section headers. Select the most accurate entry_type (e.g., retrospective, personal_reflection, technical_note). For session summaries, use entry_type "retrospective" with tag "session-summary" and structure content as: ## Accomplished, ## Unfinished / Blocked, ## Context for Next Session. REQUIRED: You MUST include project_number. Extract this by querying memory://agent-id. REQUIRED: You MUST include impact_score, trust_score, and validation_status. REQUIRED: You MUST use related_to to anchor the entry to a session summary or nearby context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags for categorization (kebab-case). Session summaries MUST include "session-summary". DO NOT hallucinate fake tags. Only use tags that genuinely match the content or existing repository vocabulary, domain tags (e.g., "security", "performance") and activity tags (e.g., "refactor", "audit"). [ANTI-HALLUCINATION] MUST be an array of strings, e.g. ["tag1", "tag2"]. NEVER pass a single string. | |
| pr_url | No | ||
| anchors | No | Files or lines of code that this entry is fundamentally anchored to. If the anchor becomes stale/invalid, the entry importance score drops. | |
| content | No | Markdown-formatted entry content. Use ## section headers to organize content. Note: The primary text is stored in the `content` property (not `entry`, `title`, `message`, `name`, `description`, or `text`). For session summaries (entry_type: "retrospective", tagged "session-summary"), MUST use EXACTLY: ## Accomplished, ## Unfinished / Blocked, ## Context for Next Session, ## Commits. Do NOT invent extra top-level sections for session summaries. | |
| issue_url | No | ||
| pr_number | No | ||
| pr_status | No | ||
| entry_type | No | Entry type. Use "retrospective" for session summaries, "bug_fix" for bugs, "feature_implementation" for features, "planning" for roadmaps, "technical_note" for implementation notes. Do NOT default to "personal_reflection" unless the entry is genuinely a personal note. | personal_reflection |
| session_id | No | Agent session ID for thread isolation (usually conversation ID). | |
| is_personal | No | ||
| trust_score | No | Heuristic score (0.0-1.0) indicating confidence (0.3-0.5 for unverified, 0.9+ for verified). | |
| auto_context | No | JSON string with structured metadata. Used for session-commits context. | |
| impact_score | No | Heuristic score (0.0-1.0) indicating blast radius (0.9+ for core architecture, 0.1 for simple docs). | |
| issue_number | No | ||
| workspace_id | Yes | REQUIRED. The repository name (e.g. adamic). Do not use numeric project IDs or "workspace" as the key. | |
| project_owner | No | ||
| relationships | No | Optional array of links to previous entries/flags to establish relationships immediately upon creation. Types: "resolves", "depends_on", "implements", "relates_to", "references", "evolves_from" | |
| workflow_name | No | ||
| project_number | No | Numeric project ID (e.g., 1, 14). This is now optional; workspace_id is preferred. | |
| share_with_team | No | If true, saves a copy of this entry to the Team database (if configured) using your team alias | |
| workflow_run_id | No | ||
| workflow_status | No | ||
| significance_type | No | ||
| validation_status | No | Current validation status of the entry (passed, none, failed). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| entry | No | ||
| error | No | Human-readable error message | |
| author | No | ||
| details | No | Additional error context | |
| success | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| sharedWithTeam | No | ||
| aggregated_errors | No | Details of individual errors in a multi-step operation |