Skip to main content
Glama

get_intents_for_file

Retrieve all code-related intents for a file to identify ongoing work, detect team conflicts, and understand existing changes before modifying code.

Instructions

Get all intents that have code blocks in this file.

Use this before modifying a file to:

  • See what work is already in progress

  • Identify potential conflicts with team members

  • Understand the context of existing code changes

Returns intent details including author, status, and specific line ranges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to the file (relative to repo root)
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.
workspaceIdNoWorkspace identifier; usually resolved by Muninn automatically — pass only for override / testing.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses return value details (author, status, line ranges) and implies read-only behavior. No side effects or contradictions noted. Could mention if the operation is expensive, but adequate for a read tool.

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?

Two paragraphs: first line is the core action, then bullet points for usage. Every sentence adds value—no fluff. Front-loaded with the verb and resource.

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?

For a 5-parameter tool with no output schema and no annotations, the description covers the tool's purpose, usage context, and return value. It could add more detail about corner cases, but it's complete for typical use.

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

Parameters3/5

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

Schema description coverage is 100%, so all parameters are already documented in the schema. The description adds no additional parameter-level semantics beyond the tool's overall purpose. Baseline 3 is appropriate.

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 starts with a clear verb+resource: 'Get all intents that have code blocks in this file.' It distinguishes from sibling 'get_intents_for_lines' by specifying file-level scope. The addition of usage context further clarifies its purpose.

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

Usage Guidelines4/5

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

Explicitly says 'Use this before modifying a file' and lists specific scenarios (see work in progress, identify conflicts, understand context). While it does not mention when not to use or compare to alternatives, the guidance is clear and actionable.

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