{"at":"2026-11-22T09:39:29.166Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T09:39:29.604Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T09:39:29.705Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T09:39:30.106Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"nexusmind","version":"0.2.0"}}}}
{"at":"2026-11-22T09:39:30.106Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T09:39:30.106Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T09:39:30.116Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Call immediately after any decision, bug fix, convention, or non-obvious discovery. Requires title (verb + what), type, and project. Call before moving to the next task.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"auto_tag":{"description":"Auto-detect tags from content (bugfix, decision, feature, discovery, refactor, testing) and merge with tags","type":"boolean"},"collection_id":{"description":"Collection ID to assign the memory to on creation","type":"string"},"content":{"description":"Full memory content (decision rationale, bug root cause, discovery, etc.)","type":"string"},"project":{"description":"Project or repo name (e.g. \"nexusmind\", \"payments-api\")","type":"string"},"scope":{"description":"project (team-shared, default) or personal (cross-project)","enum":["project","personal"],"type":"string"},"session_id":{"description":"Session ID to link this memory to a session","type":"string"},"tags":{"description":"Tags for filtering (e.g. [\"auth\", \"convention\"])","items":{"type":"string"},"type":"array"},"title":{"description":"Short searchable title (e.g. \"Fixed N+1 query in UserList\")","type":"string"},"tool":{"description":"Tool name — defaults to \"claude-code\"","type":"string"},"topic_key":{"description":"Stable key for upsertable topics — same key updates the existing memory (e.g. \"architecture/auth-model\")","type":"string"},"type":{"description":"Memory type (see enum values)","enum":["architecture","bugfix","decision","discovery","config","pattern","feedback","preference","project","session_summary","feature","refactoring","manual"],"type":"string"}},"required":["content"],"type":"object"},"name":"store_memory"},{"description":"Search or browse team memories. Pass `project` to scope the search — strongly recommended: ranking has no notion of scope, so in an org with several clients an unscoped query returns other clients' memories. Pass query for semantic search (every filter EXCEPT project is applied client-side over the top 100 ranked matches, so narrow ones may under-return); omit query to list/browse with filters.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"collection_id":{"description":"Filter by collection ID","type":"string"},"include_archived":{"description":"Include archived memories (default: false)","type":"boolean"},"limit":{"description":"Max results (default: 20)","maximum":200,"minimum":1,"type":"integer"},"pinned":{"description":"When true, return only pinned memories","type":"boolean"},"project":{"description":"Filter by project name","type":"string"},"query":{"description":"Semantic search text — omit to list/browse instead","type":"string"},"scope":{"description":"Filter by scope","enum":["project","personal"],"type":"string"},"session_id":{"description":"Filter by session ID","type":"string"},"since":{"description":"ISO date — only memories on/after this date","type":"string"},"sort":{"description":"created_at for timeline ordering — applies only when query is omitted","enum":["created_at"],"type":"string"},"tag_mode":{"description":"\"any\" (default) or \"all\" tags must match","enum":["any","all"],"type":"string"},"tags":{"description":"Filter by tags","items":{"type":"string"},"type":"array"},"tool":{"description":"Filter by tool (e.g. \"claude-code\", \"cursor\")","type":"string"},"type":{"description":"Memory type (see enum values)","enum":["architecture","bugfix","decision","discovery","config","pattern","feedback","preference","project","session_summary","feature","refactoring","manual"],"type":"string"},"until":{"description":"ISO date — only memories on/before this date","type":"string"}},"type":"object"},"name":"search_memories"},{"description":"Call at the START of any significant session. Returns team conventions (highest authority) plus memories, optionally org stats and recent agent activity. mode \"full\" (default) is complete detail grouped by type; \"compact\" is titles/one-liners with ids.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_activity":{"description":"Include recent agent activity (default: false)","type":"boolean"},"include_conventions":{"description":"Include team conventions (default: true)","type":"boolean"},"include_memories":{"description":"Include memories (default: true)","type":"boolean"},"include_stats":{"description":"Include org stats (default: false)","type":"boolean"},"limit":{"description":"Max memories (default: 40)","maximum":100,"minimum":1,"type":"integer"},"mode":{"description":"\"full\" (default) or \"compact\" (titles/one-liners with ids)","enum":["compact","full"],"type":"string"},"project":{"description":"Project to fetch context for; omit for all projects","type":"string"}},"type":"object"},"name":"get_context"},{"description":"Fetch FULL untruncated content for a single memory by id. search_memories returns previews (often 120-300 chars); when you need to act on or quote the full record, call get_memory(id).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The memory id (returned by search_memories)","type":"string"}},"required":["id"],"type":"object"},"name":"get_memory"},{"description":"Delete a memory permanently. The USER must request deletion explicitly — DO NOT delete autonomously. Required: confirm: true. Without confirm: true this tool refuses and returns an error. Backend hard-deletes; there is no undo. Use only for stale, incorrect, or explicitly retired memories.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses.","type":"boolean"},"id":{"description":"The memory id to delete","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"delete_memory"},{"description":"Call before any semantic code search on an unindexed project, or when code has changed significantly. Chunks source files by symbol, embeds them, and persists to the code index. Supports both local directories (root_path) and remote GitHub repositories (repo_url). For private GitHub repos, provide a github_token with repo read scope.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"extensions":{"description":"File extensions to include (defaults to common code extensions)","items":{"type":"string"},"type":"array"},"github_token":{"description":"GitHub Personal Access Token for private repositories. Requires the repo (or contents:read) scope. Stored encrypted — never logged or returned in responses.","type":"string"},"project":{"description":"Logical project name used as the search scope key","type":"string"},"repo_url":{"description":"GitHub repository URL to clone and index (e.g. https://github.com/owner/repo). Use for remote repos instead of root_path.","type":"string"},"root_path":{"description":"Absolute path to the project root directory to index (use for local codebases)","type":"string"}},"required":["project"],"type":"object"},"name":"index_project"},{"description":"Primary tool for understanding a codebase semantically — find where something is defined, how a pattern is implemented, or what handles a concern, without reading files manually. Requires index_project first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max results (default: 10, max: 20)","maximum":20,"minimum":1,"type":"integer"},"project":{"description":"Project key — must match the key used in index_project","type":"string"},"query":{"description":"Natural language or code description of what to find","type":"string"}},"required":["query","project"],"type":"object"},"name":"search_code"},{"description":"After search_code identifies a symbol, call this to get the full context of that symbol and its immediate neighbors in the file. Returns the target chunk plus up to 2 adjacent chunks (one before, one after) in file order.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"file_path":{"description":"File path as returned by search_code (e.g. \"src/auth.rs\")","type":"string"},"project":{"description":"Project key — must match the key used in index_project","type":"string"},"symbol":{"description":"Symbol name to look up (e.g. \"authenticate_user\", \"UserService\")","type":"string"}},"required":["project","file_path","symbol"],"type":"object"},"name":"get_symbol_context"},{"description":"Search across memories, policies, conventions, and users simultaneously. Returns grouped results by type. Use when you need a broad cross-resource search rather than targeted memory or code lookup.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"query":{"description":"Search query (e.g. \"authentication\", \"user onboarding\")","type":"string"},"types":{"description":"Resource types to search. Omit to search all types.","items":{"enum":["memories","code","users","policies","conventions"],"type":"string"},"type":"array"}},"required":["query"],"type":"object"},"name":"global_search"},{"description":"List all code projects registered for indexing, including their indexing status and last indexed timestamp. Use to discover which projects are available for code search before calling search_code.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_archived":{"description":"Include archived projects in the results (default: false)","type":"boolean"}},"type":"object"},"name":"list_code_projects"},{"description":"List all indexed file paths for a code project. Use to inspect what files are in the search index before running semantic queries.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project_id":{"description":"The numeric ID of the code project (returned by list_code_projects)","type":"string"}},"required":["project_id"],"type":"object"},"name":"get_code_project_files"},{"description":"Delete a code project and all its indexed data. Requires confirm: true. There is no undo — all chunks and embeddings for the project are permanently removed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses and makes no HTTP request.","type":"boolean"},"id":{"description":"The numeric ID of the code project to delete (returned by list_code_projects)","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"delete_code_project"},{"description":"Permanently delete multiple memories by ID. Requires confirm: true as a safety check. Use only when the USER explicitly requests bulk deletion. There is no undo — the backend hard-deletes all specified records.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to proceed. Without confirm: true the tool refuses and makes no HTTP request.","type":"boolean"},"ids":{"description":"Array of memory IDs to delete","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["ids","confirm"],"type":"object"},"name":"bulk_delete_memories"},{"description":"Update the content, tags, or metadata of an existing memory by ID. Call when you want to revise what was stored without creating a duplicate — preferred over delete+store for corrections or enrichments.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"content":{"description":"New full content for the memory","type":"string"},"id":{"description":"The memory ID to update (returned by search_memories)","type":"string"},"metadata":{"additionalProperties":{},"description":"Arbitrary metadata key/value pairs to merge into the memory","type":"object"},"tags":{"description":"Replacement tag list (overwrites existing tags)","items":{"type":"string"},"type":"array"}},"required":["id"],"type":"object"},"name":"update_memory"},{"description":"Archive a memory (hide from default search results without deleting). Archived memories can be restored at any time. Use when a memory is outdated or superseded but should not be permanently deleted.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The memory ID to archive","type":"string"}},"required":["id"],"type":"object"},"name":"archive_memory"},{"description":"Restore a previously archived memory, making it visible again in default search results.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The memory ID to restore","type":"string"}},"required":["id"],"type":"object"},"name":"restore_memory"},{"description":"Pin a memory so it appears prominently in context retrieval results. Use for critical decisions, architectural constraints, or team conventions that must always be surfaced.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The memory ID to pin","type":"string"}},"required":["id"],"type":"object"},"name":"pin_memory"},{"description":"Unpin a previously pinned memory, returning it to standard ranking in context retrieval.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The memory ID to unpin","type":"string"}},"required":["id"],"type":"object"},"name":"unpin_memory"},{"description":"Set or update the admin-only internal note on a memory. Notes are visible only to admins, not to users or agents.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"memory_id":{"description":"Memory ID","type":"string"},"note":{"description":"Admin note content (empty string to clear)","type":"string"}},"required":["memory_id","note"],"type":"object"},"name":"update_memory_note"},{"description":"Merge multiple duplicate memories into one. Content from source_ids is merged into target_id.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"source_ids":{"description":"IDs of the memories to merge into target_id","items":{"type":"string"},"minItems":1,"type":"array"},"target_id":{"description":"ID of the memory to keep — all source_ids are merged into this one","type":"string"}},"required":["source_ids","target_id"],"type":"object"},"name":"merge_memories"},{"description":"Add or remove tags from multiple memories at once.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"add_tags":{"description":"Tags to add to all specified memories","items":{"type":"string"},"type":"array"},"ids":{"description":"Memory IDs to tag or untag","items":{"type":"string"},"minItems":1,"type":"array"},"remove_tags":{"description":"Tags to remove from all specified memories","items":{"type":"string"},"type":"array"}},"required":["ids"],"type":"object"},"name":"bulk_tag_memories"},{"description":"List all memory collections in the organization.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_collections"},{"description":"Assign a memory to a collection, or remove it from its collection (collection_id: null).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"collection_id":{"description":"ID of the collection to assign to, or null to remove from collection","type":["string","null"]},"memory_id":{"description":"ID of the memory to assign","type":"string"}},"required":["memory_id","collection_id"],"type":"object"},"name":"assign_memory_to_collection"},{"description":"List or search team conventions, optionally filtered by category and/or query text. Use to discover established patterns, coding standards, or naming rules before starting work.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"Filter by category (e.g. \"naming\", \"architecture\", \"testing\")","type":"string"},"compact":{"description":"Compact shape: weight + title + 200-char snippet (default: false)","type":"boolean"},"include_archived":{"description":"Include archived conventions in results (default: false)","type":"boolean"},"project":{"description":"Optional project slug to scope results to that project plus global (unscoped) items.","type":"string"},"query":{"description":"Filter by text in title or content","type":"string"}},"type":"object"},"name":"list_conventions"},{"description":"Fetch the full content of a single convention by ID. Use after list_conventions to read the complete rule or pattern.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Convention ID returned by list_conventions","type":"string"}},"required":["id"],"type":"object"},"name":"get_convention"},{"description":"Store a new team convention in NexusMind. Use to record coding standards, naming rules, architectural patterns, or any team agreement that should persist across sessions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"Category for grouping (e.g. \"naming\", \"architecture\", \"testing\")","type":"string"},"content":{"description":"Full convention text — what the rule is and why it exists","type":"string"},"title":{"description":"Short descriptive title (e.g. \"Use kebab-case for file names\")","type":"string"}},"required":["content"],"type":"object"},"name":"store_convention"},{"description":"Update an existing convention by ID. Use to refine a rule, change its category, or correct its title without deleting and re-creating it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"New category","type":"string"},"content":{"description":"New full convention text","type":"string"},"id":{"description":"Convention ID to update (returned by list_conventions or store_convention)","type":"string"},"title":{"description":"New title","type":"string"}},"required":["id"],"type":"object"},"name":"update_convention"},{"description":"Archive a convention to hide it from active context without deleting it. Archived conventions are excluded from get_context and list_conventions by default. Use when a rule is superseded or temporarily suspended.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Convention ID to archive (returned by list_conventions or store_convention)","type":"string"}},"required":["id"],"type":"object"},"name":"archive_convention"},{"description":"Restore an archived convention back to active status. It will appear again in list_conventions and get_context results.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Convention ID to restore","type":"string"}},"required":["id"],"type":"object"},"name":"restore_convention"},{"description":"Permanently delete a convention. There is no undo — the backend hard-deletes the record. Requires confirm: true as a safety check.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses and makes no HTTP request.","type":"boolean"},"id":{"description":"Convention ID to delete","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"delete_convention"},{"description":"Bulk import multiple conventions at once. Each item needs a title and content. Use this to import team conventions in batch.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"conventions":{"description":"Array of conventions to import","items":{"additionalProperties":false,"properties":{"category":{"description":"Category (e.g. \"architecture\", \"testing\")","type":"string"},"content":{"description":"Convention content","type":"string"},"title":{"description":"Convention title","type":"string"},"weight":{"description":"Priority weight (default: 100)","type":"number"}},"required":["title","content"],"type":"object"},"minItems":1,"type":"array"}},"required":["conventions"],"type":"object"},"name":"import_conventions_from_text"},{"description":"Check whether a specific action is permitted under the organization's policies before performing it. Returns allowed: true/false with reason.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"action":{"description":"The action to check (e.g. \"delete\", \"publish\", \"share\")","type":"string"},"context":{"additionalProperties":{},"description":"Optional additional context key/value pairs for the policy evaluation","type":"object"},"resource":{"description":"The resource the action targets (e.g. \"memory\", \"convention\", \"project/payments-api\")","type":"string"}},"required":["action","resource"],"type":"object"},"name":"check_policy"},{"description":"List all API keys in the organization with their usage stats and expiry.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_api_keys"},{"description":"Revoke an API key. Requires confirm: true.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the revocation. Without this, the tool refuses.","type":"boolean"},"id":{"description":"The API key ID to revoke (returned by list_api_keys)","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"revoke_api_key"},{"description":"Create a new API key for programmatic access. Returns the key value (only shown once — save immediately).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Optional description of what this key is for","type":"string"},"expires_at":{"description":"Optional expiry date in ISO 8601 format (e.g. \"2025-12-31T23:59:59Z\")","type":"string"},"name":{"description":"Name for the API key (e.g. \"CI/CD pipeline\", \"My dev key\")","type":"string"},"role":{"description":"Role to assign to the key (e.g. \"admin\", \"member\", \"viewer\"). Defaults to \"member\".","type":"string"}},"required":["name"],"type":"object"},"name":"create_api_key"},{"description":"Get recent audit log entries, optionally filtered by user or action type.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"action":{"description":"Filter by action type (e.g. \"memory.create\", \"key.revoke\")","type":"string"},"limit":{"description":"Max entries to return (default: 50)","maximum":200,"minimum":1,"type":"integer"},"user_id":{"description":"Filter by user ID","type":"string"}},"type":"object"},"name":"get_audit_log"},{"description":"Get a summary of recent audit activity: most active users, most common actions, and daily breakdown.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"days":{"description":"Number of days to look back (default: 7)","maximum":90,"minimum":1,"type":"integer"}},"type":"object"},"name":"get_audit_summary"},{"description":"List all projects in the organization. Projects group memories and define event capture settings.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_archived":{"description":"Include archived projects in the results (default: false)","type":"boolean"}},"type":"object"},"name":"list_projects"},{"description":"Create a new project to organize memories and agent activity.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Optional description for the project","type":"string"},"name":{"description":"Name for the new project","type":"string"}},"required":["name"],"type":"object"},"name":"create_project"},{"description":"Update project settings: description, custom AI instructions, data retention policy, or archive status.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"archived":{"description":"true to archive, false to restore","type":"boolean"},"custom_instructions":{"description":"Custom AI instructions injected into agent context","type":"string"},"description":{"description":"New description for the project","type":"string"},"id":{"description":"Project ID to update (returned by list_projects)","type":"string"},"retention_days":{"description":"Days to retain memories (0 = forever)","minimum":0,"type":"integer"}},"required":["id"],"type":"object"},"name":"update_project"},{"description":"List all members of a project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project_id":{"description":"The project ID to list members for","type":"string"}},"required":["project_id"],"type":"object"},"name":"get_project_members"},{"description":"Add a user to a project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project_id":{"description":"The project ID to add the user to","type":"string"},"user_id":{"description":"The user ID to add to the project","type":"string"}},"required":["project_id","user_id"],"type":"object"},"name":"add_project_member"},{"description":"List all users in the organization with their roles, status, last login, and API key usage.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_users"},{"description":"Invite a new user to the organization by email. They will receive an invite link.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"email":{"description":"Email address of the user to invite","format":"email","type":"string"},"role":{"description":"Role to assign to the invited user (e.g. \"member\", \"admin\")","type":"string"}},"required":["email"],"type":"object"},"name":"invite_user"},{"description":"Disable a user account to block their access without deleting them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"user_id":{"description":"ID of the user to disable","type":"string"}},"required":["user_id"],"type":"object"},"name":"disable_user"},{"description":"Re-enable a previously disabled user account.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"user_id":{"description":"ID of the user to re-enable","type":"string"}},"required":["user_id"],"type":"object"},"name":"enable_user"},{"description":"Disable multiple users at once. Use list_users to find user IDs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"user_ids":{"description":"IDs of the users to disable","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["user_ids"],"type":"object"},"name":"bulk_disable_users"},{"description":"Re-enable multiple disabled users at once.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"user_ids":{"description":"IDs of the users to re-enable","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["user_ids"],"type":"object"},"name":"bulk_enable_users"},{"description":"List all roles in the organization with their permissions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_roles"},{"description":"Create a new role in the organization with a specified set of permissions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Optional description of what this role allows","type":"string"},"name":{"description":"Name for the new role (e.g. \"viewer\", \"editor\")","type":"string"},"permissions":{"description":"List of permission strings to grant (e.g. [\"memory.read\", \"memory.write\"])","items":{"type":"string"},"type":"array"}},"required":["name","permissions"],"type":"object"},"name":"create_role"},{"description":"Permanently delete a role by ID. Requires confirm: true. There is no undo — users with this role will lose it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses and makes no HTTP request.","type":"boolean"},"role_id":{"description":"ID of the role to delete (returned by list_roles)","type":"string"}},"required":["role_id","confirm"],"type":"object"},"name":"delete_role"},{"description":"List all webhooks configured in the organization.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_webhooks"},{"description":"Create a new webhook endpoint to receive NexusMind events.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"events":{"description":"List of event types to subscribe to (e.g. [\"memory.created\", \"user.invited\"])","items":{"type":"string"},"minItems":1,"type":"array"},"name":{"description":"Optional human-readable label for this webhook","type":"string"},"url":{"description":"The HTTPS URL that will receive webhook POST requests","format":"uri","type":"string"}},"required":["url","events"],"type":"object"},"name":"create_webhook"},{"description":"Update an existing webhook: change its URL, subscribed events, or display name.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"events":{"description":"New list of event types to subscribe to","items":{"type":"string"},"type":"array"},"id":{"description":"ID of the webhook to update (returned by list_webhooks or create_webhook)","type":"string"},"name":{"description":"New display name for the webhook","type":"string"},"url":{"description":"New HTTPS URL for the webhook","format":"uri","type":"string"}},"required":["id"],"type":"object"},"name":"update_webhook"},{"description":"Delete a webhook.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"ID of the webhook to delete (returned by list_webhooks or create_webhook)","type":"string"}},"required":["id"],"type":"object"},"name":"delete_webhook"},{"description":"Send a test ping to a webhook to verify it is receiving events. Use list_webhooks to find webhook IDs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"ID of the webhook to test (returned by list_webhooks or create_webhook)","type":"string"}},"required":["id"],"type":"object"},"name":"test_webhook"},{"description":"Get the organization's current settings: retention policy, custom AI instructions, announcement, min password length, and branding.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_org_settings"},{"description":"Get the current org announcement. Returns the announcement text, or 'No active announcement' if none is set.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_announcement"},{"description":"Update organization settings. Use custom_instructions to set org-wide AI instructions that will be injected into all agent context.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"custom_instructions":{"description":"Org-wide AI instructions injected into all agent context","type":"string"},"min_password_length":{"description":"Minimum password length for org members","minimum":6,"type":"integer"},"retention_days":{"description":"Number of days to retain memories (0 = retain forever)","minimum":0,"type":"integer"}},"type":"object"},"name":"update_org_settings"},{"description":"Get organization statistics: total memories, users, code projects, API calls, and storage usage.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_stats"},{"description":"Get recent agent activity events across all agents in the organization.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max number of activity events to return","maximum":200,"minimum":1,"type":"integer"}},"type":"object"},"name":"get_agent_activity"},{"description":"Get tag usage statistics: which tags are most used and their memory counts.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_tag_stats"},{"description":"Bulk import multiple memories at once. Useful for migrating memories from another system or restoring from a backup.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"memories":{"description":"Array of memory objects to import","items":{"additionalProperties":false,"properties":{"content":{"description":"Memory content","type":"string"},"metadata":{"additionalProperties":{},"description":"Arbitrary metadata for this memory","type":"object"},"tags":{"description":"Tags to apply to this memory","items":{"type":"string"},"type":"array"}},"required":["content"],"type":"object"},"minItems":1,"type":"array"}},"required":["memories"],"type":"object"},"name":"import_memories"},{"description":"Find memories with similar or duplicate content. Returns groups of potentially duplicate memories for review.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"find_duplicate_memories"},{"description":"Get memory creation trends over time. Returns daily counts for charting and a weekly summary.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"days":{"description":"Number of days to look back (default: 30, max: 90)","maximum":90,"minimum":1,"type":"integer"}},"type":"object"},"name":"get_memory_trends"},{"description":"Update the organization's name or slug.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"New organization name","type":"string"},"slug":{"description":"New organization slug (URL-safe identifier)","type":"string"}},"type":"object"},"name":"update_org"},{"description":"Rename a tag across all memories in the organization, replacing old_tag with new_tag. Also doubles as tag merging: if new_tag already exists, old_tag is absorbed into it and removed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"new_tag":{"description":"The new tag name to replace it with (or merge into)","type":"string"},"old_tag":{"description":"The existing tag name to rename (or merge away)","type":"string"}},"required":["old_tag","new_tag"],"type":"object"},"name":"rename_tag"},{"description":"Set or clear the organization-wide announcement banner shown to all users.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"description":"Announcement text to display, or null to clear the banner","type":["string","null"]},"type":{"description":"Banner type: \"info\" (default), \"warning\", or \"error\"","enum":["info","warning","error"],"type":"string"}},"required":["message"],"type":"object"},"name":"set_announcement"},{"description":"Export memories matching the given filters. Returns the export data as a string (JSON or CSV).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"collection_id":{"description":"Filter by collection ID","type":"string"},"format":{"description":"Export format: \"json\" (default) or \"csv\"","enum":["json","csv"],"type":"string"},"query":{"description":"Optional search query to filter exported memories","type":"string"},"tags":{"description":"Filter by tags (e.g. [\"auth\", \"convention\"])","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"export_memories"},{"description":"Get memory facets: breakdown by tags, projects, types, and time periods. Useful for understanding the shape of the memory corpus.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_memory_facets"},{"description":"Get API usage statistics: request counts, active API keys, most active agents, and rate limit data.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_usage_stats"},{"description":"Update a session's summary or description to label a group of related memories.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"New description for the session","type":"string"},"id":{"description":"The session ID to update","type":"string"},"summary":{"description":"New summary for the session","type":"string"}},"required":["id"],"type":"object"},"name":"update_session"},{"description":"Check whether a proposed action or implementation complies with all active team conventions. Returns COMPLIANT or NON-COMPLIANT with specific violations listed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"action":{"description":"A description of what the agent is about to do or implement","type":"string"},"project":{"description":"Optional project slug to scope results to that project plus global (unscoped) items.","type":"string"}},"required":["action"],"type":"object"},"name":"check_convention_compliance"},{"description":"List recent work sessions. Sessions group related memories by time and context. Useful for understanding what was worked on recently.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max sessions to return (default: 20)","maximum":100,"minimum":1,"type":"integer"}},"type":"object"},"name":"list_sessions"},{"description":"Delete a session and optionally its memories. Sessions group related work; delete when the context is no longer relevant.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The session ID to delete","type":"string"}},"required":["id"],"type":"object"},"name":"delete_session"},{"description":"Create a new work session to group related memories. Returns the new session ID.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Optional description for the new session","type":"string"},"summary":{"description":"Optional summary for the new session","type":"string"}},"type":"object"},"name":"create_session"},{"description":"Get session statistics: total sessions, total memories across all sessions, most active sessions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_session_stats"},{"description":"Check memory corpus health: total count, duplicates, stale (>30d, based on updated_at falling back to created_at), too-short (<50 chars), and untagged memories. Uses the backend health aggregate when available; falls back to a bounded sample-based estimate (with up to 3 examples per issue) labeled as such.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"health_check"},{"description":"Archive multiple memories at once by their IDs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"ids":{"description":"Array of memory IDs to archive","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["ids"],"type":"object"},"name":"batch_archive_memories"},{"description":"Restore multiple archived memories at once.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"ids":{"description":"Array of memory IDs to restore","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["ids"],"type":"object"},"name":"batch_restore_memories"},{"description":"Search memories by query and bulk-update their tags. Useful for organizing memories after an audit.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"add_tags":{"description":"Tags to add to all matching memories","items":{"type":"string"},"minItems":1,"type":"array"},"query":{"description":"Search query to find memories to tag","type":"string"},"remove_tags":{"description":"Tags to remove from all matching memories","items":{"type":"string"},"type":"array"}},"required":["query","add_tags"],"type":"object"},"name":"search_and_tag"},{"description":"Find memories similar to a given memory. Fetches the memory content, then searches for semantically related ones.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max related memories to return (default: 5)","maximum":20,"minimum":1,"type":"integer"},"memory_id":{"description":"ID of the source memory to find related memories for","type":"string"}},"required":["memory_id"],"type":"object"},"name":"find_related_memories"},{"description":"Pin a convention to the top by setting its weight to 999. Pinned conventions always appear first in context.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Convention ID to pin (returned by list_conventions or store_convention)","type":"string"}},"required":["id"],"type":"object"},"name":"pin_convention"},{"description":"Archive all conventions matching category and/or weight threshold. Useful for cleaning up outdated conventions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"Filter by category (e.g. \"naming\", \"architecture\"). Omit to match all categories.","type":"string"},"max_weight":{"description":"Archive conventions with weight less than or equal to this value. Omit to ignore weight when filtering.","type":"number"},"project":{"description":"Optional project slug to scope results to that project plus global (unscoped) items.","type":"string"}},"type":"object"},"name":"bulk_archive_conventions"},{"description":"Set the weight for all conventions in a category. Use to boost or reduce an entire category's priority.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"Category whose conventions will be updated (e.g. \"naming\", \"architecture\")","type":"string"},"project":{"description":"Optional project slug to scope results to that project plus global (unscoped) items.","type":"string"},"weight":{"description":"New weight to assign to all conventions in the category","type":"integer"}},"required":["category","weight"],"type":"object"},"name":"bulk_update_convention_weight"},{"description":"Complete onboarding for a new AI agent: saves an agent memory, then returns get_context plus projects and org settings.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"agent_name":{"description":"Name of the agent being onboarded (e.g. \"cursor\", \"claude-code\", \"my-custom-agent\")","type":"string"},"project":{"description":"Optional project the agent will work on","type":"string"}},"required":["agent_name"],"type":"object"},"name":"onboard_agent"},{"description":"Record an Architecture Decision Record (ADR) — a structured decision with context, options, rationale, and consequences.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"consequences":{"description":"Changes, risks, or follow-up work this entails","type":"string"},"context":{"description":"Why this decision was needed","type":"string"},"decision":{"description":"What was chosen","type":"string"},"options_considered":{"description":"Options that were evaluated","items":{"type":"string"},"minItems":1,"type":"array"},"project":{"description":"Project or repo name","type":"string"},"rationale":{"description":"Why this option won over the alternatives","type":"string"},"tags":{"description":"Additional tags for filtering","items":{"type":"string"},"type":"array"},"title":{"description":"Short title for the decision","type":"string"}},"required":["title","context","options_considered","decision","rationale"],"type":"object"},"name":"record_decision"},{"description":"List the caller's own assigned tasks. Identity is resolved server-side from the NEXUSMIND_API_KEY used for the call — never pass a user id. Optionally filter by project and status.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"description":"Filter to a specific project","type":"string"},"status":{"description":"Filter by task status","enum":["backlog","todo","in_progress","in_review","done","cancelled"],"type":"string"}},"type":"object"},"name":"list_my_tasks"},{"description":"List tasks with general filters (project, status, sprint, label, assignee). Requires task:read for the target project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"assignee":{"description":"Filter by assignee user id (use list_my_tasks for the caller's own tasks)","type":"string"},"label":{"description":"Filter by label","type":"string"},"limit":{"description":"Max results","minimum":1,"type":"integer"},"project":{"description":"Filter to a specific project","type":"string"},"sprint":{"description":"Filter by sprint id","type":"string"},"status":{"description":"Filter by task status","enum":["backlog","todo","in_progress","in_review","done","cancelled"],"type":"string"}},"type":"object"},"name":"list_tasks"},{"description":"Get hydrated detail for a single task (assignees, labels, spec links, comment/subtask counts). Requires task:read.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"task_id":{"description":"Task ID","type":"string"}},"required":["task_id"],"type":"object"},"name":"get_task"},{"description":"Create a task in a project. Requires task:write for the target project; the call fails and no task is created if the caller lacks it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Task description","type":"string"},"due_date":{"description":"ISO-8601 due date","type":"string"},"parent_id":{"description":"Parent task id, to create this as a subtask","type":"string"},"priority":{"description":"Task priority (default: medium)","enum":["low","medium","high","urgent"],"type":"string"},"project":{"description":"Project name","type":"string"},"sprint_id":{"description":"Sprint id to attach this task to","type":"string"},"title":{"description":"Task title","type":"string"}},"required":["project","title"],"type":"object"},"name":"create_task"},{"description":"Update a task (title, description, status, priority, due date, sprint). Status transitions are validated server-side by the status transition matrix. Requires task:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"New description","type":"string"},"due_date":{"description":"New ISO-8601 due date","type":"string"},"priority":{"description":"New priority","enum":["low","medium","high","urgent"],"type":"string"},"sprint_id":{"description":"New sprint id","type":"string"},"status":{"description":"New status — validated against the allowed transition matrix server-side","enum":["backlog","todo","in_progress","in_review","done","cancelled"],"type":"string"},"task_id":{"description":"Task ID","type":"string"},"title":{"description":"New title","type":"string"}},"required":["task_id"],"type":"object"},"name":"update_task"},{"description":"Soft-delete a task. The USER must request deletion explicitly — DO NOT delete autonomously. Required: confirm: true. Without confirm: true this tool refuses and makes no backend call. Requires task:delete.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses.","type":"boolean"},"task_id":{"description":"Task ID","type":"string"}},"required":["task_id","confirm"],"type":"object"},"name":"delete_task"},{"description":"Assign one or more users to a task. Requires task:assign; the call fails and no assignee record is created if the caller lacks it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"task_id":{"description":"Task ID","type":"string"},"user_ids":{"description":"User IDs to assign to the task","items":{"type":"string"},"type":"array"}},"required":["task_id","user_ids"],"type":"object"},"name":"assign_task"},{"description":"Add a comment to a task. Requires task:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"body":{"description":"Comment body","type":"string"},"task_id":{"description":"Task ID","type":"string"}},"required":["task_id","body"],"type":"object"},"name":"add_task_comment"},{"description":"Add a free-text label to a task. Requires task:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"label":{"description":"Label text","type":"string"},"task_id":{"description":"Task ID","type":"string"}},"required":["task_id","label"],"type":"object"},"name":"add_task_label"},{"description":"Link a task to an openspec change by folder name (kebab-case). Requires task:write. The backend validates the spec folder exists in the active or archived tree.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"spec_change_name":{"description":"openspec change folder name (kebab-case)","type":"string"},"task_id":{"description":"Task ID","type":"string"}},"required":["task_id","spec_change_name"],"type":"object"},"name":"link_task_spec"},{"description":"Transition every task linked to an openspec change to done. Intended for invocation by the sdd-verify/sdd-archive flow once a change is complete. Requires task:write; already-done/cancelled tasks are skipped (idempotent).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"spec_change_name":{"description":"openspec change folder name (kebab-case)","type":"string"}},"required":["spec_change_name"],"type":"object"},"name":"resolve_tasks_for_spec"},{"description":"List sprints, optionally filtered by project and status. Requires task:read.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"description":"Filter to a specific project","type":"string"},"status":{"description":"Filter by sprint status","enum":["planned","active","completed"],"type":"string"}},"type":"object"},"name":"list_sprints"},{"description":"Create a sprint for a project. Requires task:manage.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"ends_at":{"description":"ISO-8601 end date","type":"string"},"goal":{"description":"Sprint goal","type":"string"},"name":{"description":"Sprint name (e.g. \"Sprint 42\")","type":"string"},"project":{"description":"Project name","type":"string"},"starts_at":{"description":"ISO-8601 start date","type":"string"}},"required":["project","name"],"type":"object"},"name":"create_sprint"},{"description":"Persist an SDD document (proposal, spec, design, tasks, apply-progress, verify-report, archive-report, exploration, state) to the NexusMind artifact store, creating the change if it does not exist. Call it at the end of every sdd-* skill phase — it is idempotent by content hash, so re-saving byte-identical content creates NO new revision and you may call it freely on every phase run; edited content appends a revision. Requires sdd:write on the project; a backend rejection (missing permission, unknown kind, content over the 1 MB cap) fails the tool call and writes nothing rather than reporting success.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"capability":{"description":"Capability name — required for kind \"spec\" (one spec artifact per capability), omitted for every other kind","type":"string"},"change_name":{"description":"openspec change folder name, kebab-case (e.g. \"sdd-artifacts\"). Created if unknown.","type":"string"},"content":{"description":"The FULL document text. Max 1 MB; oversized content is rejected and nothing is written.","type":"string"},"git_commit":{"description":"Git commit SHA this revision came from","type":"string"},"git_ref":{"description":"Git ref (branch) this revision came from","type":"string"},"kind":{"description":"Artifact kind — which SDD document this is","enum":["exploration","proposal","spec","design","tasks","apply-progress","verify-report","archive-report","state"],"type":"string"},"path":{"description":"Repo-relative path the document lives at (e.g. \"openspec/changes/x/design.md\")","type":"string"},"project":{"description":"Project the change belongs to (e.g. \"nexus-mind\")","type":"string"}},"required":["project","change_name","kind","content"],"type":"object"},"name":"save_sdd_artifact"},{"description":"Fetch an SDD document and return the FULL text — this is the cross-phase read (sdd-design reads the proposal; sdd-tasks reads the spec + design; sdd-apply reads tasks.md), and it never truncates, previews, or summarizes. Address it by artifact_id, or by natural key (project + change_name + kind, plus capability for a spec); defaults to the latest revision and accepts an explicit revision number. Requires sdd:read; an artifact that does not exist — or that belongs to another organization — reports not-found and returns no content, never an empty document.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"artifact_id":{"description":"Artifact id. Alternative to the natural key below.","type":"string"},"capability":{"description":"Capability name — disambiguates which \"spec\" artifact; omit for every other kind","type":"string"},"change_name":{"description":"openspec change folder name (natural key)","type":"string"},"kind":{"description":"Artifact kind (natural key)","enum":["exploration","proposal","spec","design","tasks","apply-progress","verify-report","archive-report","state"],"type":"string"},"project":{"description":"Project name (natural key; required with change_name + kind)","type":"string"},"revision":{"description":"Explicit revision number. Omit for the latest revision.","minimum":1,"type":"integer"}},"type":"object"},"name":"get_sdd_artifact"},{"description":"List SDD changes with their phase and status — this powers `/sdd-status`. Call it to see what changes are in flight across a project, a phase, or a sprint. Requires sdd:read. Returns metadata only and never artifact content: use get_sdd_change for one change's artifact inventory, and get_sdd_artifact for a document.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_archived":{"description":"Include archived changes (default false)","type":"boolean"},"phase":{"description":"Filter by SDD phase","enum":["explore","propose","spec","design","tasks","apply","verify","archive"],"type":"string"},"project":{"description":"Filter to a project","type":"string"},"sprint_id":{"description":"Filter to changes attached to a sprint","type":"string"},"status":{"description":"Filter by lifecycle status","enum":["active","archived","abandoned"],"type":"string"}},"type":"object"},"name":"list_sdd_changes"},{"description":"Fetch one SDD change with its artifact inventory (each artifact's kind, capability, path and latest revision), its linked tasks and its linked memories. The artifact inventory IS the recoverable DAG state — call this to resume a change with no local checkout (it powers `/sdd-continue`), and trust the inventory over the advisory `phase` field when they disagree. Address it by change_id or by project + change_name. Requires sdd:read. Lists artifacts but never inlines their content — fetch a document with get_sdd_artifact.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"change_id":{"description":"Change id. Alternative to project + change_name.","type":"string"},"change_name":{"description":"openspec change folder name (required with project)","type":"string"},"project":{"description":"Project name (required with change_name)","type":"string"}},"type":"object"},"name":"get_sdd_change"},{"description":"Transition an SDD change's phase or status (and optionally its title or sprint) — call it when a phase completes, e.g. advancing tasks → apply. Requires sdd:write. The identity tuple (project, name) is NOT patchable. An invalid phase or status is rejected atomically: no part of the update lands, and an unknown change reports not-found rather than being created as a side effect.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"change_id":{"description":"Change id (get it from list_sdd_changes or get_sdd_change)","type":"string"},"phase":{"description":"New SDD phase","enum":["explore","propose","spec","design","tasks","apply","verify","archive"],"type":"string"},"sprint_id":{"description":"Attach the change to a sprint","type":"string"},"status":{"description":"New lifecycle status","enum":["active","archived","abandoned"],"type":"string"},"title":{"description":"New human-readable title","type":"string"}},"required":["change_id"],"type":"object"},"name":"update_sdd_change"},{"description":"Full-text search the latest revision of every SDD artifact in your organization — call it to find which change already specified a topic before writing a new proposal. Search spans changes, not just the one you are working on. Requires sdd:read. Returns snippets plus the change name, kind and capability, which you pass straight to get_sdd_artifact to obtain the full document.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max hits to return (default 20, max 50)","maximum":50,"minimum":1,"type":"integer"},"query":{"description":"Full-text query (e.g. \"rate limiting\")","type":"string"}},"required":["query"],"type":"object"},"name":"search_sdd_artifacts"},{"description":"Persist a LIVING SPECIFICATION (openspec/specs/{capability}/spec.md) to NexusMind — the source of truth for a capability, as opposed to the delta specs inside a change. Call it from `sdd-archive`, when a change closes and its delta specs are merged into the main spec, passing merged_from_change_name so the revision is traceable back to the change that shaped it. Requires sdd:write. Idempotent by content hash: re-saving byte-identical content creates NO new revision. A merged_from_change_name that names no existing change is rejected and nothing is written — the provenance is the point of the call, not a decoration on it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"capability":{"description":"Capability name — the openspec/specs/{capability}/ directory (e.g. \"harness-library\")","type":"string"},"content":{"description":"The FULL specification text, post-merge. Max 1 MB; oversized content is rejected and nothing is written.","type":"string"},"git_commit":{"description":"Git commit SHA this revision came from","type":"string"},"merged_from_change_name":{"description":"The change whose delta specs this revision merges. Must name an existing change in this project; omit only when the revision did not come from a change (an import, an admin edit).","type":"string"},"path":{"description":"Repo-relative path (e.g. \"openspec/specs/harness-library/spec.md\")","type":"string"},"project":{"description":"Project the specification belongs to (e.g. \"nexus-mind\")","type":"string"},"title":{"description":"Human-readable title for the capability","type":"string"}},"required":["project","capability","content"],"type":"object"},"name":"save_sdd_spec"},{"description":"Fetch a LIVING SPECIFICATION and return the FULL text — this is what a capability has actually agreed, as opposed to what some in-flight change is proposing. Call it before writing a proposal or a delta spec, so you amend the real contract rather than guessing at it, and whenever you need to know the current requirements for a capability. Address it by spec_id, or by natural key (project + capability); defaults to the latest revision and accepts an explicit revision number. It never truncates, previews or summarizes. Requires sdd:read. A capability with no specification reports not-found and returns no content — that is NOT the same as an empty specification.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"capability":{"description":"Capability name (natural key; required with project)","type":"string"},"project":{"description":"Project name (natural key; required with capability)","type":"string"},"revision":{"description":"Explicit revision number. Omit for the latest revision.","minimum":1,"type":"integer"},"spec_id":{"description":"Spec id. Alternative to the natural key below.","type":"string"}},"type":"object"},"name":"get_sdd_spec"},{"description":"List the LIVING SPECIFICATIONS in a project — one per capability, each with its latest revision and the change that last merged into it. Call it to see which capabilities have an agreed contract at all, and how current each one is, before proposing work against them. Requires sdd:read. Returns metadata only and never specification content: use get_sdd_spec for the full text of one.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_archived":{"description":"Include archived specifications (default false)","type":"boolean"},"project":{"description":"Filter to a project","type":"string"}},"type":"object"},"name":"list_sdd_specs"},{"description":"Link a memory to an SDD change — called by `sdd-apply` / `sdd-verify` to tie the decisions, bugfixes and discoveries they record back to the change that produced them. Requires sdd:write. Idempotent for a (change, memory) pair: re-linking creates no duplicate, and re-linking with a different relation updates it. A memory that is not visible to the caller reports not-found and no link is written.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"change_id":{"description":"Change id","type":"string"},"memory_id":{"description":"Memory id (from store_memory / record_decision)","type":"string"},"relation":{"default":"produced","description":"\"produced\" — the change produced this memory; \"informed\" — the memory informed the change","enum":["produced","informed"],"type":"string"}},"required":["change_id","memory_id"],"type":"object"},"name":"link_sdd_change_memory"},{"description":"Record a sprint retrospective for a sprint (went well / went wrong / action items). Persists to the backend via POST /v1/sprints/:id/retrospectives. Requires task:manage.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"action_items":{"description":"Action items for next sprint","type":"string"},"sprint_id":{"description":"Sprint ID","type":"string"},"went_well":{"description":"What went well during the sprint","type":"string"},"went_wrong":{"description":"What went wrong during the sprint","type":"string"}},"required":["sprint_id"],"type":"object"},"name":"create_sprint_retrospective"},{"description":"Generate a daily standup from yesterday's memories.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"description":"Project to filter memories by","type":"string"}},"type":"object"},"name":"generate_daily_standup"},{"description":"Find time gaps where no memories were stored. Helps identify periods of untracked work or team members not using NexusMind.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"days":{"description":"Number of days to analyze (default: 30)","maximum":365,"minimum":1,"type":"integer"}},"type":"object"},"name":"analyze_memory_gaps"},{"description":"Change a user's role (e.g., 'admin', 'member', 'viewer'). Use list_users to find user IDs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"role":{"description":"The role to assign (e.g. 'admin', 'member', 'viewer')","type":"string"},"user_id":{"description":"The user ID to update (returned by list_users)","type":"string"}},"required":["user_id","role"],"type":"object"},"name":"assign_user_role"},{"description":"List all users with a specific role.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"role":{"description":"The role to filter by (e.g. 'admin', 'member', 'viewer')","type":"string"}},"required":["role"],"type":"object"},"name":"get_users_by_role"},{"description":"Export all org data (memories, conventions, projects) as a combined JSON object. Useful for backup or migration.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_conventions":{"description":"Include conventions in the export (default: true)","type":"boolean"},"include_memories":{"description":"Include memories in the export (default: true)","type":"boolean"},"include_projects":{"description":"Include projects in the export (default: true)","type":"boolean"}},"type":"object"},"name":"export_all_data"},{"description":"List all access policies in the organization. Policies define what actions are allowed or denied on resources.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"description":"Optional project slug to scope results to that project plus global (unscoped) items.","type":"string"}},"type":"object"},"name":"list_policies"},{"description":"Create a new access policy. Policies control what actions are allowed or denied on resources in the organization.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Description of what this policy allows or denies","type":"string"},"name":{"description":"Name for the policy (e.g. \"Read-only memory access\")","type":"string"},"rules":{"additionalProperties":{},"description":"Policy rules as a JSON object (structure depends on backend policy engine)","type":"object"}},"required":["name"],"type":"object"},"name":"create_policy"},{"description":"Delete a policy permanently. Requires confirm: true. There is no undo.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses.","type":"boolean"},"id":{"description":"ID of the policy to delete (returned by list_policies)","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"delete_policy"},{"description":"Update an existing access policy: change its name, description, or rules.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"New description for the policy","type":"string"},"id":{"description":"ID of the policy to update (returned by list_policies)","type":"string"},"name":{"description":"New name for the policy","type":"string"},"rules":{"additionalProperties":{},"description":"New policy rules as a JSON object","type":"object"}},"required":["id"],"type":"object"},"name":"update_policy"},{"description":"Create a new memory collection. Collections group related memories together for filtered search and context retrieval.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Optional description of what this collection contains","type":"string"},"name":{"description":"Name for the collection (e.g. \"Architecture decisions\", \"Onboarding materials\")","type":"string"}},"required":["name"],"type":"object"},"name":"create_collection"},{"description":"Update a collection name or description. Use list_collections to find collection IDs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"New description for the collection","type":"string"},"id":{"description":"ID of the collection to update (returned by list_collections)","type":"string"},"name":{"description":"New name for the collection","type":"string"}},"required":["id"],"type":"object"},"name":"update_collection"},{"description":"Delete a collection permanently. Requires confirm: true. Memories in the collection are NOT deleted — they are unlinked from the collection. There is no undo.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to perform the deletion. Without this, the tool refuses.","type":"boolean"},"id":{"description":"ID of the collection to delete (returned by list_collections)","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"delete_collection"},{"description":"Save the current agent session context to NexusMind as reusable memories — use at the end of a session or after important discoveries.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"discoveries":{"description":"Discoveries, decisions, or insights to persist","items":{"additionalProperties":false,"properties":{"content":{"description":"Full content of what was learned","type":"string"},"tags":{"description":"Tags to categorize this memory","items":{"type":"string"},"type":"array"},"title":{"description":"Short title for this discovery/decision","type":"string"}},"required":["title","content"],"type":"object"},"type":"array"},"project_context":{"description":"Project name or context identifier","type":"string"},"session_summary":{"description":"High-level summary of the work session","type":"string"}},"required":["discoveries"],"type":"object"},"name":"sync_agent_context"},{"description":"Schedule a memory for future deletion. The memory will be soft-deleted at the specified date.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"delete_at":{"description":"ISO 8601 date string for when to delete (e.g. 2025-12-31T00:00:00Z)","type":"string"},"memory_id":{"description":"Memory ID to schedule for deletion","type":"string"}},"required":["memory_id","delete_at"],"type":"object"},"name":"schedule_memory_delete"},{"description":"Trigger a manual reindex of a code project to update the search index with latest file changes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project_id":{"description":"Code project ID to reindex","type":"string"}},"required":["project_id"],"type":"object"},"name":"reindex_project"},{"description":"List recommended harnesses for a given agent target (claude, codex, cursor). Returns metadata only (id, version, name, targets, format, approval/warning flags) — never downloads or returns manifest content.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"target":{"description":"Filter recommendations to a specific tool target","enum":["claude","codex","cursor"],"type":"string"}},"type":"object"},"name":"recommend_harnesses"},{"description":"List harnesses visible to the caller, optionally filtered by target tool or owner. Returns catalog metadata only — no manifest content.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"owner_user_id":{"description":"Filter by owner user ID","type":"string"},"target":{"description":"Filter by tool target","enum":["claude","codex","cursor"],"type":"string"}},"type":"object"},"name":"list_harnesses"},{"description":"Preview a specific harness version: format, targets, manifest hash, and component summary. Uses the preview endpoint — readable without a prior install approval. Does not write any local file and does not expose raw component content.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"harness_id":{"description":"Harness ID","type":"string"},"version":{"description":"Version string, e.g. \"1.0.0\"","type":"string"}},"required":["harness_id","version"],"type":"object"},"name":"get_harness_version"},{"description":"List shared harness config reviews (redacted snapshots only), optionally filtered by status. Requires harness:read; denied calls return no config review data.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"status":{"description":"Filter by review status (e.g. \"pending\", \"approved\")","type":"string"}},"type":"object"},"name":"list_harness_config_reviews"},{"description":"Plan installing a harness version for a given agent tool (claude, codex, cursor) and scope (user, project). Downloads the manifest preview, resolves per-tool destinations, and returns a full diff (create/overwrite/skip per file) plus executable warnings. Writes NOTHING to disk — this is a read-only preview for the user to review before apply_harness_install.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"harness_id":{"description":"Harness ID","type":"string"},"target_scope":{"default":"project","description":"Install scope: \"user\" (tool home dir) or \"project\" (repo-local dir under cwd)","enum":["user","project"],"type":"string"},"target_tool":{"description":"Agent tool to plan the install for","enum":["claude","codex","cursor"],"type":"string"},"version":{"description":"Version string, e.g. \"1.0.0\"","type":"string"}},"required":["harness_id","version","target_tool"],"type":"object"},"name":"plan_harness_install"},{"description":"Apply a previously planned harness install. Requires the manifest_hash returned by plan_harness_install as explicit confirmation of a reviewed diff. Before writing anything, asks the connected user for explicit confirmation of the pending install — via MCP elicitation (a human-readable summary of harness/version/target/diff) when the client supports it, otherwise via the overwrite_confirmed / warning_acknowledged flags. Records approve_install (refusing executable hook/plugin manifests without warning_acknowledged), re-downloads the manifest and aborts with hash_mismatch if it drifted since planning, materializes files to their resolved destinations, and calls record_install_result. Never writes without a prior plan_harness_install manifest_hash and without user confirmation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"harness_id":{"description":"Harness ID","type":"string"},"manifest_hash":{"description":"manifest_hash from a prior plan_harness_install call — required confirmation that the user reviewed that diff","type":"string"},"overwrite_confirmed":{"description":"Required when any diff entry action is \"overwrite\". Also used as the soft-gate fallback when the client does not support MCP elicitation.","type":"boolean"},"target_scope":{"default":"project","description":"Install scope: \"user\" or \"project\"","enum":["user","project"],"type":"string"},"target_tool":{"description":"Agent tool to install for","enum":["claude","codex","cursor"],"type":"string"},"version":{"description":"Version string, e.g. \"1.0.0\"","type":"string"},"warning_acknowledged":{"description":"Required when the plan reported requires_acknowledgement: true (hook / claude_code_plugin formats). Also used as the soft-gate fallback when the client does not support MCP elicitation.","type":"boolean"}},"required":["harness_id","version","target_tool","manifest_hash"],"type":"object"},"name":"apply_harness_install"},{"description":"Build a schema-1.1 harness manifest from local files at the given path. Computes sha256 + size per component, inlines content up to 64KiB per component (refuses larger files, never truncates), and runs a local secret scan that REFUSES the entire build on any hit (never inlines or hashes offending content). Does not upload anything — pass the returned manifest to publish_harness_version.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"description":"Harness format template to assemble the manifest against","enum":["agent","skill","command","hook","output_style","claude_code_plugin","theme"],"type":"string"},"path":{"description":"Local file or directory path to package","type":"string"},"source":{"description":"Provenance source label recorded in manifest.provenance.source","type":"string"},"targets":{"description":"Agent tools this harness targets (claude, codex, cursor)","items":{"enum":["claude","codex","cursor"],"type":"string"},"minItems":1,"type":"array"}},"required":["path","format","targets","source"],"type":"object"},"name":"build_harness_manifest_from_path"},{"description":"Create a new harness. Thin wrapper over the harness:write-gated backend endpoint — adds no authority beyond that permission.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Optional description","type":"string"},"name":{"description":"Display name","type":"string"},"owner_user_id":{"description":"Optional owner user ID","type":"string"},"project_id":{"description":"Optional project ID to associate the harness with","type":"string"},"slug":{"description":"Unique harness slug","type":"string"},"visibility":{"description":"Optional visibility setting (e.g. \"org\", \"private\")","type":"string"}},"required":["slug","name"],"type":"object"},"name":"create_harness"},{"description":"Publish an immutable harness version from a manifest (typically produced by build_harness_manifest_from_path). Thin wrapper over the harness:write-gated backend endpoint — adds no authority beyond that permission.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"harness_id":{"description":"Harness ID to publish a version under","type":"string"},"manifest":{"additionalProperties":{},"description":"Schema-1.1 manifest object, e.g. from build_harness_manifest_from_path","type":"object"},"manifest_hash":{"description":"Optional pre-computed manifest hash","type":"string"},"version":{"description":"Version string, e.g. \"1.0.0\"","type":"string"}},"required":["harness_id","version","manifest"],"type":"object"},"name":"publish_harness_version"},{"description":"Create a harness config review from a local config file: redacts secret-shaped values locally (never uploads raw content), then submits the redacted snapshot, redaction report, and content hash for review. Requires harness:write; the backend independently re-enforces raw-content rejection.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"config_path":{"description":"Local path to the config file to redact and preview","type":"string"},"source_tool":{"description":"The tool the config snapshot originates from","enum":["claude","codex","cursor"],"type":"string"}},"required":["source_tool","config_path"],"type":"object"},"name":"create_harness_config_review"},{"description":"Token-cheap \"jump to the file\": returns a RANKED LIST OF DISTINCT FILE PATHS (no code bodies) for a semantic query. Call this BEFORE reading files — it points you at the right file(s) so you open only those instead of scanning the tree, saving large amounts of context. Same embedding + ranking as search_code but the response is just paths + best symbol per file. Requires index_project first. Use search_code when you actually need the code chunks; use locate_code to decide what to read.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max distinct files to return (default: 5)","maximum":50,"minimum":1,"type":"integer"},"project":{"description":"Project key — must match the key used in index_project","type":"string"},"query":{"description":"Natural language or code description of what to find","type":"string"}},"required":["project","query"],"type":"object"},"name":"locate_code"},{"description":"Assemble the context for a task in ONE call: the files most relevant to the task text (ranked by exact identifier/term match) with their best code chunks, plus the files they import, each with the reason it was picked and a content hash. Call this at the start of a task instead of locate_code + reading files one by one. Requires index_project first. The pack is pinned to a commit: pass `commit` when the task targets one; a STALE note means the index was built from another commit.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"commit":{"description":"Full commit SHA the task targets","pattern":"^[0-9a-f]{40}$","type":"string"},"max_bytes":{"description":"Code byte budget (default 24000)","maximum":64000,"minimum":1,"type":"integer"},"max_files":{"description":"Maximum ranked files (default 8)","maximum":20,"minimum":1,"type":"integer"},"project":{"description":"Project key — must match the key used in index_project","type":"string"},"query":{"description":"The task description (an issue title or request)","minLength":1,"type":"string"},"task_id":{"description":"Factory task id, when the pack is for one","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","type":"string"}},"required":["project","query"],"type":"object"},"name":"get_context_pack"},{"description":"Hand a task to the software factory: creates a backlog NexusMind task labelled \"factory\" (plus its class) in the project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Details and acceptance criteria","type":"string"},"project":{"description":"Project","type":"string"},"task_class":{"description":"Task class","enum":["docs","tests","ui","backend","bugfix","migration","infra","security","refactor"],"type":"string"},"title":{"description":"What should be done","maxLength":300,"minLength":1,"type":"string"}},"required":["project","title"],"type":"object"},"name":"submit_factory_task"},{"description":"List tasks handed to the factory (label \"factory\"), optionally by project or status.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max tasks","maximum":200,"minimum":1,"type":"integer"},"project":{"description":"Project","type":"string"},"status":{"description":"Status","enum":["backlog","todo","in_progress","in_review","done","cancelled"],"type":"string"}},"type":"object"},"name":"list_factory_tasks"},{"description":"What the factory is waiting on a person for: merges held for approval, runs that stopped short, unstarted factory tasks, unlabelled decision-model decisions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_human_digest"},{"description":"Approve or reject ONE merge on ONE exact head (owner/repo#number@sha, as shown by get_human_digest). It applies only to that commit and still passes every check before anything merges.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"approve":{"description":"true approves, false rejects","type":"boolean"},"reason":{"description":"Why","maxLength":500,"type":"string"},"subject":{"description":"owner/repo#number@<40-hex sha>","pattern":"^[\\w.-]+\\/[\\w.-]+#[1-9]\\d*@[0-9a-f]{40}$","type":"string"}},"required":["subject","approve"],"type":"object"},"name":"approve_factory_action"},{"description":"What the factory cost: spend by model, share of runs below the frontier tier, cost per proposed change.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"days":{"description":"Window in days (default 30)","maximum":365,"minimum":1,"type":"integer"}},"type":"object"},"name":"get_factory_economics"},{"description":"List the organization's clients (the top level of the company-brain hierarchy: client → project → task). Non-admins see only clients they are a member of; admins/super_users see the org. Use to resolve a client id/slug before creating projects or reading usage.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_archived":{"description":"Include archived (offboarded) clients (default: false)","type":"boolean"}},"type":"object"},"name":"list_clients"},{"description":"Create a client. The slug is the stable, immutable external identifier (lowercase letters, digits and dashes, 1-64 chars) and cannot be changed later — pick carefully. Requires client:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"Human-readable client name (1-128 chars)","type":"string"},"slug":{"description":"Immutable identifier: lowercase alphanumeric with internal dashes, 1-64 chars","type":"string"},"status":{"description":"Client status (default: active)","enum":["active","paused","offboarded"],"type":"string"}},"required":["name","slug"],"type":"object"},"name":"create_client"},{"description":"Update a client's name or status. The slug is immutable and cannot be changed here (the backend rejects it). Requires client:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Client id to update (returned by list_clients)","type":"string"},"name":{"description":"New client name","type":"string"},"status":{"description":"New status. \"offboarded\" retires the client for new work but keeps history.","enum":["active","paused","offboarded"],"type":"string"}},"required":["id"],"type":"object"},"name":"update_client"},{"description":"Archive (soft-hide) a client without deleting it. History is preserved; the client is excluded from list_clients unless include_archived is set. Requires client:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Client id to archive","type":"string"}},"required":["id"],"type":"object"},"name":"archive_client"},{"description":"List the members of a client. Membership controls who can see a client and its projects for non-admin users.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Client id to list members for","type":"string"}},"required":["id"],"type":"object"},"name":"list_client_members"},{"description":"Add a user to a client, granting them visibility of the client and its projects. Requires client:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Client id to add the user to","type":"string"},"role":{"description":"Member role (default: \"member\")","type":"string"},"user_id":{"description":"User id to add (from list_users)","type":"string"}},"required":["id","user_id"],"type":"object"},"name":"add_client_member"},{"description":"Remove a user from a client, revoking their client-scoped visibility. Requires client:write.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Client id to remove the user from","type":"string"},"user_id":{"description":"User id to remove","type":"string"}},"required":["id","user_id"],"type":"object"},"name":"remove_client_member"},{"description":"Record one unit of agent work (token counts + wall-clock time) into the usage ledger. The backend resolves it into the task → project → client → org hierarchy; unresolvable references are stored as NULL, never rejected. Requires memory:write on the target project. Report after completing a meaningful chunk of work so usage rolls up per client/project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"duration_ms":{"description":"Wall-clock duration in milliseconds","minimum":0,"type":"integer"},"event_ts":{"description":"Event timestamp (ISO 8601); defaults to now server-side","type":"string"},"model":{"description":"Model identifier (e.g. \"claude-opus-4\")","type":"string"},"project":{"description":"Project name (resolved server-side, never auto-created). If omitted but task_id is set, the project is derived from the task.","type":"string"},"session_id":{"description":"Session id this work belongs to","type":"string"},"task_id":{"description":"Task id this work belongs to","type":"string"},"tokens_in":{"description":"Input/prompt tokens","minimum":0,"type":"integer"},"tokens_out":{"description":"Output/completion tokens","minimum":0,"type":"integer"}},"type":"object"},"name":"report_usage"},{"description":"Aggregated usage rollup (tokens + duration + event counts) at a chosen level: task, project, client, org, model, or user. Admin/super_user only; admins are scoped to their visible projects. Use to answer \"how many tokens did client X burn this month\" or \"which model cost the most\".","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"client_id":{"description":"Filter to a single client","type":"string"},"from":{"description":"Start of range (ISO 8601 / YYYY-MM-DD), inclusive","type":"string"},"level":{"description":"Rollup dimension (default: \"project\")","enum":["task","project","client","org","model","user"],"type":"string"},"project_id":{"description":"Filter to a single project","type":"string"},"to":{"description":"End of range (ISO 8601 / YYYY-MM-DD), inclusive","type":"string"}},"type":"object"},"name":"get_usage_summary"},{"description":"Derive one usage row per session that lacks one, from existing session data. Idempotent-ish backfill for historical usage. super_user only.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"run_usage_backfill"},{"description":"Promote a client- or project-scoped memory into an organization-wide asset (e.g. a client-specific learning that becomes a shared playbook entry). Always explicit — nothing promotes automatically, because promoting client material into a shared asset is a deliberate decision. Lineage is preserved in promoted_from. Requires memory:write on the source memory's project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"The memory id to promote (must be client- or project-scoped)","type":"string"}},"required":["id"],"type":"object"},"name":"promote_memory"}]}}}
