Skip to main content
Glama
eneskavas

agy-mcp

by eneskavas

agy_close_session

Close a session and optionally delete its worktree, discarding uncommitted changes. Leaves worktree intact for manual review by default.

Instructions

Close a session. By default this only marks it closed and leaves any worktree/branch on disk for manual review; pass remove_worktree=true to also delete the worktree (irreversible, discards any uncommitted changes in it).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
remove_worktreeNo
Behavior5/5

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

With no annotations provided, the description carries the full burden of disclosing side effects. It explicitly mentions that the default keeps the worktree for manual review and that remove_worktree=true is irreversible and discards uncommitted changes, which is critical for an agent to avoid data loss.

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 sentences with no fluff. The purpose is front-loaded, and the conditional behavior is clearly structured without redundancy.

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?

Given the tool's simplicity (2 params, no output schema), the description covers all essential aspects: default behavior, destructive option, and irreversibility. No missing context that would impede 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 has no descriptions (0% coverage), so the description adds meaning beyond the schema. It explains the effect of remove_worktree and its default, while session_id is implicitly required and self-evident from the tool's purpose.

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's purpose: 'Close a session.' It uses a specific verb-resource combination and naturally differentiates from siblings like agy_list_sessions, agy_ask, and agy_execute by focusing on the closing action.

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?

The description provides explicit guidance on when to use the tool and how to choose the parameter: it explains the default behavior (marks closed, leaves worktree) and instructs when to pass remove_worktree=true for deletion. This effectively covers both usage and alternatives.

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/eneskavas/agy-mcp'

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