Skip to main content
Glama

create_and_activate_intent

Create a new intent from user's request and activate it for the current session to track AI-generated code. Resolves conflicts with existing team intents by allowing force override after user review.

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?

Despite no annotations, the description thoroughly explains the multi-active model, no lock conflicts, conflict detection behavior, and the effect of force parameter. No contradictions.

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?

Well-structured and concise. Front-loaded with purpose and when-to-use, then details on multi-active model and conflict handling. Each sentence is informative.

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

Completeness4/5

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

Covers the main workflow, conflict handling, and parameter explanations. No output schema, so return info is not expected. Some minor details like the exact return behavior on success could be added, but overall complete for a tool with 9 params.

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

Parameters4/5

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

Schema coverage is 100% so baseline is 3. Description adds context for force (after conflict review), auto-detection for repoOrigin and workspaceId, and explains forkAuthor and workspaceId as override/testing. Adds significant value beyond schema.

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?

Clearly states the tool creates an intent and activates it for the current session. Distinguishes from sibling tools like check_active_intent and activate_intent by describing the workflow.

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?

Explicitly states when to call (after check_active_intent returns none), prerequisite steps (summarize, get user confirmation), and how to handle conflicts (present to user, retry with force). Also addresses multi-active model.

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/kawacode-ai/kawa.mcp'

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