Skip to main content
Glama

create_and_activate_intent

Create and activate a new intent for the current session after user confirmation, tracking AI-generated code and avoiding conflicts by allowing forced override when needed.

Instructions

Create a new intent from the user's request and mark it as active for THIS session.

Call this when check_active_intent returns no active intent for your session. Before calling:

  1. Summarize what the user is asking for

  2. Ask the user to confirm the intent details (title, description, type)

  3. Then call this tool with the confirmed details

This ensures all AI-generated code gets properly tracked and attributed.

Multi-active model: many intents can be active on a repo at once (one per session/teammate). Creating + activating one only sets YOUR session's current focus — it never blocks or displaces another session's active intent, so there is no lock conflict to resolve.

If the tool returns conflicts (action="conflict"), it found an existing team-member intent that overlaps semantically or in files. Present the conflict details to the user and ask whether to proceed. If yes, retry with force=true to bypass conflict detection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoBypass conflict detection. Set to true after the user has reviewed detected conflicts and chosen to proceed anyway.
titleYesShort, descriptive title for the intent
repoPathYesLocal path to the repository root
forkAuthorNoFork attribution; usually resolved by Muninn automatically — pass only for override / testing.
repoOriginNoGit remote origin URL. Auto-detected from repoPath via git if not provided.
constraintsNoRequirements or constraints for this work
descriptionYesWhat this intent accomplishes
workspaceIdNoWorkspace identifier; usually resolved by Muninn automatically — pass only for override / testing.
templateTypeNoType of work
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully carries the burden. It explains the multi-active model (no lock conflicts), creation+activation scoped to session, conflict detection behavior, and the effect of the 'force' parameter. Transparent about auto-detection of repoOrigin and automatic resolution of forkAuthor/workspaceId.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with purpose and key steps. Every sentence adds value, no redundancy. Clear separation of usage, multi-active model, and conflict handling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description covers return behavior (action=conflict) and all usage scenarios. Given the tool's complexity (9 params, nested objects), it provides complete guidance for selection and correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds significant meaning: explains 'force' bypasses conflict detection after user review, 'repoOrigin' auto-detected, 'forkAuthor' and 'workspaceId' typically auto-resolved. Provides context for 'constraints' and 'templateType' beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a new intent and marks it as active for the current session. It uses a specific verb-resource pair ('create' and 'activate') and distinguishes itself from siblings like 'check_active_intent' and 'activate_intent'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to call this tool ('when check_active_intent returns no active intent'), prerequisites (summarize and get user confirmation), and handling of conflicts (present to user, retry with force=true). Includes step-by-step instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodeAwareness/kawa.mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server